diff options
author | Iaccidentally <coryhuckaby@gmail.com> | 2012-08-06 06:54:55 -0400 |
---|---|---|
committer | Iaccidentally <coryhuckaby@gmail.com> | 2012-08-06 06:54:55 -0400 |
commit | 4ca09cea2d630c7f509fa7fed17622a0103bef98 (patch) | |
tree | b5957310e5146f5652027b505ff934ee1dc49248 | |
parent | 9b39a227c96fe23c713e7ebcf95131d414c0d0d1 (diff) | |
download | Essentials-4ca09cea2d630c7f509fa7fed17622a0103bef98.tar Essentials-4ca09cea2d630c7f509fa7fed17622a0103bef98.tar.gz Essentials-4ca09cea2d630c7f509fa7fed17622a0103bef98.tar.lz Essentials-4ca09cea2d630c7f509fa7fed17622a0103bef98.tar.xz Essentials-4ca09cea2d630c7f509fa7fed17622a0103bef98.zip |
update gc for all worlds (thanks to Yofel)
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandgc.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandgc.java b/Essentials/src/com/earth2me/essentials/commands/Commandgc.java index d9b08b50f..c8d5b732e 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandgc.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandgc.java @@ -38,8 +38,19 @@ public class Commandgc extends EssentialsCommand for (World w : server.getWorlds()) { + String worldType = "World"; + switch (w.getEnvironment()) + { + case NETHER: + worldType = "Nether"; + break; + case 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")); } |