Assigning a TextComponent object differently based on try catch

I’m trying to take a String kd and either assign it to a TextComponent object, or if the string can be parsed into a Double value then assign it to a TextComponent using a DecimalFormat object. I …

Spigot API playSound

So I’m trying to create a minecraft plugin using the spigot api and i’m having lots of fun! I’m trying to make a /play command that plays a music disc to the player. I’ve come across a problem with …

Check how many people are within a certain distance from the center

I’m making a Spleef plugin. I need to count the amount of people in a lobby. I thought that I could count how many people are within a certain distance from the center of the lobby. I think that this …