<3
Alright, time to use nms code in my own projects… thanks vubui
valon750 I have a few ideas… but how are you registering your mob with the minecraft server? (Through EntityTypes?)
you would need to create a custom inventory, and add items to it. You would need an InventoryClickEvent to see what they clicked on, and a...
Why can't you just store the players? (it's more accessible + you don't have to take up the time to do a username lookup (or UUID lookup (is that...
What if the player doesn't have those potion effects or items?
Alright, so I've got some code: @EventHandler public void onInteract(PlayerInteractEvent e) { Player p = e.getPlayer(); Vector vec =...
Well, I don't know of any way to do this normally.. You could override the normal "zombie" class (EntityZombie) with your custom class, say...
Musician101 oh yeah, sorry didn't see that DotDash you should use player.getUniqueId() like he said instead of player.getName() like I did
RawCode care to explain? Pretty sure it's because it's an instance variable, and the other variables would be initialized using the variable from...
use the BanList and BanEntry classes
The problem is that you're calling it as a static method before you've created any objects to fill the field
ShopListener.shop is null.. you probably didn't create the inventory.. I would create a method to return the custom inventory to open, and have...
I would actually do UUID(Name).yml for the config files just to make it more of a readable option (player.getUniqueId().toString() + '(' +...
Having a null check won't do anything bad :P Documentation of the method says: "Returns all ItemStacks from the inventory." so I'm assuming it...
Are you sure you have the permission? :P
Well first of all, the inventory space itself can be null. If that is true, the meta will also be null. You should check if the item is null in...
you have to put the main class into the package me.Anthony.Test12 so just put "package me.Anthony.Test12" at the top of the main :P (and put it...
DotDash oh sorry, I was thinking about array list :P fixed in the post above
The item may not have meta.. check if it's null, and if it is then just create a new ItemMeta()
Separate names with a comma.