Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.Rycoh.com.tutoriol;
- import org.bukkit.Bukkit;
- import org.bukkit.plugin.java.JavaPlugin;
- import me.Rycoh.com.tutoriol.Events.PlayerJoin;
- public class Main extends JavaPlugin {
- private static Main instance;
- public void onEnable() {
- instance = this;
- //Chat messages\\
- Bukkit.getConsoleSender().sendMessage("Il plugin è stato attivato");
- Bukkit.getConsoleSender().sendMessage("author: rycoh");
- Bukkit.getConsoleSender().sendMessage("version: 0.0.1");
- /////ABILITAZIONE EVENTI\\\\\
- Bukkit.getServer().getPluginManager().registerEvents(new PlayerJoin(), this);
- }
- public void onDisable() {
- instance = null;
- Bukkit.getConsoleSender().sendMessage("Il plugin è stato disattivato");
- }
- public static Main getInstance() {
- return instance;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement