Added some messages in the plugin.
This commit is contained in:
parent
732a0dd763
commit
23286d3e3a
|
@ -27,12 +27,21 @@ public class NPCLibPlugin extends JavaPlugin implements Listener {
|
|||
@Override
|
||||
public void onEnable() {
|
||||
this.npcLib = new NPCLib(this);
|
||||
Bukkit.getConsoleSender().sendMessage(ChatColor.GREEN + "NPCLib enabled.");
|
||||
Bukkit.getConsoleSender().sendMessage(ChatColor.BLUE + "[NPCLib] " + ChatColor.WHITE + "plugin enabled.");
|
||||
Bukkit.getConsoleSender().sendMessage(ChatColor.BLUE + "[NPCLib] " +
|
||||
ChatColor.GRAY + "This is a test plugin usually used for development reasons. " +
|
||||
"You can spawn NPCs by pressing [shift] in game.");
|
||||
|
||||
|
||||
getServer().getPluginManager().registerEvents(this, this);
|
||||
getServer().getPluginManager().registerEvents(new NPCListener(), this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable() {
|
||||
Bukkit.getConsoleSender().sendMessage(ChatColor.BLUE + "[NPCLib] " + ChatColor.WHITE + "plugin disabled.");
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onPlayerShift(PlayerToggleSneakEvent event) {
|
||||
if (event.isSneaking()) {
|
||||
|
|
Loading…
Reference in New Issue