Fixed mcMMO overwritting Spout titles set by other plugins.

This commit is contained in:
GJ 2013-05-15 15:14:47 -04:00
parent aa9eb0868c
commit 36bdb8a63e
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Version 1.4.06-dev
+ Added multiplier to Archery XP based on bow force + Added multiplier to Archery XP based on bow force
+ Added information about /party itemshare and /party expshare to the party help page + 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. + 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 bug where players were able to join the same party multiple times
= Fixed displaying partial names when trying to use /ptp = Fixed displaying partial names when trying to use /ptp
= Fixed wolves from Call of the Wild only having 8 health = Fixed wolves from Call of the Wild only having 8 health

View File

@ -33,7 +33,7 @@ public class SpoutListener implements Listener {
// TODO: Add custom titles based on skills // TODO: Add custom titles based on skills
if (SpoutUtils.showPowerLevel) { 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 mcMMOPlayer.getProfile().setSpoutHud(new McMMOHud(mcMMOPlayer)); // Setup Party HUD stuff