summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2012-08-06 06:54:55 -0400
committerIaccidentally <coryhuckaby@gmail.com>2012-08-06 06:54:55 -0400
commit4ca09cea2d630c7f509fa7fed17622a0103bef98 (patch)
treeb5957310e5146f5652027b505ff934ee1dc49248
parent9b39a227c96fe23c713e7ebcf95131d414c0d0d1 (diff)
downloadEssentials-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.java13
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"));
}