Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.streen.regions;
- import org.bukkit.Bukkit;
- import org.bukkit.Location;
- import org.bukkit.plugin.java.JavaPlugin;
- import com.streen.regions.cmds.Region;
- import com.streen.regions.utils.Config;
- public class Main extends JavaPlugin {
- public static Config = new Config("regions.yml");
- public static Config players = new Config("players.yml");
- public static Location loc1;
- public static Location loc2;
- public void onEnable() {
- getCommand("sregion").setExecutor(new Region());
- Bukkit.getPluginManager().registerEvents(new Eventos(), this);
- regions = new Config("regions.yml");
- regions.saveConfig();
- players = new Config("players.yml");
- players.saveConfig();
- Bukkit.getConsoleSender().sendMessage("§a[StreenRegions] Inicializado.");
- }
- public void onDisable() {
- Bukkit.getConsoleSender().sendMessage("§c[StreenRegions] Desabilitado.");
- players.saveConfig();
- regions.saveConfig();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement