I can do this. I can start today or tomorrow.
solved. this reply helped me the most because I didnt know i could get the shooter of the snowball. thanks!
the problem is, how do i get the shooter if its not in the shooter event? its in the hit event.
the title of this should be "getting playername from different event" lol i made something where a player can shoot a snowball from a stick and if...
Thanks it worked! Haha that was dumb of me...
Neither do I, there is no error in console or anything. How am I supposed to know what is wrong?
Hey im trying to use Citizens API so when a player does /clone, it spawns a clone of the player where they are standing. This is also my first...
Console is telling me that "name cannot be null". I don't know what to change it to since I was following your instructions for this part....
Console just tells me there is an error in line 91 and I don't know why. public class Main extends JavaPlugin implements Listener{...
teleport is undefined for the type String
I think I understood all that. Heres the new piece of code: for(String players : lobby){ if(Bukkit.getPlayer(players) != null){...
I changed it to an arraylist and here is the code: if(args[0].equalsIgnoreCase("join")){ Player player = (Player) sender;...
I used an arraylist first but it wouldnt let me add playernames to it. Can you rxplain how i would do so?
Hey im making a minigame plugin and i'm trying to make it so when people do /dungeon join, they are put into a data.yml (i used data.yml because i...
Hey im trying to make a particle effect play when someone shift right-clicks with something in their hand. Heres my code: @EventHandler public...
There are no errors, just nothing happens when i put sugar into a crafting table.
Why doesn't this work? public ItemStack cocaine(ItemStack material, String name, List<String> lore) { //COCAINE ItemStack cocaine =...
Hey i'm making a drug plugin and when a cop right clicks a player with a stick, that player is teleported to jail. Now what i'm trying to do is,...
Thank you!
spigot-1.10.2-R0.1-SNAPSHOT-latest.jar EDIT: heres the code: @EventHandler public void onCocaineUse(PlayerInteractEvent event) { Player player...
Separate names with a comma.