This repository was archived by the owner on Nov 25, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
PGM/src/main/java/tc/oc/pgm/mutation/types/kit Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11package tc .oc .pgm .mutation .types .kit ;
22
3+ import org .bukkit .Bukkit ;
34import org .bukkit .ChatColor ;
45import org .bukkit .Material ;
56import 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 );
You can’t perform that action at this time.
0 commit comments