Someone please help! People need an update for this and because of this problem I can't update my plugin.
The path is defined when it gets the Strings.
Bump!
Pattern.quote(spamletterword) + ",}\\s){" + Pattern.quote(spamnumberword) + ",})");[/CODE] I need to make a spam detection regex which can be changed...
It would throw errors if you didn't check it was a player before casting.
Rather than closing the thread just put solved at the top and if anyone else comes across the same problem they can find a solution.
Here: public class PearlManListener implements listener { @EventHandler public void onPearlThrow(PlayerInteractEvent event){ //do stuff } }
Try using player names and comparing strings instead.
Shouldn't this be in plugin requests? If so, don't put pm me for details since it specifically says not to.
Yep update to java 7 and java jdk 1.7
what about: for(Player player : Bukkit.getServer().getOnlinePlayers{ //give items to players in here eg: player.getInventory().addItem(new...
I believe this could be done with a for statement: public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){...
If i do that the items will have identical data and therefor if the axe is used the axe in the chest will have the same durability
Which line is 123?
You see the thing is this is the way I want to do it, for a reason i have tried to get across, but people have not been listening. I want it to check...
To check for null, because if you don't you get a NPE when an item has a gap between the previous item, like a space between two letters.
Adding the items is not a problem
All i need it to do is to clone the items in the chest and then add them to the inventory of the player
Sure thing: package me.jne.AngelStarterChest; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException;...
That's exactly it but it is filling the player's inventory when they should only get 4 tools
Separate names with a comma.