Made LegacyConsoleSender compatible with patched Bukkit versions that add methods to CommandSender again.

Don't remove this again, wizjany.
This commit is contained in:
TomyLobo 2011-10-13 15:28:02 +02:00
parent e492b30178
commit d9ae1bbd9f

View File

@ -3,7 +3,7 @@
import java.util.Set; import java.util.Set;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.permissions.Permission; import org.bukkit.permissions.Permission;
import org.bukkit.permissions.PermissionAttachment; import org.bukkit.permissions.PermissionAttachment;
import org.bukkit.permissions.PermissionAttachmentInfo; import org.bukkit.permissions.PermissionAttachmentInfo;
@ -14,10 +14,11 @@
* *
* @author sk89q * @author sk89q
*/ */
class LegacyConsoleSender implements CommandSender { class LegacyConsoleSender extends ConsoleCommandSender {
private Server server; private Server server;
public LegacyConsoleSender(Server server) { public LegacyConsoleSender(Server server) {
super(server);
this.server = server; this.server = server;
} }