Question movement attribute permanently changed for player?

ormesome

New member
Apr 28, 2024
2
1
3
While testing some new plugins (specifically the Spirits side plugin for ProjectKorra), one player used an ability on another which set the targets movement speed to 0. The plugin crashed, and the code to restore the movement speed was not run. This attribute change appears to be permanent, and it only affects the player in this server.

We can "fix" the problem by running
attribute SufferingPlayer minecraft:generic.movement_speed base set 0.1
at the console, however the attribute is reset to 0 when the player dies or reconnects.

To be clear, I have removed all plugins and datapacks from the server but the attribute is still set to 0 upon connection.

How do I restore the players base movement speed?
 

electronicboy

Administrator
Staff member
Dec 11, 2021
240
13
42
28
attributes are persistent, if the player dying or reconnecting sets it back to 0, you have something doing that somewhere (command blocks?)
 

ormesome

New member
Apr 28, 2024
2
1
3
I want to reply and close this. Thank you for your patience.

Attributes settings are not persistent, but there is a file located in
world\playerdata\<uuid>.dat
for each player that persists data. Just find their UUID when they next connect.

The dat files are in a binary format called NBT (https://minecraft.fandom.com/wiki/Player.dat_format) and I used a web based editor (https://irath96.github.io/webNBT/) to reset the players base movement speed.

I have learned another niche piece of information today.
 
  • Love
Reactions: mbaxter