Dragonphase Thank you! :) Apparently I need to learn how to read the console error. Line 69 was: Location loc =...
I'm working on a plugin that will allow players to claim rewards from event chests, but I came upon an issue with my PlayerInteractEvent. Here is...
Bump.
I'm using (@KingFaris11)'s method of saving and getting inventories with files. Here is a link to the page:...
Watto I didn't even think of that... I was trying to get the inventory directly from the file which wouldn't work because .addItem and...
Shmobi I'll use that then. AdamQpzm Alright thanks!
EvilWitchdoctor I'll try that. Thanks!:D Shmobi I want to figure out if the sound is playing and if it is, cancel it if they play another one....
I'm using this code to play the sound from music discs. player.playEffect(player.getLocation(), Effect.RECORD_PLAY, Material.GREEN_RECORD); I...
fireblast709 Thank you. Thank you! That did the trick and thanks for the tip to save some space. :D
@fireblast709 At least I thought it was fixed... Recently, I figured out that any item that was interacted with (whether left or right click)...
fireblast709 Alright, thanks! For anyone else who has this problem, here is the link to Bukkit wiki plugin tutorial page:...
I'm was messing around with some custom projectiles and came across an issue. What I want to do is throw a snowball, and have it run an event so,...
TheCwispyOne _Filip fireblast709 Alright, got it to work. :) Thanks guys.
I'm having an issue with collisions, such as LEFT_CLICK_BLOCK, involving a custom item. Here is the code: @EventHandler public void...
I am working with custom inventories, and trying to figure out how to check if player closes a custom inventory. player.closeInventory(); I know...
SourceForums I needed to add () after getItemMeta and getDisplayName. Also I had to add the chat color to where it equals. Here is the final code...
SourceForums When I use this, I get an error saying getName cannot be resolved or is not a field....
I am having an issue with this code. When I hit a player, it is supposed to give them a potion effect which it does, but only with the first hit....
Yep, that did the trick. Thanks for all the help. I'll let you know if I have any future questions.
Separate names with a comma.