1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-24 07:13:17 +02:00

add support for the end to /gc

This commit is contained in:
Philip Muskovac
2012-08-04 12:42:28 +02:00
parent 7d20e4edd1
commit 8a100886e9

View File

@@ -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"));
}