mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00: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.
This commit is contained in:
parent
d4dde8c4a6
commit
ad9b8ce3b1
@ -19,8 +19,6 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.bukkit;
|
package com.sk89q.worldedit.bukkit;
|
||||||
|
|
||||||
import com.sk89q.worldedit.LocalWorld;
|
|
||||||
import com.sk89q.worldedit.PlayerNeededException;
|
|
||||||
import com.sk89q.worldedit.WorldEditPermissionException;
|
import com.sk89q.worldedit.WorldEditPermissionException;
|
||||||
import com.sk89q.worldedit.extension.platform.Actor;
|
import com.sk89q.worldedit.extension.platform.Actor;
|
||||||
import com.sk89q.worldedit.internal.cui.CUIEvent;
|
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.checkArgument;
|
||||||
import static com.google.common.base.Preconditions.checkNotNull;
|
import static com.google.common.base.Preconditions.checkNotNull;
|
||||||
|
|
||||||
class BukkitCommandSender implements Actor {
|
public class BukkitCommandSender implements Actor {
|
||||||
|
|
||||||
private CommandSender sender;
|
private CommandSender sender;
|
||||||
private WorldEditPlugin plugin;
|
private WorldEditPlugin plugin;
|
||||||
|
|
||||||
BukkitCommandSender(WorldEditPlugin plugin, CommandSender sender) {
|
public BukkitCommandSender(WorldEditPlugin plugin, CommandSender sender) {
|
||||||
checkNotNull(plugin);
|
checkNotNull(plugin);
|
||||||
checkNotNull(sender);
|
checkNotNull(sender);
|
||||||
checkArgument(!(sender instanceof Player), "Cannot wrap a player");
|
checkArgument(!(sender instanceof Player), "Cannot wrap a player");
|
||||||
|
Loading…
Reference in New Issue
Block a user