Skip to content
This repository was archived by the owner on Nov 25, 2019. It is now read-only.

Commit d110067

Browse files
committed
Last round of fixes
1 parent 2bf6472 commit d110067

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PGM/src/main/java/tc/oc/pgm/mutation/types/kit/TeamChestMutation.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package tc.oc.pgm.mutation.types.kit;
22

3+
import org.bukkit.Bukkit;
34
import org.bukkit.ChatColor;
45
import org.bukkit.Material;
56
import org.bukkit.entity.Entity;
@@ -49,14 +50,15 @@ public void enable() {
4950
super.enable();
5051
for (Party party : match().getParties()) {
5152
if (party.isParticipatingType()) {
52-
// Could the chest title be localized properly?
53+
// TODO: Could the chest title be localized properly?
5354
teamChests.put(party, match().getServer().createInventory(null, CHEST_SIZE));
5455
}
5556
}
5657
}
5758

5859
@Override
5960
public void disable() {
61+
super.disable();
6062
teamChests.clear();
6163
}
6264

@@ -67,7 +69,7 @@ public void kits(MatchPlayer player, List<Kit> kits) {
6769
}
6870

6971
// Open shared inventory instead of placing the chest
70-
@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
72+
@EventHandler(priority = EventPriority.HIGHEST)
7173
public void onChestUse(PlayerInteractEvent event) {
7274
Player bukkitPlayer = event.getPlayer();
7375
Optional<MatchPlayer> optPlayer = match().participant((Entity) bukkitPlayer);

0 commit comments

Comments
 (0)