SHARE
TWEET

Untitled

sd_captain Oct 21st, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import org.bukkit.Bukkit;
  2. import org.bukkit.ChatColor;
  3. import org.bukkit.plugin.java.JavaPlugin;
  4.  
  5. import io.github.sdcaptains.Commands.Check;
  6. import io.github.sdcaptains.Commands.Set;
  7. import io.github.sdcaptains.Listeners.Join;
  8. import io.github.sdcaptains.Storages.Database;
  9. import io.github.sdcaptains.utils.Placeholders;
  10.  
  11. public class Main extends JavaPlugin {
  12.    
  13.     public static Main instance;
  14.     public static Main getInstance() {
  15.     return instance;
  16.     }
  17.     @Override
  18.     public void onEnable() {
  19.        
  20.         getConfig().options().copyDefaults(true);
  21.         saveDefaultConfig();   
  22.        
  23.         new Database(this);
  24.         new Check(this);
  25.         new Set(this);
  26.         new Join(this);
  27.        
  28.         Bukkit.getConsoleSender().sendMessage(ChatColor.AQUA + "plugin is now online");
  29.        
  30.         if( Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")){
  31.             new Placeholders().register();
  32.         }
  33.     }
  34.     public void reload() {
  35.         reloadConfig();
  36.         saveDefaultConfig();   
  37.     }
  38.     @Override
  39.     public void onDisable() {
  40.         Bukkit.getConsoleSender().sendMessage(ChatColor.RED + "plugin is now offline");
  41.     }
  42. }
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