summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandext.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandext.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandext.java16
1 files changed, 6 insertions, 10 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandext.java b/Essentials/src/com/earth2me/essentials/commands/Commandext.java
index dac1a3e9c..8520915df 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandext.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandext.java
@@ -2,31 +2,27 @@ package com.earth2me.essentials.commands;
import static com.earth2me.essentials.I18n._;
import com.earth2me.essentials.api.IUser;
-import org.bukkit.Server;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
public class Commandext extends EssentialsCommand
{
- public Commandext()
- {
- super("ext");
- }
+
@Override
- protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
+ protected void run(final CommandSender sender, final String[] args) throws Exception
{
if (args.length < 1)
{
throw new NotEnoughArgumentsException();
}
- extinguishPlayers(server, sender, args[0]);
+ extinguishPlayers(sender, args[0]);
}
@Override
- public void run(final Server server, final IUser user, final String commandLabel, final String[] args) throws Exception
+ public void run(final IUser user, final String[] args) throws Exception
{
if (args.length < 1)
{
@@ -35,10 +31,10 @@ public class Commandext extends EssentialsCommand
return;
}
- extinguishPlayers(server, user, commandLabel);
+ extinguishPlayers(user, args[0]);
}
- private void extinguishPlayers(final Server server, final CommandSender sender, final String name) throws Exception
+ private void extinguishPlayers(final CommandSender sender, final String name) throws Exception
{
for (Player matchPlayer : server.matchPlayer(name))
{