Is it possible to create NPCs or "fake players" that send and receive packets and put as much stress on the server as a real player? I'm asking...
@MrGriefer_ @thechrisanator Now how would I get their pex group's prefix?
@Jumb_1907 I just want to change the name above your head.
I know that it has to do with packets, but how do you change the name above a player.
@Aarivex Are you trying to give the mod/admin the information of the report? If so try: for(String reports :...
Instead of the PlayerMoveEvent (which can be called many many times in a second) use a BukkitRunnable and for(Player p :...
@Caderape2 @MCMastery @timtower @Zombie_Striker To get the locations from the config would I do this?...
@MCMastery I will change the coordinates after those coordinates work. At the moment, to test I just run around in that 10x10x10 area to see if...
@Caderape2 I'm using a scheduler: //Main Class BukkitTask Snowball = new BomberEvents(null).runTaskTimer(this, 20, 20); //extends...
@jobisingh As far as I know, it's not giving me snowballs. I'll do some debugging right now.
I'm trying to give a player a snowball every second if he is in a certain area. I have other events running just fine in the same class, so that's...
I know it's not what you want, but you should use InventoryOpenEvent and InventoryCloseEvent and store it in a hashmap <UUID, Boolean>.
@thechrisanator If you no longer have a problem, please mark the thread as solved.
Bukkit.getScheduler().ScheduleSyncDelayedTask(PLUGIN/*your plugin here*/, new Runnable(){ public void run(){ //delayed code } }, 20) //20 ticks =...
You could do: //Use InventoryClickEvent and check if the item is going into the armor slots //to check exp if(PLAYER#getExpToLevel() < 5){...
@Goksi 1. That is pretty much how banning works and is what you should use. 2. That method is already very simple.
@digitox You would need to do something along the lines of: Bukkit.getScheduler().scheduleSyncDelayedTask(main /*your plugin*/, new...
@Zombie_Striker @Whoneedspacee I have the damage being stored in the EntityDamageByEntityEvent with the hashmap <UUID, Double> and it works just...
@Zombie_Striker Is there any other way to do it?
@Zombie_Striker I changed the fuse time from 0 to 5 or 10, and that seemed to fix that problem. It still isn't working, I debugged it and found...
Separate names with a comma.