Merge branch 'realLogging' of SteamWar/SchematicSystem into master
Dieser Commit ist enthalten in:
Commit
841fa8fe64
@ -2,11 +2,14 @@ package de.steamwar.schematicsystem.listener;
|
||||
|
||||
import de.steamwar.schematicsystem.SchematicSystem;
|
||||
import de.steamwar.schematicsystem.check.CheckSession;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
public class PlayerCommandPreProcessListener implements Listener {
|
||||
|
||||
@EventHandler
|
||||
@ -18,6 +21,7 @@ public class PlayerCommandPreProcessListener implements Listener {
|
||||
if(CheckSession.getCheckSession() != null) {
|
||||
event.setCancelled(true);
|
||||
player.sendMessage(SchematicSystem.PREFIX + "§cDieser Befehl ist beim Prüfen gesperrt! Admin wird benachrichtigt.");
|
||||
Bukkit.getLogger().log(Level.SEVERE, player.getName() + " tried to use a copy command!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren