Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.goksi.extremevent;
- import java.io.File;
- import java.util.List;
- import org.bukkit.Bukkit;
- import org.bukkit.configuration.ConfigurationSection;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Main extends JavaPlugin {
- Commands cmd = new Commands(this);
- Pvp pvp = new Pvp(cmd);
- public static List<String> bc;
- public void onEnable() {
- File file = new File(getDataFolder(), "config.yml");
- if(!file.exists()){
- saveDefaultConfig();
- }
- this.getCommand("pvp").setExecutor(pvp);
- this.getCommand("pvpevent").setExecutor(cmd);
- Bukkit.getPluginManager().registerEvents(pvp, this);
- }
- public void onDisable() {
- saveConfig();
- }
- public static boolean loadCommands(final ConfigurationSection cs) {
- if ((bc = (List<String>)cs.getStringList("BlockedCmd")) != null) {
- return true;
- }
- return false;
- }
- public List<String> getBc() {
- return bc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement