Skip to content

Commit

Permalink
0.8.1
Browse files Browse the repository at this point in the history
removed debug messages
  • Loading branch information
TitasPi committed Aug 4, 2020
1 parent 9f5e7c4 commit b470dfe
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.pixylt</groupId>
<artifactId>PixySpawners</artifactId>
<version>1.0-SNAPSHOT</version>
<version>0.8.1-SNAPSHOT</version>
<repositories>
<repository>
<id>spigotmc-repo</id>
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/com/pixylt/pixyspawners/BlockBreakListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
18 changes: 17 additions & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b470dfe

Please sign in to comment.