Skip to content

Commit af79254

Browse files
authored
Clean up leftover debug logging (#3)
1 parent d259876 commit af79254

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/main/kotlin/org/simplemc/simplenpcs/SimpleNPCs.kt

-4
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ class SimpleNPCs : JavaPlugin(), Listener {
7373
private fun npcInteract(event: PlayerInteractEntityEvent) {
7474
val entity = event.rightClicked
7575
val player = event.player
76-
logger.info("interact")
7776

7877
// only fire once per interaction, so pick a hand
7978
if (event.hand == EquipmentSlot.HAND) {
@@ -83,19 +82,16 @@ class SimpleNPCs : JavaPlugin(), Listener {
8382
timeout.cancel()
8483
event.isCancelled = true
8584
command?.let {
86-
logger.info("bind")
8785
bind(entity, command)
8886
player.sendMessage("NPC ${entity.name} bound command `$command`!")
8987
} ?: let {
90-
logger.info("unbind")
9188
unbind(entity)
9289
player.sendMessage("NPC ${entity.name} bind removed!")
9390
}
9491
}
9592
// otherwise, perform NPC action (if applicable)
9693
?: entity.getBind()?.let { command ->
9794
if (player.hasPermission("simplenpc.interact")) {
98-
logger.info("npc")
9995
player.performCommand(command)
10096
event.isCancelled = true
10197
}

0 commit comments

Comments
 (0)