22232425262728293031
public NoCheatPlayerImpl(Player player, NoCheat plugin) { this.player = player; this.plugin = plugin; this.data = new DataStore(); this.history = new ExecutionHistory(); this.lastUsedTime = System.currentTimeMillis(); }
35363738394041424344454647
* * @param player * @return */ public static ChatData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); ChatData data = base.get(id); if(data == null) { data = new ChatData(); base.set(id, data); } return data; }
25262728293031323334353637
* * @param player * @return */ public static BlockBreakData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); BlockBreakData data = base.get(id); if(data == null) { data = new BlockBreakData(); base.set(id, data); } return data; }
24252627282930313233343536
* * @param player * @return */ public static InventoryData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); InventoryData data = base.get(id); if(data == null) { data = new InventoryData(); base.set(id, data); } return data; }
51525354555657585960616263
* * @param player * @return */ public static BlockPlaceData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); BlockPlaceData data = base.get(id); if(data == null) { data = new BlockPlaceData(); base.set(id, data); } return data; }
45464748495051525354555657
* * @param player * @return */ public static MovingData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); MovingData data = base.get(id); if(data == null) { data = new MovingData(); base.set(id, data); } return data; }
30313233343536373839404142
* * @param player * @return */ public static FightData getData(NoCheatPlayer player) { DataStore base = player.getDataStore(); FightData data = base.get(id); if(data == null) { data = new FightData(); base.set(id, data); } return data; }