RocketJump/src/main/java/pw/yumc/RocketJump/RocketJump.java

32 lines
835 B
Java

package pw.yumc.RocketJump;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.PluginHelper.commands.InvokeSubCommand;
import cn.citycraft.PluginHelper.utils.VersionChecker;
/**
* 火箭跳跃主类
*
* @author 喵♂呜
* @since 2016年2月9日 下午8:50:50
*/
public class RocketJump extends JavaPlugin {
static RocketJump instence;
static List<String> Dante = new ArrayList<String>();
@Override
public void onEnable() {
instence = this;
final InvokeSubCommand isc = new InvokeSubCommand(this, "rj");
isc.registerCommands(new RocketJumpCommands());
isc.setAllCommandOnlyPlayer(true);
getServer().getPluginManager().registerEvents(new RocketJumpListen(), this);
new VersionChecker(this);
}
}