mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 17:27:38 +00:00
remove getSimpleName from FawePlayer
This commit is contained in:
parent
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user