File tree 1 file changed +0
-4
lines changed
src/main/kotlin/org/simplemc/simplenpcs
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ class SimpleNPCs : JavaPlugin(), Listener {
73
73
private fun npcInteract (event : PlayerInteractEntityEvent ) {
74
74
val entity = event.rightClicked
75
75
val player = event.player
76
- logger.info(" interact" )
77
76
78
77
// only fire once per interaction, so pick a hand
79
78
if (event.hand == EquipmentSlot .HAND ) {
@@ -83,19 +82,16 @@ class SimpleNPCs : JavaPlugin(), Listener {
83
82
timeout.cancel()
84
83
event.isCancelled = true
85
84
command?.let {
86
- logger.info(" bind" )
87
85
bind(entity, command)
88
86
player.sendMessage(" NPC ${entity.name} bound command `$command `!" )
89
87
} ? : let {
90
- logger.info(" unbind" )
91
88
unbind(entity)
92
89
player.sendMessage(" NPC ${entity.name} bind removed!" )
93
90
}
94
91
}
95
92
// otherwise, perform NPC action (if applicable)
96
93
? : entity.getBind()?.let { command ->
97
94
if (player.hasPermission(" simplenpc.interact" )) {
98
- logger.info(" npc" )
99
95
player.performCommand(command)
100
96
event.isCancelled = true
101
97
}
You can’t perform that action at this time.
0 commit comments