Compliance with Java standards via Sonar plus a few xray fixes.

This commit is contained in:
Adam committed 2012-05-05 15:23:17 -04:00
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;