From d1062fad0bad126034ccecfb4f7e50e99f7ed4d6 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 23 Jul 2018 01:29:12 +0100 Subject: [PATCH] Remove dead booster code --- .../mineplex/core/gamebooster/BoostGame.java | 14 ----- .../core/gamebooster/BoosterData.java | 58 ------------------- 2 files changed, 72 deletions(-) delete mode 100644 Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoostGame.java delete mode 100644 Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoosterData.java diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoostGame.java b/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoostGame.java deleted file mode 100644 index 5ac5a048d..000000000 --- a/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoostGame.java +++ /dev/null @@ -1,14 +0,0 @@ -package mineplex.core.gamebooster; - -/** - * A boost game represents a specific game that can be boosted. I use this over GameType so we can allow - * different games to share the same booster queue (mixed arcade using the same boosters being an example) - * - * @author Shaun Bennett - */ -public enum BoostGame -{ - MIXED_ARCADE, - BRIDGES, - SURVIVAL_GAMES -} diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoosterData.java b/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoosterData.java deleted file mode 100644 index c2831e05c..000000000 --- a/Plugins/Mineplex.Core/src/mineplex/core/gamebooster/BoosterData.java +++ /dev/null @@ -1,58 +0,0 @@ -package mineplex.core.gamebooster; - -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -import mineplex.serverdata.data.Data; - -public class BoosterData implements Data -{ - private BoostGame _game; - private long _timeRemaining; - private List _boostQueue = new ArrayList<>(); - - public BoosterData(BoostGame game) - { - _game = game; - _timeRemaining = 1000 * 60 * 60; - } - - public List getBoostQueue() - { - return _boostQueue; - } - - public long getTimeRemaining() - { - return _timeRemaining; - } - - @Override - public String getDataId() - { - return _game.name(); - } - - public static class BoostedGame - { - private String _playerName; - private UUID _playerUUID; - - public BoostedGame(String playerName, UUID playerUUID) - { - _playerName = playerName; - _playerUUID = playerUUID; - } - - public String getPlayerName() - { - return _playerName; - } - - public UUID getPlayerUUID() - { - return _playerUUID; - } - } -}