mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 18:47:44 +01:00
Forgot to update /slay, /wg report, and /stoplag to new commands system
This commit is contained in:
parent
59673c9e66
commit
4895a3313b
@ -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;
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user