Advertisement
Guest User

Untitled

a guest
Jul 30th, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. package main;
  2.  
  3. import java.io.FileWriter;
  4. import java.util.HashMap;
  5.  
  6. import org.bukkit.Bukkit;
  7. import org.bukkit.Location;
  8. import org.bukkit.plugin.PluginDescriptionFile;
  9. import org.bukkit.plugin.java.JavaPlugin;
  10.  
  11. import commands.Back;
  12. import commands.Bagpack;
  13. import commands.Build;
  14. import commands.ChatClear;
  15. import commands.Chatblock;
  16. import commands.Check;
  17. import commands.Fly;
  18. import commands.Freeze;
  19. import commands.Gamemode;
  20. import commands.Gospawn;
  21. import commands.Heal;
  22. import commands.Info;
  23. import commands.InventoryClear;
  24. import commands.Invsee;
  25. import commands.Mute;
  26. import commands.Setspawn;
  27. import commands.Spec;
  28. import commands.TPHere;
  29. import commands.Time;
  30. import commands.Vanish;
  31. import commands.Weather;
  32. import listeners.BuildEvent;
  33. import listeners.ChatListener;
  34. import listeners.DeathEvent;
  35. import listeners.Joinevent;
  36. import listeners.MoveEvent;
  37. import listeners.PlayerchatEvent;
  38. import listeners.RespawnEvent;
  39.  
  40.  
  41.  
  42. public class Main extends JavaPlugin{
  43.  
  44. public static HashMap<String, Location> back = new HashMap<>();
  45. public static HashMap<String, Location> spawn = new HashMap<>();
  46. public static String pr = "§8[§cExtras§8] §a";
  47.  
  48.  
  49. @Override
  50. public void onEnable() {
  51. registercommands();
  52. registerListeners();
  53.  
  54. }
  55. @Override
  56. public void onDisable() {
  57.  
  58. }
  59. public void registercommands() {
  60. getCommand("fly").setExecutor(new Fly());
  61. getCommand("gm").setExecutor(new Gamemode());
  62. getCommand("heal").setExecutor(new Heal());
  63. getCommand("bagpack").setExecutor(new Bagpack());
  64. getCommand("sun").setExecutor(new Weather());
  65. getCommand("rain").setExecutor(new Weather());
  66. getCommand("day").setExecutor(new Time());
  67. getCommand("night").setExecutor(new Time());
  68. getCommand("invsee").setExecutor(new Invsee());
  69. getCommand("spec").setExecutor(new Spec());
  70. getCommand("chatclear").setExecutor(new ChatClear());
  71. getCommand("vanish").setExecutor(new Vanish());
  72. getCommand("info").setExecutor(new Info());
  73. getCommand("back").setExecutor(new Back());
  74. getCommand("setspawn").setExecutor(new Setspawn());
  75. getCommand("spawn").setExecutor(new Gospawn());
  76. getCommand("delspawn").setExecutor(new Gospawn());
  77. getCommand("freeze").setExecutor(new Freeze());
  78. getCommand("mute").setExecutor(new Mute());
  79. getCommand("unmute").setExecutor(new Mute());
  80. getCommand("build").setExecutor(new Build());
  81. getCommand("check").setExecutor(new Check());
  82. getCommand("tphere").setExecutor(new TPHere());
  83. getCommand("clear").setExecutor(new InventoryClear());
  84. getCommand("blacklist").setExecutor(new Chatblock());
  85. }
  86. public void registerListeners() {
  87. Bukkit.getServer().getPluginManager().registerEvents(new Joinevent(), this);
  88. Bukkit.getServer().getPluginManager().registerEvents(new DeathEvent(), this);
  89. Bukkit.getServer().getPluginManager().registerEvents(new RespawnEvent(), this);
  90. Bukkit.getServer().getPluginManager().registerEvents(new MoveEvent(), this);
  91. Bukkit.getServer().getPluginManager().registerEvents(new ChatListener(), this);
  92. Bukkit.getServer().getPluginManager().registerEvents(new BuildEvent(), this);
  93. Bukkit.getServer().getPluginManager().registerEvents(new PlayerchatEvent(), this);
  94.  
  95.  
  96. }
  97. }
  98.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement