Advertisement
Guest User

Untitled

a guest
Apr 10th, 2020
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. package com.streen.regions;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.Location;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import com.streen.regions.cmds.Region;
  8. import com.streen.regions.utils.Config;
  9.  
  10. public class Main extends JavaPlugin {
  11.    
  12.     public static Config = new Config("regions.yml");
  13.     public static Config players = new Config("players.yml");
  14.    
  15.    
  16.     public static Location loc1;
  17.     public static Location loc2;
  18.    
  19.     public void onEnable() {
  20.        
  21.         getCommand("sregion").setExecutor(new Region());
  22.        
  23.         Bukkit.getPluginManager().registerEvents(new Eventos(), this);
  24.        
  25.         regions = new Config("regions.yml");
  26.         regions.saveConfig();
  27.        
  28.         players = new Config("players.yml");
  29.         players.saveConfig();
  30.        
  31.         Bukkit.getConsoleSender().sendMessage("§a[StreenRegions] Inicializado.");
  32.     }
  33.    
  34.     public void onDisable() {
  35.         Bukkit.getConsoleSender().sendMessage("§c[StreenRegions] Desabilitado.");
  36.         players.saveConfig();
  37.         regions.saveConfig();
  38.     }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement