Hey thanks recursive worked and I'm all good now!
Is there another method to deleting a folder?
Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(this, new Runnable() { public void run() { for(Player...
public static ItemStack getCommonItem() { Random random = new Random(); int itemChance = random.nextInt(300) + 1;...
e.getWhoClicked().sendMessage(Main.getPrefix() + " Works"); I added this line directly at the top of the event to see if the event is even...
@EventHandler public void onScrollUse(InventoryClickEvent e) { if(e.getCursor() == null) { return; } if(e.getCurrentItem() ==...
@mcdorli public static int getSuccessRate(ItemStack i) { if(i != null && i.hasItemMeta() && i.getItemMeta().hasLore()) {...
After getting the string how do I remove Success Rate and %?
[IMG] I have been trying to get the int for both "Success Rate" and "Destroy Rate" I will give the example of what I have so far it it is...
@SuppressWarnings("deprecation") public void addRecipe1() { ItemStack bwheat = new ItemStack(Material.WHEAT, 1);...
public String getPlayerJob(Player p) { String s = loadPlayerJob(p); if(s == null) { return "nJob"; }...
@EventHandler public void PlayerUse(PlayerInteractEvent e){ Player p = e.getPlayer(); Sign s = (Sign)...
@EventHandler public boolean PlayerUse(PlayerInteractEvent e){ Player p = e.getPlayer(); Sign s = (Sign)...
I have checked for sender before casting, and I do not have the config.yml in my plugin folder, I have it in my eclipse project but it won't load...
This is the stacktrace I got: [13:16:00 INFO]: MrBurnham issued server command: /claimthrone [13:16:00 ERROR]: null...
Separate names with a comma.