closes #679
closes #676
This commit is contained in:
Jesse Boyd
2015-10-19 17:27:51 +11:00
parent f509252646
commit fa442f5903
23 changed files with 127 additions and 83 deletions

View File

@ -25,8 +25,12 @@ public class ConsolePlayer extends PlotPlayer {
}
return instance;
}
private ConsolePlayer() {
/**
* Direct access is deprecated
*/
@Deprecated
public ConsolePlayer() {
String world;
final Set<String> plotworlds = PS.get().getPlotWorlds();
if (plotworlds.size() > 0) {
@ -39,7 +43,7 @@ public class ConsolePlayer extends PlotPlayer {
}
public static boolean isConsole(final PlotPlayer plr) {
return instance == plr;
return plr instanceof ConsolePlayer;
}
@Override