mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-25 01:58:41 +01:00
(Olof) Added command logging for commands used by players
This commit is contained in:
parent
7138e8d5f8
commit
cbd2507676
@ -1,5 +1,6 @@
|
||||
package com.massivecraft.factions.zcore;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.EventPriority;
|
||||
import org.bukkit.event.Listener;
|
||||
@ -27,6 +28,7 @@ public class MPluginSecretPlayerListener implements Listener
|
||||
|
||||
if (p.handleCommand(event.getPlayer(), event.getMessage()))
|
||||
{
|
||||
Bukkit.getLogger().info("[PLAYER_COMMAND] "+event.getPlayer().getName()+": "+event.getMessage());
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
@ -38,6 +40,7 @@ public class MPluginSecretPlayerListener implements Listener
|
||||
|
||||
if (p.handleCommand(event.getPlayer(), event.getMessage()))
|
||||
{
|
||||
Bukkit.getLogger().info("[PLAYER_COMMAND] "+event.getPlayer().getName()+": "+event.getMessage());
|
||||
event.setCancelled(true);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user