diff --git a/TwosideKeeper.jar b/TwosideKeeper.jar index 0e3fd5d..d645efa 100644 Binary files a/TwosideKeeper.jar and b/TwosideKeeper.jar differ diff --git a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java index d520dbd..70f6732 100644 --- a/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java +++ b/src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java @@ -4404,7 +4404,7 @@ public class GenericFunctions { if (important) { pd.lastimportantactionbarmsg=TwosideKeeper.getServerTickTime(); } - TwosideKeeper.lastActionBarMessage=finalmsg; + pd.lastActionBarMessage=finalmsg; } } @@ -4413,8 +4413,9 @@ public class GenericFunctions { pd.lastimportantactionbarmsg=last_important_msg_time; } - public static String getLastActionBarMessage() { - return TwosideKeeper.lastActionBarMessage; + public static String getLastActionBarMessage(Player p) { + PlayerStructure pd = PlayerStructure.GetPlayerStructure(p); + return pd.lastActionBarMessage; } public static String getDisplayName(LivingEntity ent) { diff --git a/src/sig/plugin/TwosideKeeper/PlayerStructure.java b/src/sig/plugin/TwosideKeeper/PlayerStructure.java index ee2a156..2e939b0 100644 --- a/src/sig/plugin/TwosideKeeper/PlayerStructure.java +++ b/src/sig/plugin/TwosideKeeper/PlayerStructure.java @@ -149,6 +149,7 @@ public class PlayerStructure { public long rage_time=0; //Set this to the last tick that rage is supposed to last. It'll wear off after this. public int rage_amt=0; public long swiftaegistime=0; + public String lastActionBarMessage=""; //Needs the instance of the player object to get all other info. Only to be called at the beginning. @SuppressWarnings("deprecation") diff --git a/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java b/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java index 24ec184..ddf9ea8 100644 --- a/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java +++ b/src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java @@ -422,7 +422,7 @@ public final class TwosideKeeperAPI { return ActionBarBuffUpdater.getActionBarPrefix(ent); } public static String getCurrentActionBarText(Player p) { - return GenericFunctions.getLastActionBarMessage(); + return GenericFunctions.getLastActionBarMessage(p); } public static void setActionBarLastImportantMessageTime(Player p, long last_important_msg_time) { GenericFunctions.sendLastImportantActionBarMsgTime(p, last_important_msg_time);