Skeleton API Implementations
This contains the basic, empty implementations for some Spigot-API extensions. They are included early in the patching progress so that compilation will still succeed midway despite the APIs only being provided by subsequent patches. By: md_5 <git@md-5.net>
This commit is contained in:
@@ -132,4 +132,11 @@ public class ProxiedNativeCommandSender implements ProxiedCommandSender {
|
||||
this.getCaller().setOp(value);
|
||||
}
|
||||
|
||||
// Spigot start
|
||||
@Override
|
||||
public org.bukkit.command.CommandSender.Spigot spigot()
|
||||
{
|
||||
return this.getCaller().spigot();
|
||||
}
|
||||
// Spigot end
|
||||
}
|
||||
|
||||
@@ -95,4 +95,16 @@ public abstract class ServerCommandSender implements CommandSender {
|
||||
public void sendMessage(UUID uuid, String... messages) {
|
||||
this.sendMessage(messages); // ServerCommandSenders have no use for senders
|
||||
}
|
||||
|
||||
// Spigot start
|
||||
private final org.bukkit.command.CommandSender.Spigot spigot = new org.bukkit.command.CommandSender.Spigot()
|
||||
{
|
||||
};
|
||||
|
||||
@Override
|
||||
public org.bukkit.command.CommandSender.Spigot spigot()
|
||||
{
|
||||
return this.spigot;
|
||||
}
|
||||
// Spigot end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user