mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:04:57 +00:00
Stop using weird reflection stuff skidded from WorldEdit
This commit is contained in:
parent
d250001082
commit
676926ca23
1 changed files with 1 additions and 2 deletions
|
@ -3,7 +3,6 @@ package me.StevenLawson.TotalFreedomMod.bridge;
|
|||
import com.earth2me.essentials.Essentials;
|
||||
import com.earth2me.essentials.User;
|
||||
import me.StevenLawson.TotalFreedomMod.Log;
|
||||
import me.StevenLawson.TotalFreedomMod.util.Utilities;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
|
@ -94,7 +93,7 @@ public class EssentialsBridge {
|
|||
final User user = getEssentialsUser(username);
|
||||
if (user != null)
|
||||
{
|
||||
return Utilities.<Long>getField(user, "lastActivity"); // This is weird
|
||||
return user.getLastOnlineActivity();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
Loading…
Reference in a new issue