Well, yes you could do that. But say if you wanted to make it so the "actual" command (not alias) name was specified via user configuration, you...
The only way (that I know of) you can give commands custom names by user configuration is by adding the commands manually via a CommandMap. P.S....
Compare Cmd.getName() to the String in your config. [EDIT]: - Don't assume your sender is a Player (could be console). - Don't use repetitive...
Stupid me again, should be checking whether xx or zz (either of them) are not equal to the players block. Sorry about the mistake, hopefully...
Just saw a bit of a problem in my code.... Rushed it a bit and didn't realise I was checking if the Y was the same. Instead, should have been...
As in like that: commands: partyhat: description: usage: permission:
Well I cleaned your code up, so we can actually read it: package me.kreashenz.partyhat; import org.bukkit.ChatColor; import...
What exactly is the problem?
So we can store the location of the sign for your gamemode?
No problems.
In case you need further guidance, I suggest you use the PlayerToggleSneakEvent to begin the sneak checking every second or so in the...
Can you just check that the variable "economy" isnt equal to null and "economy.has(p.getName(), 2500)" isn't returning null.?
How about you add a variable into your plugin: public Block gameSign = null; Make sure you set the gameSign, when your plugin loads and we can...
Just typed this up in the note window. Don't know if it will work. But I think it should. Player p = event.getPlayer(); Block b =...
Boolean and null can be compared though?
So your sign simply says how many players you have online?
You probably just don't have the org.bukkit.Bukkit or java.util.logging imports.
Another NullPointerException?
Do you need to update the signs placed by specifically a player, or what? Please explain.
Add this code and test: if (economy.has(p.getName(), 2500) == null) { Bukkit.getLogger(Level.SEVERE, "RETURNING NULL") //Or whatever your...
Separate names with a comma.