daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jan 16th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.pommeskiwi.futuremcde;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.plugin.PluginManager;
  8. import org.bukkit.plugin.java.JavaPlugin;
  9.  
  10. import me.pommeskiwi.futuremcde.commands.COMMAND_build;
  11. import me.pommeskiwi.futuremcde.commands.COMMAND_cc;
  12. import me.pommeskiwi.futuremcde.listener.BuildListener;
  13. import me.pommeskiwi.futuremcde.listener.JoinListener;
  14. import me.pommeskiwi.futuremcde.listener.LeaveListener;
  15.  
  16. public class Main extends JavaPlugin{
  17.    
  18.     public static String prefix = "§6FutureMCDE §7|";
  19.     public static String noprem = prefix + " §4Keine Berechtigung!";
  20.     public static String nocons = prefix + " §cKeine Berechtigung!!";
  21.     public static ArrayList<Player> build = new ArrayList<Player>();
  22.    
  23.     @Override
  24.     public void onEnable() {
  25.         Bukkit.getConsoleSender().sendMessage("");
  26.         Bukkit.getConsoleSender().sendMessage(prefix +"");
  27.         Bukkit.getConsoleSender().sendMessage(prefix +"§aPlugin aktiviuert");
  28.         Bukkit.getConsoleSender().sendMessage(prefix +"§aVersion 0.5");
  29.         Bukkit.getConsoleSender().sendMessage(prefix +"§amade by PommesKiwi");
  30.         Bukkit.getConsoleSender().sendMessage(prefix +"");
  31.        
  32.         registerCommands();
  33.         registerEvents();
  34.        
  35.     }
  36.  
  37.     @Override
  38.     public void onDisable() {
  39.         Bukkit.getConsoleSender().sendMessage(prefix +"");
  40.         Bukkit.getConsoleSender().sendMessage(prefix +"§cPlugin deaktiviuert");
  41.         Bukkit.getConsoleSender().sendMessage(prefix +"§cVersion 0.5");
  42.         Bukkit.getConsoleSender().sendMessage(prefix +"§cmade by PommesKiwi");
  43.         Bukkit.getConsoleSender().sendMessage(prefix +"");
  44.     }
  45.    
  46.     public void registerEvents() {
  47.         PluginManager pm = getServer().getPluginManager();
  48.         pm.registerEvents(new JoinListener(), this);
  49.         pm.registerEvents(new LeaveListener(), this);
  50.         pm.registerEvents(new BuildListener(), this);
  51.  
  52.        
  53.     }
  54.    
  55.     public void registerCommands() {
  56.     getCommand("build").setExecutor(new COMMAND_build());
  57.     getCommand("cc").setExecutor(new COMMAND_cc());
  58.     }
  59.  
  60.    
  61. }
RAW Paste Data
Top