41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
/******************************************************************************
|
|
* Multiverse 2 Copyright (c) the Multiverse Team 2011. *
|
|
* Multiverse 2 is licensed under the BSD License. *
|
|
* For more information please check the README.md file included *
|
|
* with this project. *
|
|
******************************************************************************/
|
|
|
|
package com.onarandombox.MultiverseCore.commandsold;
|
|
|
|
import java.util.List;
|
|
|
|
import com.onarandombox.MultiverseCore.MultiverseCore;
|
|
import com.onarandombox.MultiverseCore.api.MultiverseMessaging;
|
|
import com.pneumaticraft.commandhandler.Command;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
/**
|
|
* A generic Multiverse-command.
|
|
*/
|
|
public abstract class MultiverseCommand extends Command {
|
|
|
|
/**
|
|
* The reference to the core.
|
|
*/
|
|
protected MultiverseCore plugin;
|
|
/**
|
|
* The reference to {@link MultiverseMessaging}.
|
|
*/
|
|
protected MultiverseMessaging messaging;
|
|
|
|
public MultiverseCommand(MultiverseCore plugin) {
|
|
super(plugin);
|
|
this.plugin = plugin;
|
|
this.messaging = this.plugin.getMessaging();
|
|
}
|
|
|
|
@Override
|
|
public abstract void runCommand(CommandSender sender, List<String> args);
|
|
|
|
}
|