mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 12:25:46 +01:00
Fix compatibility issues with Citizens (fixes #3105)
This commit is contained in:
parent
ca9e371067
commit
0e84cf085b
@ -62,14 +62,13 @@ public class BukkitPlayerManager extends PlayerManager<BukkitPlayer, Player> {
|
||||
@NonNull
|
||||
@Override
|
||||
public BukkitPlayer getPlayer(final @NonNull Player object) {
|
||||
if (object.getUniqueId().version() == 2) { // not a real player
|
||||
return new BukkitPlayer(this.plotAreaManager, this.eventDispatcher, object, false, this.permissionHandler);
|
||||
}
|
||||
if (!object.isOnline()) {
|
||||
throw new NoSuchPlayerException(object.getUniqueId());
|
||||
}
|
||||
try {
|
||||
return getPlayer(object.getUniqueId());
|
||||
} catch (final NoSuchPlayerException exception) {
|
||||
return new BukkitPlayer(this.plotAreaManager, this.eventDispatcher, object, false, this.permissionHandler);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -314,11 +314,6 @@ public abstract class PlayerManager<P extends PlotPlayer<? extends T>, T> {
|
||||
super(String.format("There is no online player with UUID '%s'", uuid.toString()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized Throwable fillInStackTrace() {
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user