Guest User

Untitled

a guest
Oct 5th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. package impostor.among.us;
  2.  
  3. import java.util.logging.Logger;
  4.  
  5. import org.bukkit.Bukkit;
  6. import org.bukkit.configuration.file.FileConfiguration;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class MainClass extends JavaPlugin {
  10.  
  11. private Logger log;
  12. private FileConfiguration cfg;
  13.  
  14. public void onEnable() {
  15. log = (Logger) getLogger();
  16. cfg = getConfig();
  17. Bukkit.getPluginManager().registerEvents(new Listener(this), this);
  18. }
  19.  
  20. public void onDisable() {
  21. }
  22.  
  23. public FileConfiguration getCfg() {
  24. return cfg;
  25. }
  26.  
  27. public Logger getLog() {
  28. return log;
  29. }
  30. }
Add Comment
Please, Sign In to add comment