mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 16:59:37 +01:00
Changing the MOTD again, modified a few messages. Now hardcore mode only
tells you about itself when motd is enabled.
This commit is contained in:
parent
9e35283273
commit
6ea962c1fa
@ -166,16 +166,7 @@ public class PlayerListener implements Listener {
|
|||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
|
||||||
if (Config.getInstance().getMOTDEnabled() && Permissions.getInstance().motd(player)) {
|
if (Config.getInstance().getMOTDEnabled() && Permissions.getInstance().motd(player)) {
|
||||||
player.sendMessage(ChatColor.GOLD + "Server is running " + ChatColor.GREEN + plugin.getName() + " " + plugin.getDescription().getVersion()); //TODO: Locale
|
player.sendMessage(ChatColor.GOLD+"[mcMMO] "+ChatColor.YELLOW+"Running version " + ChatColor.DARK_AQUA + plugin.getDescription().getVersion()); //TODO: Locale
|
||||||
player.sendMessage(ChatColor.GOLD + "http://www.mcmmo.info" + ChatColor.DARK_AQUA + " - mcMMO Website & Forums"); //TODO: Locale
|
|
||||||
//player.sendMessage(LocaleLoader.getString("mcMMO.MOTD", new Object[] {plugin.getDescription().getVersion()}));
|
|
||||||
//player.sendMessage(LocaleLoader.getString("mcMMO.Website"));
|
|
||||||
}
|
|
||||||
|
|
||||||
//THIS IS VERY BAD WAY TO DO THINGS, NEED BETTER WAY
|
|
||||||
if (XprateCommand.xpevent) {
|
|
||||||
player.sendMessage(LocaleLoader.getString("XPRate.Event", new Object[] {Config.getInstance().xpGainMultiplier}));
|
|
||||||
}
|
|
||||||
|
|
||||||
if(Config.getInstance().getHardcoreEnabled()) {
|
if(Config.getInstance().getHardcoreEnabled()) {
|
||||||
if(Config.getInstance().getHardcoreVampirismEnabled()) {
|
if(Config.getInstance().getHardcoreVampirismEnabled()) {
|
||||||
@ -186,6 +177,18 @@ public class PlayerListener implements Listener {
|
|||||||
player.sendMessage(ChatColor.GOLD+"[mcMMO] "+ChatColor.DARK_AQUA+"Skill Death Penalty: "+ChatColor.DARK_RED+Config.getInstance().getHardcoreDeathStatPenaltyPercentage()+"%");
|
player.sendMessage(ChatColor.GOLD+"[mcMMO] "+ChatColor.DARK_AQUA+"Skill Death Penalty: "+ChatColor.DARK_RED+Config.getInstance().getHardcoreDeathStatPenaltyPercentage()+"%");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
player.sendMessage(ChatColor.GOLD+"[mcMMO] "+ChatColor.GREEN+ "http://www.mcmmo.info" + ChatColor.YELLOW + " - mcMMO Website & Forums"); //TODO: Locale
|
||||||
|
//player.sendMessage(LocaleLoader.getString("mcMMO.MOTD", new Object[] {plugin.getDescription().getVersion()}));
|
||||||
|
//player.sendMessage(LocaleLoader.getString("mcMMO.Website"));
|
||||||
|
}
|
||||||
|
|
||||||
|
//THIS IS VERY BAD WAY TO DO THINGS, NEED BETTER WAY
|
||||||
|
if (XprateCommand.xpevent) {
|
||||||
|
player.sendMessage(LocaleLoader.getString("XPRate.Event", new Object[] {Config.getInstance().xpGainMultiplier}));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user