Remove dead booster code
This commit is contained in:
parent
c54587590b
commit
d1062fad0b
@ -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
|
||||
}
|
@ -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<BoostedGame> _boostQueue = new ArrayList<>();
|
||||
|
||||
public BoosterData(BoostGame game)
|
||||
{
|
||||
_game = game;
|
||||
_timeRemaining = 1000 * 60 * 60;
|
||||
}
|
||||
|
||||
public List<BoostedGame> 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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user