Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.13 KB | None | 0 0
  1. package fr.rhodless.gloria;
  2.  
  3. import fr.rhodless.gloria.commands.*;
  4. import org.bukkit.entity.Player;
  5. import org.bukkit.event.EventHandler;
  6. import org.bukkit.event.Listener;
  7. import org.bukkit.event.player.PlayerJoinEvent;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. import java.util.HashMap;
  11.  
  12. public class Main extends JavaPlugin implements Listener {
  13.     public HashMap<Player, CustomScoreboardManager> sb = new HashMap<>();
  14.  
  15.     public static Main instance;
  16.  
  17.     public static Main getInstance() {
  18.         return instance;
  19.     }
  20.  
  21.     @Override
  22.     public void onEnable() {
  23.         instance = this;
  24.  
  25.         getServer().getPluginManager().registerEvents(new MonPluginListeners(), this);
  26.         this.getCommand("broadcast").setExecutor(new CommandBroadcast());
  27.         this.getCommand("profil").setExecutor(new CommandProfil());
  28.         this.getCommand("discord").setExecutor(new CommandBroadcast());
  29.         this.getCommand("help").setExecutor(new CommandHelp());
  30.         this.getCommand("respawn").setExecutor(new CommandRespawn());
  31.         this.getCommand("createserver").setExecutor(new CommandCreateServer());
  32.  
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement