Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there anyway to use this on multiplayer servers? #3

Open
TAKfsg opened this issue Oct 31, 2020 · 6 comments
Open

Is there anyway to use this on multiplayer servers? #3

TAKfsg opened this issue Oct 31, 2020 · 6 comments

Comments

@TAKfsg
Copy link

TAKfsg commented Oct 31, 2020

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.

@Charles445
Copy link
Owner

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.

@TAKfsg
Copy link
Author

TAKfsg commented Oct 31, 2020

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

@brawaru
Copy link

brawaru commented Dec 2, 2020

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?

@jakovsch
Copy link

jakovsch commented Dec 8, 2020

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();

@toydotgame
Copy link

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.

@brawaru
Copy link

brawaru commented Jul 8, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants