From d0a405ff959ceaefdfe6d0fc06be4160b3bdb882 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Wed, 8 Jun 2011 16:19:02 -0500 Subject: [PATCH] reload and save commands now don't require it to be a player executing them --- src/org/mcteam/factions/commands/FCommandReload.java | 2 ++ src/org/mcteam/factions/commands/FCommandSaveAll.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/org/mcteam/factions/commands/FCommandReload.java b/src/org/mcteam/factions/commands/FCommandReload.java index 07f32d36..23c9615b 100644 --- a/src/org/mcteam/factions/commands/FCommandReload.java +++ b/src/org/mcteam/factions/commands/FCommandReload.java @@ -12,6 +12,8 @@ public class FCommandReload extends FBaseCommand { public FCommandReload() { aliases.add("reload"); + senderMustBePlayer = false; + optionalParameters.add("file"); helpDescription = "reloads all json files, or a specific one"; diff --git a/src/org/mcteam/factions/commands/FCommandSaveAll.java b/src/org/mcteam/factions/commands/FCommandSaveAll.java index 6aefce31..69e8a974 100644 --- a/src/org/mcteam/factions/commands/FCommandSaveAll.java +++ b/src/org/mcteam/factions/commands/FCommandSaveAll.java @@ -9,6 +9,8 @@ public class FCommandSaveAll extends FBaseCommand { aliases.add("saveall"); aliases.add("save"); + senderMustBePlayer = false; + helpDescription = "save factions to disk"; }