Ofcourse... Think :/ Your code will only run if your helmet is an iron block.
did you try to update inventory? After everything
make sure the getHelmet is not null and check if the helmet type is not air, then check if its iron block
Not trying to flame or anything but....
a cpu from 1984 can run 10million Instructions per second.
iterating through a list of at most 100...
What you justdid there with the Gangs... That's called polymorphism
the blocklist is the map,
Block b : HashMapName.keySet()
and you can find tutorials how to add shiet to chests online :P
run this task every second:
for(Block b: blocklist)
do something productive with b...
if block.getType() == Material.CHEST
it's a chest
Chest c = block.getState();
then do shiet with c :P
Do you know what Debug means?
If the Item has no itemmeta that will return a NPE in the console
Run a task at the onEnable, to repeat itself every second,
and iterate through all the blocks in the map, get their time and check if X Minutes...
Yes. Because thats easier than doing a System.out.println("1"); after each method... Jesus...
What if there's no error?
What if there's just silence?
you do a command but nothing happens?No sound, no msg, nothing...
That's the point of...
Nah it wouldn't.
First you need to get the yaw of attacker and yaw of attackED.
check if their difference is within a value(recommended before)...
You don't get it.
You need to debug each line and check where it fails.
Also, those nested ifs are too restricted. Check them again
PlayerJoin is a bitch, add a 1tick delay before doing anything.
Check if the item is in hand before running it, or learn how to code before hand x.x
You need to check the Yaw, if the Attacker's Yaw is between a certain range(Id recommend -45º and +45º [that gives you a 90º angle]) double the damage
you'd need to store it in a type of custom item
and when loading you...
Separate names with a comma.