Forgot to update /slay, /wg report, and /stoplag to new commands system

This commit is contained in:
zml2008 2011-12-10 12:52:32 -08:00
parent 59673c9e66
commit 4895a3313b
3 changed files with 3 additions and 6 deletions

View File

@ -172,8 +172,7 @@ public void heal(CommandContext args,CommandSender sender) throws CommandExcepti
} }
@Command(aliases = {"slay"}, usage = "[player]", desc = "Slay a player", flags = "s", max = 1) @Command(aliases = {"slay"}, usage = "[player]", desc = "Slay a player", flags = "s", max = 1)
public static void slay(CommandContext args, WorldGuardPlugin plugin, public void slay(CommandContext args, CommandSender sender) throws CommandException {
CommandSender sender) throws CommandException {
Iterable<Player> targets = null; Iterable<Player> targets = null;
boolean included = false; boolean included = false;

View File

@ -100,8 +100,7 @@ public void allowFire(CommandContext args, CommandSender sender) throws CommandE
@Command(aliases = {"halt-activity"}, @Command(aliases = {"halt-activity"},
desc = "Attempts to cease as much activity in order to stop lag", flags = "c", max = 0) desc = "Attempts to cease as much activity in order to stop lag", flags = "c", max = 0)
@CommandPermissions({"worldguard.halt-activity"}) @CommandPermissions({"worldguard.halt-activity"})
public static void stopLag(CommandContext args, WorldGuardPlugin plugin, public void stopLag(CommandContext args, CommandSender sender) throws CommandException {
CommandSender sender) throws CommandException {
ConfigurationManager configManager = plugin.getGlobalStateManager(); ConfigurationManager configManager = plugin.getGlobalStateManager();

View File

@ -85,8 +85,7 @@ public void reload(CommandContext args, CommandSender sender) throws CommandExce
@Command(aliases = {"report"}, desc = "Writes a report on WorldGuard", flags = "p", max = 0) @Command(aliases = {"report"}, desc = "Writes a report on WorldGuard", flags = "p", max = 0)
@CommandPermissions({"worldguard.report"}) @CommandPermissions({"worldguard.report"})
public static void report(CommandContext args, WorldGuardPlugin plugin, public void report(CommandContext args, final CommandSender sender) throws CommandException {
final CommandSender sender) throws CommandException {
File dest = new File(plugin.getDataFolder(), "report.txt"); File dest = new File(plugin.getDataFolder(), "report.txt");
ReportWriter report = new ReportWriter(plugin); ReportWriter report = new ReportWriter(plugin);