mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
fixed error in NM hook
This commit is contained in:
1 parent
9aa51294d7
commit
0527cd7ca3
1 file changed
+4
-1
@@ -1,5 +1,6 @@
|
||||
package me.neznamy.tab.shared.permission;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
@@ -47,6 +48,8 @@ public class NetworkManager implements PermissionPlugin {
|
||||
}
|
||||
|
||||
private String getName(Object group) throws Exception {
|
||||
return (String) group.getClass().getMethod("getName").invoke(group);
|
||||
Method getName = group.getClass().getMethod("getName");
|
||||
getName.setAccessible(true);
|
||||
return (String) getName.invoke(group);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user