Spaces in pom + optimizations
This commit is contained in:
parent
5ac5bfc9a4
commit
acbae36ddf
@ -120,6 +120,7 @@ public class AuthMe extends JavaPlugin {
|
|||||||
this.database = database;
|
this.database = database;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
authme = this;
|
authme = this;
|
||||||
|
|||||||
@ -504,7 +504,8 @@ public class FileCache {
|
|||||||
armours[i] = attributes.getStack();
|
armours[i] = attributes.getStack();
|
||||||
else armours[i] = item;
|
else armours[i] = item;
|
||||||
}
|
}
|
||||||
|
} catch (final RuntimeException e) {
|
||||||
|
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
||||||
} finally {
|
} finally {
|
||||||
@ -513,6 +514,9 @@ public class FileCache {
|
|||||||
}
|
}
|
||||||
return new DataFileCache(inv, armours, group, op, flying);
|
return new DataFileCache(inv, armours, group, op, flying);
|
||||||
}
|
}
|
||||||
|
} catch (RuntimeException e) {
|
||||||
|
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
||||||
|
return null;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
ConsoleLogger.showError("Error while reading file for " + player.getName() + ", some wipe inventory incoming...");
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@ -477,6 +477,7 @@ public class AdminCommand implements CommandExecutor {
|
|||||||
m.send(sender, "error");
|
m.send(sender, "error");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
Player target = Bukkit.getPlayer(name);
|
Player target = Bukkit.getPlayer(name);
|
||||||
PlayerCache.getInstance().removePlayer(name);
|
PlayerCache.getInstance().removePlayer(name);
|
||||||
Utils.getInstance().setGroup(name, groupType.UNREGISTERED);
|
Utils.getInstance().setGroup(name, groupType.UNREGISTERED);
|
||||||
@ -559,6 +560,7 @@ public class AdminCommand implements CommandExecutor {
|
|||||||
sender.sendMessage("Usage: /authme getip <onlineplayername>");
|
sender.sendMessage("Usage: /authme getip <onlineplayername>");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
Player player = Bukkit.getPlayer(args[1]);
|
Player player = Bukkit.getPlayer(args[1]);
|
||||||
if (player == null) {
|
if (player == null) {
|
||||||
sender.sendMessage("This player is not actually online");
|
sender.sendMessage("This player is not actually online");
|
||||||
@ -574,6 +576,7 @@ public class AdminCommand implements CommandExecutor {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
Player player = Bukkit.getPlayer(args[1]);
|
Player player = Bukkit.getPlayer(args[1]);
|
||||||
if (player == null || !player.isOnline()) {
|
if (player == null || !player.isOnline()) {
|
||||||
sender.sendMessage("Player needs to be online!");
|
sender.sendMessage("Player needs to be online!");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user