Mineplex2018-withcommit/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/player/ArcadePlayer.java

30 lines
691 B
Java
Raw Normal View History

2013-08-27 17:14:08 +02:00
package nautilus.game.arcade.player;
2015-12-16 23:32:34 +01:00
import org.bukkit.entity.Player;
import mineplex.core.customdata.CustomDataManager;
import mineplex.core.customdata.MineplexPlayer;
import nautilus.game.arcade.ArcadeManager;
/**
* Created by William (WilliamTiger).
* 16/12/15
*/
public class ArcadePlayer extends MineplexPlayer
2013-08-27 17:14:08 +02:00
{
2015-12-16 23:32:34 +01:00
private ArcadeManager _arcadeManager;
public ArcadePlayer(Player player, CustomDataManager customDataManager, ArcadeManager arcadeManager)
{
super(player, customDataManager);
_arcadeManager = arcadeManager;
}
2013-08-27 17:14:08 +02:00
2015-12-16 23:32:34 +01:00
@Override
public String getKeyPrefix()
{
2015-12-17 02:48:55 +01:00
return "arcade." + _arcadeManager.GetGame().GetName().toLowerCase().replaceAll(" ", ".") + ".";
2015-12-16 23:32:34 +01:00
}
2013-08-27 17:14:08 +02:00
}