Edit: I have no clue what I'm talking about.
Ability ability = AbilityType.valueOf(AbilityType.BLOCK_BREAKER.toString()).getAbility(); if(player.getAbilities().containsValue(ability)) {...
[IMG] I understand that, but why? edit, accidently posted
[IMG] Done, not triggering.
Ability is an abstract class. Any ability class extends said class. Similarly as to how bukkit class Entity is used. Nope, pretty sure .name and...
After looking at this for a while, and trying different methods, I'm not sure why this isn't working. Here's the code; Ability ability =...
Checking if a mountain is in the way, I'm not too sure. That sounds very complicated. But in terms of the direction of the sun, you know that it...
I'm not going to code it for you... but here's a rough start: public HashMap<Snowball, Integer> snowballs = new HashMap<Snowball, Integer>();...
Make sure you're registering your listeners in the onEnable() method.
Save the Projectile in a HashMap with an int value as the damage. When the snowball hits an entity, get the int value from the HashMap by using...
If it's an admin command, check if the player has the required permission using player.hasPermission("perm") Or, alternatively you can check if...
You need to save the location of the sign. Then, use PlayerDeathEvent and get the killers name using event.getKiller().getName(); With that...
PreparedStatement statement = connection.prepareStatement("UPDATE razedhub.tokens SET balance = ? WHERE tokens.uuid = ?;"); statement.setInt(1,...
[20:59:39 WARN]: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'c0748ae5-8a18-4f1a-b017-bf65c4fdd847' in 'where...
My bad, I should have specified player. Glad you got it working though!
You can save the System.currentTimeMillis() when the player first joins the server, then from then on check when they join the server if the...
Instead of adding all of the items individually, you could use a for loop to make it more dynamic. for(int i = 0; i <= 8; i ++)...
Registering events in onEnable?
Save the blocks in a hashmap with an integer key as the health. If the obsidian is already in the hashmap when damage is done, take away 1 from...
I'm using Spigot as an import and not Bukkit. The version is 1.7.10 that's probably why it didn't work.
Separate names with a comma.