Skip to content

Commit

Permalink
Remove prepare event
Browse files Browse the repository at this point in the history
  • Loading branch information
Trophonix committed Jun 15, 2019
1 parent a4c458e commit 2f81bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 24 deletions.
11 changes: 2 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.trophonix</groupId>
<artifactId>TradePlus</artifactId>
<version>3.51</version>
<version>3.52</version>

<properties>
<res>${project.basedir}/res/</res>
Expand Down Expand Up @@ -58,14 +58,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.14.1-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.bukkit</groupId>
<artifactId>craftbukkit</artifactId>
<version>1.14-R0.1-SNAPSHOT</version>
<version>1.14.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>

Expand Down
15 changes: 0 additions & 15 deletions src/main/java/com/trophonix/tradeplus/util/AnvilGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,6 @@ public void ICE(InventoryClickEvent e) {
}
}

@EventHandler
public void PAE(PrepareAnvilEvent e) {
ItemStack IS = e.getResult();
if (colorrename && IS != null && IS.hasItemMeta()) {
ItemMeta M = IS.getItemMeta();
assert M != null;
if (M.hasDisplayName()) {
M.setDisplayName(
ChatColor.translateAlternateColorCodes(colorchar, M.getDisplayName()));
}
IS.setItemMeta(M);
e.setResult(IS);
}
}

@EventHandler
public void ICE(InventoryCloseEvent e) {
if (e.getInventory().equals(inventory)) {
Expand Down

0 comments on commit 2f81bcb

Please sign in to comment.