Fixed warnings and deprecation warnings.

This commit is contained in:
sk89q
2011-02-18 15:31:09 -08:00
parent 28941b86ba
commit e5a25496b2
4 changed files with 16 additions and 11 deletions

View File

@@ -147,9 +147,10 @@ public class WorldEditPlugin extends JavaPlugin {
perms.load();
}
@Override
public boolean onCommand(CommandSender sender, Command cmd,
String commandLabel, String[] args) {
if (!sender.isPlayer()) {
if (!(sender instanceof Player)) {
return true;
}