Advertisement
EthanGarey

Untitled

Aug 29th, 2022
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. package BetterCommands;
  2.  
  3. import BetterCommands.Commands.Fly;
  4. import BetterCommands.Commands.Teleport;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. import java.util.Objects;
  8.  
  9. public final class Main extends JavaPlugin {
  10.  
  11. @Override
  12. public void onEnable() {
  13. // Plugin startup logic
  14.  
  15. Objects.requireNonNull(getCommand("teleport")).setExecutor(new Teleport());
  16. Objects.requireNonNull(getCommand("fly")).setExecutor(new Fly());
  17. }
  18.  
  19. @Override
  20. public void onDisable() {
  21. // Plugin shutdown logic
  22.  
  23. }
  24. }
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement