mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 03:54:19 +02:00
Add missing param in /remove
This commit is contained in:
@@ -6,6 +6,7 @@ import com.earth2me.essentials.utils.NumberUtil;
|
|||||||
import java.lang.management.ManagementFactory;
|
import java.lang.management.ManagementFactory;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.ChatColor;
|
||||||
|
import org.bukkit.Chunk;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
@@ -56,7 +57,13 @@ public class Commandgc extends EssentialsCommand
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
sender.sendMessage(_("gcWorld", worldType, w.getName(), w.getLoadedChunks().length, w.getEntities().size()));
|
int tileEntities = 0;
|
||||||
|
|
||||||
|
for (Chunk chunk : w.getLoadedChunks()) {
|
||||||
|
tileEntities += chunk.getTileEntities().length;
|
||||||
|
}
|
||||||
|
|
||||||
|
sender.sendMessage(_("gcWorld", worldType, w.getName(), w.getLoadedChunks().length, w.getEntities().size(), tileEntities));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -26,7 +26,8 @@ public class Commandremove extends EssentialsCommand
|
|||||||
MINECARTS,
|
MINECARTS,
|
||||||
XP,
|
XP,
|
||||||
PAINTINGS,
|
PAINTINGS,
|
||||||
ITEMFRAMES
|
ITEMFRAMES,
|
||||||
|
ENDERCRYSTALS
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -178,6 +179,14 @@ public class Commandremove extends EssentialsCommand
|
|||||||
removed++;
|
removed++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (toRemove == ToRemove.ENDERCRYSTALS)
|
||||||
|
{
|
||||||
|
if (e instanceof EnderCrystal)
|
||||||
|
{
|
||||||
|
e.remove();
|
||||||
|
removed++;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
sender.sendMessage(_("removed", removed));
|
sender.sendMessage(_("removed", removed));
|
||||||
|
@@ -123,7 +123,7 @@ flying=flying
|
|||||||
foreverAlone=\u00a74You have nobody to whom you can reply.
|
foreverAlone=\u00a74You have nobody to whom you can reply.
|
||||||
fullStack=\u00a74You already have a full stack.
|
fullStack=\u00a74You already have a full stack.
|
||||||
gameMode=\u00a76Set game mode\u00a7c {0} \u00a76for {1}\u00a76.
|
gameMode=\u00a76Set game mode\u00a7c {0} \u00a76for {1}\u00a76.
|
||||||
gcWorld=\u00a76{0} "\u00a7c{1}\u00a76"\: \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities.
|
gcWorld=\u00a76{0} "\u00a7c{1}\u00a76"\: \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities, \u00a7c{4}\u00a76 tiles.
|
||||||
gcfree=\u00a76Free memory\:\u00a7c {0} MB.
|
gcfree=\u00a76Free memory\:\u00a7c {0} MB.
|
||||||
gcmax=\u00a76Maximum memory\:\u00a7c {0} MB.
|
gcmax=\u00a76Maximum memory\:\u00a7c {0} MB.
|
||||||
gctotal=\u00a76Allocated memory\:\u00a7c {0} MB.
|
gctotal=\u00a76Allocated memory\:\u00a7c {0} MB.
|
||||||
|
@@ -123,7 +123,7 @@ flying=flying
|
|||||||
foreverAlone=\u00a74You have nobody to whom you can reply.
|
foreverAlone=\u00a74You have nobody to whom you can reply.
|
||||||
fullStack=\u00a74You already have a full stack.
|
fullStack=\u00a74You already have a full stack.
|
||||||
gameMode=\u00a76Set game mode\u00a7c {0} \u00a76for {1}\u00a76.
|
gameMode=\u00a76Set game mode\u00a7c {0} \u00a76for {1}\u00a76.
|
||||||
gcWorld=\u00a76{0} "\u00a7c{1}\u00a76"\: \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities.
|
gcWorld=\u00a76{0} "\u00a7c{1}\u00a76"\: \u00a7c{2}\u00a76 chunks, \u00a7c{3}\u00a76 entities, \u00a7c{4}\u00a76 tiles.
|
||||||
gcfree=\u00a76Free memory\:\u00a7c {0} MB.
|
gcfree=\u00a76Free memory\:\u00a7c {0} MB.
|
||||||
gcmax=\u00a76Maximum memory\:\u00a7c {0} MB.
|
gcmax=\u00a76Maximum memory\:\u00a7c {0} MB.
|
||||||
gctotal=\u00a76Allocated memory\:\u00a7c {0} MB.
|
gctotal=\u00a76Allocated memory\:\u00a7c {0} MB.
|
||||||
|
@@ -300,7 +300,7 @@ commands:
|
|||||||
aliases: [formula,eformula,method,emethod,erecipe,recipes,erecipes]
|
aliases: [formula,eformula,method,emethod,erecipe,recipes,erecipes]
|
||||||
remove:
|
remove:
|
||||||
description: Removes entities in your world.
|
description: Removes entities in your world.
|
||||||
usage: /<command> <drops|arrows|boats|minecarts|xp|paintings> [radius] [world]
|
usage: /<command> <drops|arrows|boats|minecarts|xp|paintings|itemframes|endercrystals> [radius] [world]
|
||||||
aliases: [eremove]
|
aliases: [eremove]
|
||||||
repair:
|
repair:
|
||||||
description: Repairs the durability of one or all items.
|
description: Repairs the durability of one or all items.
|
||||||
|
Reference in New Issue
Block a user