mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-05 23:37:34 +01:00
Make our CommandSender look like a ConsoleCommandSender, because some
plugins insist on that.
This commit is contained in:
parent
b3ebec3580
commit
5511a92bdf
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user