SHARE
TWEET

Untitled

w4ffel Feb 27th, 2020 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package de.waffel.pvp.main;
  2.  
  3. import org.bukkit.Bukkit;
  4. import org.bukkit.plugin.PluginManager;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import de.waffel.pvp.commands.SetSpawn;
  8. import de.waffel.pvp.listener.BuildBreakListener;
  9. import de.waffel.pvp.listener.SpawnDeathListener;
  10.  
  11. public class Main extends JavaPlugin{
  12.  
  13.    
  14.    
  15.     public static Main plugin;
  16.    
  17.     public void onEnable() {
  18.         plugin = this;
  19.         PluginManager plm = Bukkit.getPluginManager();
  20.         plm.registerEvents(new BuildBreakListener(), this);
  21.         plm.registerEvents(new SpawnDeathListener(), this);
  22.        
  23.         getCommand("setSpawn").setExecutor(new SetSpawn());
  24.        
  25.     }
  26.    
  27.     public static Main getPlugin() {
  28.         return plugin;
  29.     }
  30.    
  31. }
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