Stop using weird reflection stuff skidded from WorldEdit

This commit is contained in:
Business Goose 2022-03-29 03:16:56 +01:00
parent d250001082
commit 676926ca23
No known key found for this signature in database
GPG key ID: 77DCA801362E9645

View file

@ -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)