Fixed API call to reference proper method.

dev
sigonasr2 9 years ago
parent fb943c964e
commit 5fced804b5
  1. BIN
      TwosideKeeper.jar
  2. 7
      src/sig/plugin/TwosideKeeper/HelperStructures/Common/GenericFunctions.java
  3. 1
      src/sig/plugin/TwosideKeeper/PlayerStructure.java
  4. 2
      src/sig/plugin/TwosideKeeper/TwosideKeeperAPI.java

Binary file not shown.

@ -4404,7 +4404,7 @@ public class GenericFunctions {
if (important) { if (important) {
pd.lastimportantactionbarmsg=TwosideKeeper.getServerTickTime(); pd.lastimportantactionbarmsg=TwosideKeeper.getServerTickTime();
} }
TwosideKeeper.lastActionBarMessage=finalmsg; pd.lastActionBarMessage=finalmsg;
} }
} }
@ -4413,8 +4413,9 @@ public class GenericFunctions {
pd.lastimportantactionbarmsg=last_important_msg_time; pd.lastimportantactionbarmsg=last_important_msg_time;
} }
public static String getLastActionBarMessage() { public static String getLastActionBarMessage(Player p) {
return TwosideKeeper.lastActionBarMessage; PlayerStructure pd = PlayerStructure.GetPlayerStructure(p);
return pd.lastActionBarMessage;
} }
public static String getDisplayName(LivingEntity ent) { public static String getDisplayName(LivingEntity ent) {

@ -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 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 int rage_amt=0;
public long swiftaegistime=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. //Needs the instance of the player object to get all other info. Only to be called at the beginning.
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")

@ -422,7 +422,7 @@ public final class TwosideKeeperAPI {
return ActionBarBuffUpdater.getActionBarPrefix(ent); return ActionBarBuffUpdater.getActionBarPrefix(ent);
} }
public static String getCurrentActionBarText(Player p) { public static String getCurrentActionBarText(Player p) {
return GenericFunctions.getLastActionBarMessage(); return GenericFunctions.getLastActionBarMessage(p);
} }
public static void setActionBarLastImportantMessageTime(Player p, long last_important_msg_time) { public static void setActionBarLastImportantMessageTime(Player p, long last_important_msg_time) {
GenericFunctions.sendLastImportantActionBarMsgTime(p, last_important_msg_time); GenericFunctions.sendLastImportantActionBarMsgTime(p, last_important_msg_time);

Loading…
Cancel
Save