change Utils to static class.

This commit is contained in:
DNx5
2015-09-20 14:11:17 +07:00
parent e1893ce85b
commit 4e275eeb1d
16 changed files with 79 additions and 99 deletions
@@ -22,7 +22,6 @@ public class AsyncronousQuit {
protected AuthMe plugin;
protected DataSource database;
protected Player player;
protected Utils utils = Utils.getInstance();
private String name;
private ItemStack[] armor = null;
private ItemStack[] inv = null;
@@ -43,7 +42,7 @@ public class AsyncronousQuit {
public void process() {
if (player == null)
return;
if (utils.isNPC(player) || Utils.getInstance().isUnrestricted(player)) {
if (Utils.isNPC(player) || Utils.isUnrestricted(player)) {
return;
}
@@ -66,7 +65,7 @@ public class AsyncronousQuit {
armor = limbo.getArmour();
}
if (limbo.getGroup() != null && !limbo.getGroup().equals(""))
utils.addNormal(player, limbo.getGroup());
Utils.addNormal(player, limbo.getGroup());
needToChange = true;
isOp = limbo.getOperator();
isFlying = limbo.isFlying();