Thank you! I'll mark as solved if this works! :) Edit: Here's my code if anyone wants it @EventHandler public void...
Hi guys! i'm making a custom bedwars plugin for me and my friends and i dont want anyone to craft anything or open any other guis. I've searched...
Title says it all, im having trouble using playermoveevent because it detects player rotating too.
oops probably should make a new thread haha
Oh i know how to find velocity, im wondering on how i can get a players position and compare it a few ticks later
Im trying to make it so that when i type /tnt <fuse> <explosion radius> it gives me an item that i can right click that spawns tnt wherever i...
How would one go about doing this?
well, when i tried to use velocity it only fired on the Y axis unless im propelled on the X or Z, it sadly doesnt work when walking
Hmm, maybe in the playermoveevent, put the player who moved in a hashmap as the key, and the value as the server current time in...
After going out to clear my head, (and some family issues) i figured out a way to do it if(sender instanceof Player) { Player p =...
ok so i tried this but no luck if(sender instanceof Player) { Player p = (Player) sender; if(p.isOp() == true) {...
Im making a /wild command in my plugin and this is the code : if(sender instanceof Player) { Player p = (Player) sender;...
if(infectKeep.contains(loc.getBlock().getType())) gets the error Cannot invoke contains(Material) on the array type Material[] (quoting timtower)
hmmm, changing if (loc.getBlock().getType()==infectKeep) { to if (loc.getBlock().getType().equals(infectKeep)) { results in the error...
I have a list of materials with this code: Material[] infectKeep =...
Separate names with a comma.