Deprecated CommandSender.isPlayer (instanceof!) and added ConsoleCommandSender

This commit is contained in:
Dinnerbone
2011-02-01 16:45:29 +00:00
parent 4bd254e18f
commit fbdb1d15aa
2 changed files with 21 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package org.bukkit.command;
/**
* Represents CLI input from a console
*/
public class ConsoleCommandSender implements CommandSender {
public void sendMessage(String message) {
System.out.println(message);
}
public boolean isOp() {
return true;
}
public boolean isPlayer() {
return false;
}
}