mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-12 09:35:26 +02:00
Remove requires at least one argument.
This commit is contained in:
@@ -26,6 +26,10 @@ public class Commandremove extends EssentialsCommand
|
||||
{
|
||||
World world = user.getWorld();
|
||||
int radius = 0;
|
||||
if (args.length < 1)
|
||||
{
|
||||
throw new NotEnoughArgumentsException();
|
||||
}
|
||||
if (args.length >= 2)
|
||||
{
|
||||
try
|
||||
@@ -61,7 +65,7 @@ public class Commandremove extends EssentialsCommand
|
||||
List<String> types = new ArrayList<String>();
|
||||
List<String> customTypes = new ArrayList<String>();
|
||||
|
||||
if (args.length > 0 && (args[0].contentEquals("*") || args[0].contentEquals("all")))
|
||||
if (args[0].contentEquals("*") || args[0].contentEquals("all"))
|
||||
{
|
||||
types.add(0, "ALL");
|
||||
}
|
||||
|
Reference in New Issue
Block a user