mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-05 15:57:37 +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 FancyHeader("General Info", colors));
|
||||||
message.add(new FancyMessage("World Name: ", world.getName(), colors));
|
message.add(new FancyMessage("World Name: ", world.getName(), colors));
|
||||||
message.add(new FancyMessage("World Alias: ", world.getColoredWorldString(), 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));
|
//message.add(new FancyMessage("Game Mode: ", StringUtils.capitalize(world.getGameMode().toString()), colors));
|
||||||
Location spawn = world.getSpawnLocation();
|
Location spawn = world.getSpawnLocation();
|
||||||
message.add(new FancyMessage("Spawn Location: ", LocationManipulation.strCoords(spawn), colors));
|
message.add(new FancyMessage("Spawn Location: ", LocationManipulation.strCoords(spawn), colors));
|
||||||
|
@ -9,6 +9,6 @@ package com.onarandombox.MultiverseCore.enums;
|
|||||||
|
|
||||||
/** Multiverse 2 */
|
/** Multiverse 2 */
|
||||||
public enum ConfigProperty {
|
public enum ConfigProperty {
|
||||||
messagecooldown, teleportcooldown, worldnameprefix, useworldaccess,
|
messagecooldown, teleportcooldown, worldnameprefix,
|
||||||
disableautoheal, fakepvp, bedrespawn, finalsayaccess, debug
|
disableautoheal, fakepvp, bedrespawn, enforcegamemodes, enforceaccess, debug
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user