Guest User

So ist es implementiert

a guest
Dec 11th, 2016
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import me.BukkitPVP.VIPHide.VIPHide;
  2.  
  3. public class setcommand extends JavaPlugin implements Listener {
  4.    
  5.     //API
  6.     public VIPHide hide;
  7.    
  8.     private void setupVIPHide() {
  9.         if (Bukkit.getPluginManager().isPluginEnabled("VIPHide"))
  10.             this.hide = (VIPHide) Bukkit.getPluginManager().getPlugin("VIPHide");
  11.     }
  12.    
  13.     //HashMaps
  14.     public static HashMap<String, Long> cooldown = new HashMap<>();
  15.     public static HashMap<String, Long> cooldownfood = new HashMap<>();
  16.    
  17.     //Strings
  18.    
  19.     String kitprefix = "§2[KitSystem] §e";
  20.     static String prefix = "§2[Survival] §e";
  21.     String playerniked = hide.getName();
  22.    
  23.     //Enable
  24.    
  25.     @Override
  26.     public void onEnable() {
  27.         Bukkit.getServer().getPluginManager().registerEvents(this, this);
  28.         System.out.println("The Plugin started");
  29.         setupVIPHide();
  30.     }
  31.    
  32.    
  33.     //Disable
  34.    
  35.     @Override
  36.     public void onDisable() {
  37.         System.out.println("The Plugin stopped");
  38.     }
RAW Paste Data