Make our CommandSender look like a ConsoleCommandSender, because some

plugins insist on that.
This commit is contained in:
Evenprime 2012-01-11 02:49:22 +01:00
parent b3ebec3580
commit 5511a92bdf
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cc.co.evenprime.bukkit</groupId> <groupId>cc.co.evenprime.bukkit</groupId>
<artifactId>NoCheat</artifactId> <artifactId>NoCheat</artifactId>
<version>2.24a</version> <version>2.24b</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>NoCheat</name> <name>NoCheat</name>
<properties> <properties>

View File

@ -2,11 +2,11 @@ package cc.co.evenprime.bukkit.nocheat.actions;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.permissions.PermissibleBase; import org.bukkit.permissions.PermissibleBase;
import org.bukkit.permissions.ServerOperator; import org.bukkit.permissions.ServerOperator;
public class NoCheatCommandSender extends PermissibleBase implements CommandSender { public class NoCheatCommandSender extends PermissibleBase implements ConsoleCommandSender {
private static final ServerOperator serverOperator = new ServerOperator() { private static final ServerOperator serverOperator = new ServerOperator() {