diff options
author | Myles <43725835+MylesAndMore@users.noreply.github.com> | 2022-12-06 17:20:28 +0000 |
---|---|---|
committer | Myles <43725835+MylesAndMore@users.noreply.github.com> | 2022-12-06 17:20:28 +0000 |
commit | 1b8759700824b2195385c68f9ed41104774180e7 (patch) | |
tree | 41173406347f65c41bdece0bc81e919f6a1fe464 /src/main/java/com/MylesAndMore/tumble/Game.java | |
parent | 43761076f359278756dfcddbcdeeca14b45c6f2b (diff) | |
download | Tumble-1b8759700824b2195385c68f9ed41104774180e7.tar.gz Tumble-1b8759700824b2195385c68f9ed41104774180e7.tar.bz2 Tumble-1b8759700824b2195385c68f9ed41104774180e7.zip |
we do a little reformatting
of the ItemDamage event to keep it all in one location
sorry Carver, it's just easier to read :)
Diffstat (limited to '')
-rw-r--r-- | src/main/java/com/MylesAndMore/tumble/Game.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/main/java/com/MylesAndMore/tumble/Game.java b/src/main/java/com/MylesAndMore/tumble/Game.java index 793d4dd..6655081 100644 --- a/src/main/java/com/MylesAndMore/tumble/Game.java +++ b/src/main/java/com/MylesAndMore/tumble/Game.java @@ -233,14 +233,6 @@ public class Game { } } - public void itemDamage(PlayerItemDamageEvent event) { - // If the game type is shovels, - if (Objects.equals(roundType, "shovels")) { - // Cancel the event - event.setCancelled(true); - } - } - public void playerDeath(@NotNull Player player) { player.setGameMode(GameMode.SPECTATOR); // If there are more than 2 players in the game, @@ -294,7 +286,7 @@ public class Game { } // Methods to get the game type and game state for other classes outside the Game - private String getGameType() { return gameType; } + public String getRoundType() { return roundType; } public String getGameState() { return gameState; } |