mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-03 23:07:55 +01:00
Show whether or not gamemode is being enforced, Fix enum Config Property
This commit is contained in:
parent
86af11b662
commit
a30222bec7
@ -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));
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user