mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-11 02:07:38 +00:00
Fixed for recent Bukkit update.
This commit is contained in:
parent
b0069f2548
commit
d9280358ad
@ -26,6 +26,7 @@ import java.io.InputStream;
|
|||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.Event.Priority;
|
import org.bukkit.event.Event.Priority;
|
||||||
import org.bukkit.event.Event;
|
import org.bukkit.event.Event;
|
||||||
@ -146,7 +147,14 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
perms.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")
|
if (cmd.getName().equalsIgnoreCase("reloadwe")
|
||||||
&& hasPermission(player, "worldedit.reload")) {
|
&& hasPermission(player, "worldedit.reload")) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user