summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Muskovac <yofel@gmx.net>2012-08-04 12:42:28 +0200
committerPhilip Muskovac <yofel@gmx.net>2012-08-04 12:42:28 +0200
commit8a100886e91333cfd61b6f571b0197f345b4a75e (patch)
treefc791c15bfeb0be05ad7370cd2ca7aec276cd69f
parent7d20e4edd10cfa82426d78ac89f24106452b3f9b (diff)
downloadEssentials-8a100886e91333cfd61b6f571b0197f345b4a75e.tar
Essentials-8a100886e91333cfd61b6f571b0197f345b4a75e.tar.gz
Essentials-8a100886e91333cfd61b6f571b0197f345b4a75e.tar.lz
Essentials-8a100886e91333cfd61b6f571b0197f345b4a75e.tar.xz
Essentials-8a100886e91333cfd61b6f571b0197f345b4a75e.zip
add support for the end to /gc
-rw-r--r--Essentials/src/net/ess3/commands/Commandgc.java13
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"));
}