Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
removed debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
justADeni committed Oct 28, 2023
1 parent deacef0 commit 569c26d
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 18 deletions.
8 changes: 2 additions & 6 deletions src/main/java/com/github/justadeni/standapi/StandAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ class StandAPI : SuspendingJavaPlugin() {

companion object {

internal val debug = true

private var plugin: JavaPlugin? = null

private var manager: ProtocolManager? = null
Expand All @@ -46,10 +44,8 @@ class StandAPI : SuspendingJavaPlugin() {
override suspend fun onEnableAsync() {

//only for testing
if (debug) {
getCommand("standapi")!!.setSuspendingExecutor(Command())
getCommand("standapi")!!.setSuspendingTabCompleter(TabComplete())
}
//getCommand("standapi")!!.setSuspendingExecutor(Command())
//getCommand("standapi")!!.setSuspendingTabCompleter(TabComplete())

server.pluginManager.registerSuspendingEvents(EntityDeathListener(), this)
server.pluginManager.registerSuspendingEvents(PlayerLeaveListener(), this)
Expand Down
7 changes: 0 additions & 7 deletions src/main/java/com/github/justadeni/standapi/StandManager.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.github.justadeni.standapi

import com.github.justadeni.standapi.misc.Logger
import com.github.justadeni.standapi.misc.Util.applyOffset
import com.github.justadeni.standapi.misc.Util.sendTo
import com.github.justadeni.standapi.misc.Util.squared
Expand Down Expand Up @@ -122,12 +121,6 @@ object StandManager {
internal suspend fun startTicking() = withContext(StandAPI.plugin().asyncDispatcher){
while (true) {

Logger.debug("- ")
Logger.debug("ticking: $ticking")
Logger.debug(" ")
Logger.debug("included: $included")
Logger.debug("-- ")

delay(20.ticks)

for (player in Bukkit.getOnlinePlayers().toList()) {
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/github/justadeni/standapi/misc/Logger.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,4 @@ object Logger {
internal fun log(msg: String){
logger.info(ChatColor.translateAlternateColorCodes('&', msg))
}

internal fun debug(msg: String){
if (StandAPI.debug)
log(msg)
}
}
Binary file modified target/StandAPI-1.8.jar
Binary file not shown.

0 comments on commit 569c26d

Please sign in to comment.