mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Compliance with Java standards via Sonar plus a few xray fixes.
This commit is contained in:
1 parent
46ec0d736d
commit
55eb3738f7
23 files changed
+463
-483
No files matched your search
@@ -5,11 +5,12 @@ import java.util.Map;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
public class FlyManager {
|
||||
public Map<Player,Integer> y = new HashMap<Player,Integer>();
|
||||
public Map<Player,Integer> yvl = new HashMap<Player,Integer>();
|
||||
private Map<Player,Integer> yvl = new HashMap<Player,Integer>();
|
||||
private static final int FLY_LIMIT = 4;
|
||||
|
||||
public FlyManager()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public boolean checkFly(Player player)
|
||||
@@ -24,7 +25,7 @@ public class FlyManager {
|
||||
{
|
||||
yvl.put(player,yvl.get(player)+1);
|
||||
}
|
||||
if(yvl.get(player) >= 4)
|
||||
if(yvl.get(player) >= FLY_LIMIT)
|
||||
{
|
||||
yvl.put(player,1);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user