DamageTilt icon indicating copy to clipboard operation
DamageTilt copied to clipboard

Is there anyway to use this on multiplayer servers?

Open TAKfsg opened this issue 4 years ago • 6 comments

When I go to my private server, it says its not compatible. And when I playing on it, the mod doesn't work. It only happens with this mod.

TAKfsg avatar Oct 31 '20 03:10 TAKfsg

The mod unfortunately isn't client only, it has to be on the server as well. If you put it on the server, the clients will need the mod too.

Charles445 avatar Oct 31 '20 07:10 Charles445

I was trying to do that, unfortunately they dont have this mod on the list mods for the server.

TAKfsg avatar Oct 31 '20 16:10 TAKfsg

Sorry to bring the old issue up, but would it be possible to write Bukkit plugin that would calculate and send attackedAtYaw via messaging channel?

brawaru avatar Dec 02 '20 12:12 brawaru

In the Spigot mappings this value is already calculated and has the name ap (A public field of the EntityLiving class, at least in v1_16_R2, this name is probably unstable). It can be sent to the player every PlayerVelocityEvent via the messaging channel, but I suspect issues similar to #5 will happen, so this needs some testing. (e.g. defer the damage Event beforehand)

Edit: yep, you can get the EntityLiving of a player with

Player player = event.getPlayer();
EntityLiving player_entity = ((CraftPlayer) player).getHandle();

jakovsch avatar Dec 08 '20 12:12 jakovsch

I would really like to see a server-side only version of this for Bukkit/Spigot! Also, is there some sort of history thing for Forge methods? I'm on 1.6.4 and I'd like to know if this could work.

toydotgame avatar Dec 22 '20 12:12 toydotgame

Hello! I have made a plugin for Paper 1.16.5+ out of experiment. You're welcome to test if it works.

https://github.com/Brawaru/DamageTiltHelper

brawaru avatar Jul 08 '22 03:07 brawaru