Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 10th, 2020 145 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top