mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
will support ancient essentials versions (<1.8 servers)
This commit is contained in:
1 parent
d69beae1d4
commit
aab88cf6ce
1 file changed
+5
-1
@@ -80,7 +80,11 @@ public class PluginHooks {
|
||||
return ((Essentials)essentials).getUser(((TabPlayer)p).player).getNickname();
|
||||
}
|
||||
public static boolean Essentials_isAFK(ITabPlayer p) {
|
||||
return ((Essentials)essentials).getUser(p.getUniqueId()).isAfk();
|
||||
try {
|
||||
return ((Essentials)essentials).getUser(((TabPlayer)p).player).isAfk();
|
||||
} catch (Throwable t) {
|
||||
return Shared.error(false, "Failed to check AFK status of " + p.getName() + " using Essentials", t);
|
||||
}
|
||||
}
|
||||
public static String FactionsMCore_getFactionName(ITabPlayer p) {
|
||||
return MPlayer.get(((TabPlayer)p).player).getFactionName();
|
||||
|
||||
Reference in new issue
Block a user