Heres your problem. if(team1.contains(online1.getName()) && (team2.contains(online1.getName()))){ I'm assuming a player can't be in team1 and...
Do some checks first. See if the two if structures are returning true in the onThrow method. Make sure those are working correctly first. This way...
Make a String outside of your for each loop. Just make it empty, then add the names to it individually then send the message to the player. So...
Samthelord1, I prefer doing plugins on my own. (I HATE using Github and all that) Thank you for the offer though :) TheShadbusher, That would be...
You need to make it. getServer().getPluginManager().registerEvents(new LauncherEventHandler(this), this); because your listener needs to be...
TheShadbusher, I've gotten a good start on it so hopefully they'll get to play it soon!
Someone can correct me if I'm wrong but I believe making it final Player player = (Player) sender; will work. If I'm correct you can do this...
I actually really like this idea. I'll send you a pm.
That's similar to what I did. I saved the paths to folders in my config and it loops through the paths, then the folders in the paths, so on so...
Hello! So for the plugin I'm working on, I need to load .yml files. This is simple enough to do, however, I have allowed players to create...
riking, What if you just add lore to every item and make the lore an empty String. That might work, would it not?
What i recommend you do is debug. Put println's after each if and see how many it prints out, then you can get a more specific as to where the...
else { if(e.getClickedBlock().getType() == Material.material) { // Your code } }
xTrollxDudex, Haha, I think something went a little wrong in the code there :p Nonetheless, I got all the code out, it works. Thanks!
Hello! So for the plugin I'm working on, I am trying to make a LivingEntity walk to a location. So I looked at some code and found this....
iAdidasPower, Here is a good tutorial on scoreboards. http://forums.bukkit.org/threads/tutorial-scoreboards-teams-with-the-bukkit-api.139655/...
twa16, I'll be glad to help. However, I looked into the scoreboards. They are only able to display integer values, not Strings. So if you have a...
getConfig().addDefault("PickPocket.Player." + playerName, targetPlayer.getName()); Try this. Idk if it will work 100% but it might.
Is that player in the config file? Do a null check to see if that player is in the file first
Do a null check when the player clicks and inventory slot. If the slot is not null put your code, else its an error.
Separate names with a comma.