summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-11-11 20:39:03 +0000
committerElgarL <ElgarL@palmergames.com>2012-11-11 20:39:03 +0000
commit237c896fffc20404635742091c29d5d9de927cd8 (patch)
treee68810019e368dcdf032e9210dc17d68e74fb5b5 /EssentialsGroupManager/src/org
parenta370a8e01c7814d4b5fc3f4db7ee45dd5a248f60 (diff)
downloadEssentials-237c896fffc20404635742091c29d5d9de927cd8.tar
Essentials-237c896fffc20404635742091c29d5d9de927cd8.tar.gz
Essentials-237c896fffc20404635742091c29d5d9de927cd8.tar.lz
Essentials-237c896fffc20404635742091c29d5d9de927cd8.tar.xz
Essentials-237c896fffc20404635742091c29d5d9de927cd8.zip
Add support for Rcon.
Diffstat (limited to 'EssentialsGroupManager/src/org')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index d78473847..b02b2ccd6 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -37,6 +37,7 @@ import org.bukkit.OfflinePlayer;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
+import org.bukkit.command.RemoteConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.ServicePriority;
@@ -398,7 +399,7 @@ public class GroupManager extends JavaPlugin {
if (isOpOverride || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, "groupmanager." + cmd.getName())) {
playerCanDo = true;
}
- } else if (sender instanceof ConsoleCommandSender) {
+ } else if ((sender instanceof ConsoleCommandSender) || (sender instanceof RemoteConsoleCommandSender)) {
if (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase("manload")) {
sender.sendMessage(ChatColor.RED + "All commands are locked due to an error." + ChatColor.BOLD + "" + ChatColor.UNDERLINE + "Check the log" + ChatColor.RESET + " and then try a '/manload'.");