From b470dfe17c36eeb067659c051cb4f54427b2fcea Mon Sep 17 00:00:00 2001 From: TitasPi Date: Tue, 4 Aug 2020 23:13:45 +0300 Subject: [PATCH] 0.8.1 removed debug messages --- pom.xml | 2 +- .../pixyspawners/BlockBreakListener.java | 2 -- .../pixyspawners/EntityExplodeListener.java | 2 -- .../pixyspawners/InventoryClickListener.java | 2 -- .../pixyspawners/RightClickListener.java | 1 - src/main/resources/plugin.yml | 18 +++++++++++++++++- 6 files changed, 18 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index a351102..447b6d6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.pixylt PixySpawners - 1.0-SNAPSHOT + 0.8.1-SNAPSHOT spigotmc-repo diff --git a/src/main/java/com/pixylt/pixyspawners/BlockBreakListener.java b/src/main/java/com/pixylt/pixyspawners/BlockBreakListener.java index f79969b..d69cb13 100644 --- a/src/main/java/com/pixylt/pixyspawners/BlockBreakListener.java +++ b/src/main/java/com/pixylt/pixyspawners/BlockBreakListener.java @@ -60,7 +60,6 @@ public void onBlockBreak(BlockBreakEvent e){ Location loc = e.getBlock().getLocation(); if(Config.getHoloConfig().getString(cfg) != null){ int eni = Integer.parseInt(Config.getHoloConfig().getString(cfg)); - plugin.getLogger().log(Level.INFO, "[PixySpawners] Hologram enid was found: " + eni + "."); Chunk c = e.getBlock().getChunk(); boolean destroyed = false; @@ -72,7 +71,6 @@ public void onBlockBreak(BlockBreakEvent e){ if(!Config.saveHoloConfig()){ e.getPlayer().sendMessage(LangEn.error); } - plugin.getLogger().log(Level.INFO, "[PixySpawners] Hologram destroyed successfully."); break; } } diff --git a/src/main/java/com/pixylt/pixyspawners/EntityExplodeListener.java b/src/main/java/com/pixylt/pixyspawners/EntityExplodeListener.java index db0d5e8..ee1cb0b 100644 --- a/src/main/java/com/pixylt/pixyspawners/EntityExplodeListener.java +++ b/src/main/java/com/pixylt/pixyspawners/EntityExplodeListener.java @@ -48,14 +48,12 @@ public void onEntityExplore(EntityExplodeEvent e){ int y = block.getY(); int z = block.getZ(); String cfg = String.valueOf(x) + "-" + String.valueOf(y) + "-" + String.valueOf(z); - plugin.getLogger().log(Level.INFO, Globals.prefixv + "Trying to remove holo"); if(Config.getHoloConfig().getString(cfg) != null){ int eni = Integer.parseInt(Config.getHoloConfig().getString(cfg)); Chunk c = block.getChunk(); for(Entity entity: c.getEntities()){ if(entity.getEntityId() == eni){ entity.remove(); - plugin.getLogger().log(Level.INFO, Globals.prefixv + "Sucessfully removed holo"); break; } } diff --git a/src/main/java/com/pixylt/pixyspawners/InventoryClickListener.java b/src/main/java/com/pixylt/pixyspawners/InventoryClickListener.java index 6ead838..f882f44 100644 --- a/src/main/java/com/pixylt/pixyspawners/InventoryClickListener.java +++ b/src/main/java/com/pixylt/pixyspawners/InventoryClickListener.java @@ -20,8 +20,6 @@ public class InventoryClickListener implements Listener { public void OnInventoryClick(InventoryClickEvent e){ Player p = (Player) e.getWhoClicked(); - p.sendMessage("Title = " + e.getView().getTitle() + " " + e.getSlot()); - if(e.getView().getTitle().equals("Page 1 | Select spawner type")){ e.setCancelled(true); EntityType et = EntityType.PIG; diff --git a/src/main/java/com/pixylt/pixyspawners/RightClickListener.java b/src/main/java/com/pixylt/pixyspawners/RightClickListener.java index 82f1abe..cff4d34 100644 --- a/src/main/java/com/pixylt/pixyspawners/RightClickListener.java +++ b/src/main/java/com/pixylt/pixyspawners/RightClickListener.java @@ -60,7 +60,6 @@ public void onRightClick(PlayerInteractEvent e) { if (entity.getEntityId() == eni) { entity.remove(); destroyed = true; - plugin.getLogger().log(Level.INFO, "[PixySpawners] Hologram destroyed successfully."); break; } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 77185b9..c72fe2d 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,3 +1,19 @@ name: PixySpawners -version: 0.8.0 +version: 0.8.1 main: com.pixylt.pixyspawners.PixySpawners +api-version: 1.16 +commands: + pixyspawners: + description: Main PixySpawners command + usage: "Usage: /pixyspawners" + spawners: + aliases: spawner + description: Spawners command + usage: "Usage: /spawners" +permissions: + pixyspawners.*: + default: op + children: + pixyspawners.help: true + pixyspawners.help: + default: true