mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-05 10:20:53 +01:00
Treat Vanilla commands as Bukkit Commands
This commit is contained in:
parent
03f1e37ae2
commit
f3356f1074
@ -9,18 +9,18 @@ import org.apache.commons.lang.Validate;
|
|||||||
import org.apache.logging.log4j.Level;
|
import org.apache.logging.log4j.Level;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.command.BlockCommandSender;
|
import org.bukkit.command.BlockCommandSender;
|
||||||
import org.bukkit.command.Command;
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.command.ConsoleCommandSender;
|
import org.bukkit.command.ConsoleCommandSender;
|
||||||
import org.bukkit.command.ProxiedCommandSender;
|
import org.bukkit.command.ProxiedCommandSender;
|
||||||
import org.bukkit.command.RemoteConsoleCommandSender;
|
import org.bukkit.command.RemoteConsoleCommandSender;
|
||||||
|
import org.bukkit.command.defaults.BukkitCommand;
|
||||||
import org.bukkit.craftbukkit.CraftServer;
|
import org.bukkit.craftbukkit.CraftServer;
|
||||||
import org.bukkit.craftbukkit.entity.CraftMinecartCommand;
|
import org.bukkit.craftbukkit.entity.CraftMinecartCommand;
|
||||||
import org.bukkit.craftbukkit.entity.CraftPlayer;
|
import org.bukkit.craftbukkit.entity.CraftPlayer;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.entity.minecart.CommandMinecart;
|
import org.bukkit.entity.minecart.CommandMinecart;
|
||||||
|
|
||||||
public final class VanillaCommandWrapper extends Command {
|
public final class VanillaCommandWrapper extends BukkitCommand {
|
||||||
protected final CommandAbstract vanillaCommand;
|
protected final CommandAbstract vanillaCommand;
|
||||||
|
|
||||||
public VanillaCommandWrapper(CommandAbstract vanillaCommand, String usage) {
|
public VanillaCommandWrapper(CommandAbstract vanillaCommand, String usage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user