Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
remove getSimpleName from FawePlayer
Dieser Commit ist enthalten in:
Ursprung
c519c5ec38
Commit
f0d646a9a1
@ -74,7 +74,7 @@ public abstract class FawePlayer<T> extends Metadatable {
|
|||||||
}
|
}
|
||||||
if (obj instanceof Player) {
|
if (obj instanceof Player) {
|
||||||
Player actor = LocationMaskedPlayerWrapper.unwrap((Player) obj);
|
Player actor = LocationMaskedPlayerWrapper.unwrap((Player) obj);
|
||||||
if (obj.getClass().getSimpleName().equals("PlayerProxy")) {
|
if (obj.getClass().getName().endsWith("PlayerProxy")) {
|
||||||
try {
|
try {
|
||||||
Field fieldBasePlayer = actor.getClass().getDeclaredField("basePlayer");
|
Field fieldBasePlayer = actor.getClass().getDeclaredField("basePlayer");
|
||||||
fieldBasePlayer.setAccessible(true);
|
fieldBasePlayer.setAccessible(true);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren