diff options
-rw-r--r-- | Essentials/src/net/ess3/commands/Commandgc.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Essentials/src/net/ess3/commands/Commandgc.java b/Essentials/src/net/ess3/commands/Commandgc.java index 682798816..1178e2b4c 100644 --- a/Essentials/src/net/ess3/commands/Commandgc.java +++ b/Essentials/src/net/ess3/commands/Commandgc.java @@ -35,8 +35,19 @@ public class Commandgc extends EssentialsCommand for (World w : server.getWorlds()) { + String worldType = "World"; + switch (w.getEnvironment()) + { + case World.Environment.NETHER: + worldType = "Nether"; + break; + case World.Environment.THE_END: + worldType = "The End"; + break; + } + sender.sendMessage( - (w.getEnvironment() == World.Environment.NETHER ? "Nether" : "World") + " \"" + w.getName() + "\": " + worldType + " \"" + w.getName() + "\": " + w.getLoadedChunks().length + _("gcchunks") + w.getEntities().size() + _("gcentities")); } |