Browse Source

Fixed mcMMO overwritting Spout titles set by other plugins.

GJ 12 years ago
parent
commit
36bdb8a63e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/listeners/SpoutListener.java

+ 1 - 0
Changelog.txt

@@ -27,6 +27,7 @@ Version 1.4.06-dev
  + Added multiplier to Archery XP based on bow force
  + Added information about /party itemshare and /party expshare to the party help page
  + Added option to use scoreboards for power level display instead of Spout.
+ + Fixed bug where custom Spout titles were overwritten by mcMMO.
  = Fixed bug where players were able to join the same party multiple times
  = Fixed displaying partial names when trying to use /ptp
  = Fixed wolves from Call of the Wild only having 8 health

+ 1 - 1
src/main/java/com/gmail/nossr50/listeners/SpoutListener.java

@@ -33,7 +33,7 @@ public class SpoutListener implements Listener {
 
         // TODO: Add custom titles based on skills
         if (SpoutUtils.showPowerLevel) {
-            spoutPlayer.setTitle(LocaleLoader.getString("Spout.Title", spoutPlayer.getName(), mcMMOPlayer.getPowerLevel()));
+            spoutPlayer.setTitle(LocaleLoader.getString("Spout.Title", spoutPlayer.getTitle(), mcMMOPlayer.getPowerLevel()));
         }
 
         mcMMOPlayer.getProfile().setSpoutHud(new McMMOHud(mcMMOPlayer)); // Setup Party HUD stuff