3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-25 10:30:04 +01:00

[Bukkit] Made BukkitCommandSender public again.

CommandHelper subclasses this, although whether things will work
properly after this change is to be said.

Fixes WORLDEDIT-3136.
Dieser Commit ist enthalten in:
sk89q 2014-06-29 12:28:27 -07:00
Ursprung d4dde8c4a6
Commit ad9b8ce3b1

Datei anzeigen

@ -19,8 +19,6 @@
package com.sk89q.worldedit.bukkit;
import com.sk89q.worldedit.LocalWorld;
import com.sk89q.worldedit.PlayerNeededException;
import com.sk89q.worldedit.WorldEditPermissionException;
import com.sk89q.worldedit.extension.platform.Actor;
import com.sk89q.worldedit.internal.cui.CUIEvent;
@ -32,12 +30,12 @@ import java.io.File;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
class BukkitCommandSender implements Actor {
public class BukkitCommandSender implements Actor {
private CommandSender sender;
private WorldEditPlugin plugin;
BukkitCommandSender(WorldEditPlugin plugin, CommandSender sender) {
public BukkitCommandSender(WorldEditPlugin plugin, CommandSender sender) {
checkNotNull(plugin);
checkNotNull(sender);
checkArgument(!(sender instanceof Player), "Cannot wrap a player");