mirror of
https://github.com/Ne0nx3r0/BetterAlias.git
synced 2024-09-30 04:37:32 +02:00
28 lines
991 B
Java
28 lines
991 B
Java
|
package com.ne0nx3r0.betteralias;
|
||
|
|
||
|
import com.ne0nx3r0.betteralias.alias.AliasManager;
|
||
|
import com.ne0nx3r0.betteralias.listener.BetterAliasPlayerListener;
|
||
|
import com.ne0nx3r0.betteralias.listener.command.BetterAliasCommandExecutor;
|
||
|
import org.bukkit.plugin.java.JavaPlugin;
|
||
|
|
||
|
public class BetterAlias extends JavaPlugin
|
||
|
{
|
||
|
public AliasManager aliasManager;
|
||
|
|
||
|
@Override
|
||
|
public void onEnable()
|
||
|
{
|
||
|
this.aliasManager = new AliasManager(this);
|
||
|
|
||
|
this.getServer().getPluginManager().registerEvents(new BetterAliasPlayerListener(this), this);
|
||
|
|
||
|
|
||
|
BetterAliasCommandExecutor betterAliasCommandExecutor = new BetterAliasCommandExecutor(this);
|
||
|
|
||
|
this.getCommand("bareload").setExecutor(betterAliasCommandExecutor);
|
||
|
|
||
|
//Filler command to null things to since console commands are not cancellable
|
||
|
this.getCommand("badonothing").setExecutor(betterAliasCommandExecutor);
|
||
|
}
|
||
|
}
|