Do you want the horses to don't get any damage at all on safezones or just from players? Ok well this will prevent any damage to horses while...
just use the command /ncp info (player)
Just made a tool to easiliy convert player names on MySQL tables to UUIDs:...
I made a litte thing to convert all of the player names on my MySQL databases to UUIDs and decided to share it with you guys. This TECHNICALLY is...
That for loop is completely unnecessary just do if(getServer().getOnlinePlayers().length() == (your number){ //do something }
1. You're checking if the item in hand isn't (stone spade, iron, etc) so remove the ! And Wow... You don't need to use a PlayerInteractEvent and...
You can just use if if you only have a condition, switch is normally used when you have a bunch of them
This is called when a vehicle (minecarts too) hit a block, so you only need to check if the vehicle is a boat and then you can cancel the event....
Hm I guess you can make Y one block above: Location loc = p.getLocation(); loc.setY(loc.getY+1); //your code
Dude it's an event, meaning that you make your class implement Listener, you add this to your onenable:...
Change it to Solved please and you're welcome He did cause he was changing the text EDIT by Moderator: merged posts, please use the edit button...
You can use VehicleBlockCollisionEvent I believe
What do you mean? Like what event listener you can use to get a boat when it breaks?
You need to sign.update() only after you're done changing the sign, otherwise it will mess up. Not sure if on purpose, but you are setting line 3...
Can you post your current code?
I don't think there's any event for first join. The thing is that on PlayerLoginEvent the player hasn't actually spawned (I believe).
Lol. You're actually always changing line 3 ;) don't forget sign.update();
Why do you set their health to hm, their health? I'm confused onlines.setHealth(onlines.getHealth()); And you don't need to run the health score...
Actually, I don't really understand :/ so you're saying that if they are in public chat they get messages from the channels?
Ok, so basically you're checking if the player who sent the message is in a channel, but you also need to check if there are players on the server...
Separate names with a comma.