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 =...
Hey, sorry that this isnt too related to this issue, but do you have any java tutorials / courses i could use?
Not to be rude, but i dont really see what this can do, i the hashmap i have the players uuid as the key, and their time left as the value, i dont...
Not really, i'm trying to make it access an arraylist that contains the players UUIDs of everyone who's been /bloodthirsty add <name> 1200 ticks...
okay well, ive gotten a lot further, i have a hashmap with UUIDs and time left in ticks, im trying to make this code run for every player, but im...
I am using a map, thats just what im using to make a variable uuid on the playerjoinevent, it checks if that player has a score on the map, if...
Separate names with a comma.