From 8a100886e91333cfd61b6f571b0197f345b4a75e Mon Sep 17 00:00:00 2001 From: Philip Muskovac Date: Sat, 4 Aug 2012 12:42:28 +0200 Subject: add support for the end to /gc --- Essentials/src/net/ess3/commands/Commandgc.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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")); } -- cgit v1.2.3