does anyone know a good and cheap plugin that increases the players hit detection? (compatible with 1.7 please!)
public void onEnable() {
for (Player player : Bukkit.getOnlinePlayers()) {
player.setMaximumNoDamageTicks(19);
}
}
@EventHandler
public void onJoin(PlayerJoinEvent event) {
event.getPlayer().setMaximumNoDamageTicks(19);
}
Good point, does not really stand up but it does workWhy onEnable?
Server is just loading the plugin without any players being online what?
WTF, Why do you ask me if I need anything? I have not asked for anything, look better who needs helpHello, kojoti!
We can do this for you at Relax Designs, join our discord and create a ticket, and we will reply to you asap!
Best regards,
Relax Designs
Discord Link - https://discord.gg/46jST6M
He’s asking how to improve hit detection not hit delayCode:public void onEnable() { for (Player player : Bukkit.getOnlinePlayers()) { player.setMaximumNoDamageTicks(19); } } @EventHandler public void onJoin(PlayerJoinEvent event) { event.getPlayer().setMaximumNoDamageTicks(19); }
I did and it still makes sense? Hit detection is when the server detects a hit which he wants to improve. Hit delay is the delay between hits. What’s so confusioning about itRead what you just said. Slowly.
Wrong, onEnabled can be called at any time the plugin is enabled. PlugMan is a good plugin to demonstrate this, as well as force reloading a plugin (which, needless to say, is bad practice)Why onEnable?
Server is just loading the plugin without any players being online what?
It shouldn't be in there, correct. But onEnable is called per the plugin, not the server.Still useless.
You cannot say it is enabled any time as it is not.
It is called only first time while enabling which could first be called onLoad.
And still that should not be in the onEnable LOL.
If you reload a server with players online it will reset this. And when the plugin relods through the command /reload the server didn’t shut down hence there are players still onlineStill useless.
You cannot say it is enabled any time as it is not.
It is called only first time while enabling which could first be called onLoad.
And still that should not be in the onEnable LOL.
That code would be executed when a Player Joins as well as when the plugin enabled as if the server's reloaded. You might also want to change it to 18.35 - 18.85 if you want the best accuracy.Code:public void onEnable() { for (Player player : Bukkit.getOnlinePlayers()) { player.setMaximumNoDamageTicks(19); } } @EventHandler public void onJoin(PlayerJoinEvent event) { event.getPlayer().setMaximumNoDamageTicks(19); }
What? Unless something new happened I’m pretty sure ticks can’t be a decimalThat code would be executed when a Player Joins as well as when the plugin enabled as if the server's reloaded. You might also want to change it to 18.35 - 18.85 if you want the best accuracy.
Try 18 thenWhat? Unless something new happened I’m pretty sure ticks can’t be a decimal
