mirror of
https://github.com/darksaid98/EntityBingo.git
synced 2026-12-01 15:58:46 +00:00
pass 1
This commit is contained in:
1 parent
c54512bfb6
commit
6a17bbaa8d
6 files changed
+137
-6
No files matched your search
@@ -1,21 +1,32 @@
|
||||
package org.aubrithehuman.entitybingo;
|
||||
|
||||
import org.aubrithehuman.entitybingo.command.EntityBingoCommand;
|
||||
import org.aubrithehuman.entitybingo.listeners.ChatListener;
|
||||
import org.aubrithehuman.entitybingo.listeners.EntityClearEventListener;
|
||||
import org.bukkit.event.Listener;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import javax.swing.text.html.parser.Entity;
|
||||
|
||||
public final class EntityBingo extends JavaPlugin implements Listener {
|
||||
public final class EntityBingo extends JavaPlugin {
|
||||
|
||||
static EntityBingo instance;
|
||||
|
||||
static BingoEvent currrentEvent;
|
||||
|
||||
@Override
|
||||
public void onEnable() {
|
||||
instance = this;
|
||||
|
||||
|
||||
EntityBingoCommand c = new EntityBingoCommand(this);
|
||||
getCommand("eb").setTabCompleter(c);
|
||||
getCommand("entb").setTabCompleter(c);
|
||||
getCommand("entitybingo").setTabCompleter(c);
|
||||
|
||||
this.saveDefaultConfig();
|
||||
this.getServer().getPluginManager().registerEvents(this, this);
|
||||
this.getServer().getPluginManager().registerEvents(new ChatListener(), this);
|
||||
this.getServer().getPluginManager().registerEvents(new EntityClearEventListener(), this);
|
||||
|
||||
DataManager.init();
|
||||
|
||||
@@ -30,4 +41,12 @@ public final class EntityBingo extends JavaPlugin implements Listener {
|
||||
public static EntityBingo getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static BingoEvent getCurrrentEvent() {
|
||||
return currrentEvent;
|
||||
}
|
||||
|
||||
public static void setCurrrentEvent(BingoEvent currrentEvent) {
|
||||
EntityBingo.currrentEvent = currrentEvent;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user