Show whether or not gamemode is being enforced, Fix enum Config Property

This commit is contained in:
fernferret 2011-10-11 22:51:30 -04:00
parent 86af11b662
commit a30222bec7
2 changed files with 7 additions and 3 deletions

View File

@ -102,7 +102,11 @@ public class InfoCommand extends MultiverseCommand {
message.add(new FancyHeader("General Info", colors));
message.add(new FancyMessage("World Name: ", world.getName(), colors));
message.add(new FancyMessage("World Alias: ", world.getColoredWorldString(), colors));
message.add(new FancyMessage("Game Mode: ", world.getGameMode().toString(), colors));
String enforced = "";
if(!MultiverseCore.EnforceGameModes) {
enforced = ChatColor.RED + " Not Enforced!";
}
message.add(new FancyMessage("Game Mode: ", world.getGameMode() + enforced, colors));
//message.add(new FancyMessage("Game Mode: ", StringUtils.capitalize(world.getGameMode().toString()), colors));
Location spawn = world.getSpawnLocation();
message.add(new FancyMessage("Spawn Location: ", LocationManipulation.strCoords(spawn), colors));

View File

@ -9,6 +9,6 @@ package com.onarandombox.MultiverseCore.enums;
/** Multiverse 2 */
public enum ConfigProperty {
messagecooldown, teleportcooldown, worldnameprefix, useworldaccess,
disableautoheal, fakepvp, bedrespawn, finalsayaccess, debug
messagecooldown, teleportcooldown, worldnameprefix,
disableautoheal, fakepvp, bedrespawn, enforcegamemodes, enforceaccess, debug
}