[Bukkit] Made BukkitCommandSender public again.

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

Fixes WORLDEDIT-3136.
This commit is contained in:
sk89q 2014-06-29 12:28:27 -07:00
parent d4dde8c4a6
commit ad9b8ce3b1

View File

@ -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");