3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-07 03:50:06 +01:00

Fixed for recent Bukkit update.

Dieser Commit ist enthalten in:
sk89q 2011-01-29 20:38:41 -08:00
Ursprung b0069f2548
Commit d9280358ad

Datei anzeigen

@ -26,6 +26,7 @@ import java.io.InputStream;
import java.util.logging.Logger;
import org.bukkit.Server;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.Event.Priority;
import org.bukkit.event.Event;
@ -145,8 +146,15 @@ public class WorldEditPlugin extends JavaPlugin {
config.load();
perms.load();
}
public boolean onCommand(Player player, Command cmd, String commandLabel, String[] args) {
public boolean onCommand(CommandSender sender, Command cmd,
String commandLabel, String[] args) {
if (!sender.isPlayer()) {
return true;
}
Player player = (Player)sender;
if (cmd.getName().equalsIgnoreCase("reloadwe")
&& hasPermission(player, "worldedit.reload")) {
try {