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