*Added EntityListener constructor

*Updated plugin.yml version number from 1.2.1 to 1.2.2
This commit is contained in:
David Berdik 2015-10-13 22:01:25 -04:00
parent 197d6babb9
commit c27fcaa24f
2 changed files with 13 additions and 6 deletions

View File

@ -32,11 +32,18 @@ import org.bukkit.inventory.ItemStack;
public class EntityListener implements Listener {
private ItemStack itemInHand;
private ArrayList<String> equalsLore;
private ArrayList<String> equalsLoreS;
private ArrayList<String> getLore;
private ItemStack itemInHand;
private ArrayList<String> equalsLore;
private ArrayList<String> equalsLoreS;
private ArrayList<String> getLore;
public EntityListener(){
equalsLore.add("Herobrine´s artifact");
equalsLore.add("Bow of Teleporting");
equalsLoreS.add("Herobrine´s artifact");
equalsLoreS.add("Sword of Lighting");
}
@EventHandler
public void onCreatureSpawn(final CreatureSpawnEvent event) {
if (!HerobrineAI.isNPCDisabled && HerobrineAI.getPluginCore().getConfigDB().useWorlds.contains(event.getEntity().getLocation().getWorld().getName())) {

View File

@ -1,6 +1,6 @@
name: Herobrine
main: net.theprogrammersworld.herobrine.HerobrineAI
version: 1.2.1
version: 1.2.2
commands:
herobrine:
description: Main command.