mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-28 11:44:42 +02:00
@ -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
|
||||
|
Reference in New Issue
Block a user