mirror of
https://github.com/essentials/Essentials.git
synced 2025-09-25 21:59:08 +02:00
Negate some 1 class packages
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package com.earth2me.essentials.anticheat.debug;
|
||||
package com.earth2me.essentials.anticheat;
|
||||
|
||||
import com.earth2me.essentials.anticheat.NoCheat;
|
||||
import org.bukkit.World;
|
@@ -13,7 +13,6 @@ import com.earth2me.essentials.anticheat.config.ConfigurationCacheStore;
|
||||
import com.earth2me.essentials.anticheat.config.ConfigurationManager;
|
||||
import com.earth2me.essentials.anticheat.config.Permissions;
|
||||
import com.earth2me.essentials.anticheat.data.PlayerManager;
|
||||
import com.earth2me.essentials.anticheat.debug.LagMeasureTask;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@@ -1,4 +1,6 @@
|
||||
package com.earth2me.essentials.anticheat.player;
|
||||
package com.earth2me.essentials.anticheat;
|
||||
|
||||
|
||||
|
||||
import com.earth2me.essentials.anticheat.NoCheat;
|
||||
import com.earth2me.essentials.anticheat.NoCheatPlayer;
|
||||
@@ -38,41 +40,49 @@ public class NoCheatPlayerImpl implements NoCheatPlayer
|
||||
this.config = plugin.getConfig(player);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isDead()
|
||||
{
|
||||
return this.player.getHealth() <= 0 || this.player.isDead();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasPermission(String permission)
|
||||
{
|
||||
return player.hasPermission(permission);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataStore getDataStore()
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ConfigurationCacheStore getConfigurationStore()
|
||||
{
|
||||
return config;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Player getPlayer()
|
||||
{
|
||||
return player;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName()
|
||||
{
|
||||
return player.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getTicksLived()
|
||||
{
|
||||
return player.getTicksLived();
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getSpeedAmplifier()
|
||||
{
|
||||
EntityPlayer ep = ((CraftPlayer)player).getHandle();
|
||||
@@ -111,6 +121,7 @@ public class NoCheatPlayerImpl implements NoCheatPlayer
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSprinting()
|
||||
{
|
||||
return player.isSprinting();
|
||||
@@ -131,6 +142,7 @@ public class NoCheatPlayerImpl implements NoCheatPlayer
|
||||
return lastUsedTime + 60000L < currentTimeInMilliseconds;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isCreative()
|
||||
{
|
||||
return player.getGameMode() == GameMode.CREATIVE || player.getAllowFlight();
|
@@ -2,7 +2,7 @@ package com.earth2me.essentials.anticheat.data;
|
||||
|
||||
import com.earth2me.essentials.anticheat.NoCheat;
|
||||
import com.earth2me.essentials.anticheat.NoCheatPlayer;
|
||||
import com.earth2me.essentials.anticheat.player.NoCheatPlayerImpl;
|
||||
import com.earth2me.essentials.anticheat.NoCheatPlayerImpl;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
Reference in New Issue
Block a user