zeus2206

Core.java/Main.java

Apr 17th, 2020
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. package de.alpha_2206.bau;
  2.  
  3. import java.util.ArrayList;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.entity.Player;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. import com.mojang.datafixers.types.templates.List;
  10.  
  11. public class Core extends JavaPlugin {
  12. public static ArrayList<String> playerlist = new ArrayList<String>();
  13.  
  14. private static Core instance;
  15.  
  16. public static Core getInstance() {
  17. return instance;
  18. }
  19.  
  20. public void OnEnable() {
  21. instance = this;
  22. System.out.println("Enable Bausystem by Alpha_2206");
  23. Bukkit.getPluginCommand("baustart").setExecutor(this);
  24. Bukkit.getPluginCommand("baustop").setExecutor(this);
  25. Bukkit.getPluginCommand("bautp").setExecutor(this);
  26. }
  27.  
  28. public void onDisable() {
  29. instance = null;
  30. System.out.println("Disable Bausystem by Alpha_2206");
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment