From d02c953632d4b1e478162d10097c50190839701c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 3 Feb 2020 19:39:13 +0100 Subject: [PATCH] Do what it says it does :) Signed-off-by: Lixfel --- .../listener/PlayerCommandPreProcessListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SchematicSystem_Main/src/de/steamwar/schematicsystem/listener/PlayerCommandPreProcessListener.java b/SchematicSystem_Main/src/de/steamwar/schematicsystem/listener/PlayerCommandPreProcessListener.java index b0928ee..50d8ac5 100644 --- a/SchematicSystem_Main/src/de/steamwar/schematicsystem/listener/PlayerCommandPreProcessListener.java +++ b/SchematicSystem_Main/src/de/steamwar/schematicsystem/listener/PlayerCommandPreProcessListener.java @@ -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!"); } } }