Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Plugin.java
- public class Plugin extends JavaPlugin {
- public static JavaPlugin plugin;
- private static Plugin instance;
- public static HashMap<String, Long> players = new HashMap<>();
- @Override
- public void onEnable() {
- Plugin.plugin = this;
- instance = this;
- getLogger().info("Плагин запускается!");
- getLogger().info("Подгрузка конфига!");
- this.saveDefaultConfig();
- CommandInit.init();
- EventInit.init();
- getLogger().info("Плагин запущен!");
- }
- }
- // PlayerMoveEvent.java
- import com.neynq.plugname.Plugin;
- public class playerMoveEvent implements Listener {
- @EventHandler
- public void readNote(PlayerMoveEvent event) {
- HashMap plrs = Plugin.players
- // some code
Advertisement
Add Comment
Please, Sign In to add comment