-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to fix attack damage as well as attack speed
- Loading branch information
Showing
5 changed files
with
106 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
# OCMFixer | ||
Fixes the attack speed of all offline players by reading all playerdata files in a world folder. To know which world to specify, look through all your worlds for one that has a non-empty `playerdata` folder. | ||
Fixes the attack speed of all offline players by reading and modifying all playerdata files in a world folder. | ||
|
||
To then fix the world, just do `/read <world>` from the console or in-game. Usually the world that has the playerdata files is the one specified as the main world in your `server.properties`, so for example for my test server it was `Hub`. To fix it I just did `/read Hub`. It's as easy as that! :grin: | ||
## Installation | ||
You can [download the latest version from the releases page](https://www.github.com/Rayzr522/OCMFixer/releases). | ||
|
||
[Downloads](https://www.github.com/Rayzr522/OCMFixer/releases) | ||
## Usage | ||
_Warning: To apply this to all players, it's suggested to do this while no players are online. The changes made by this plugin will be overwritten for any player that is online while executing the command, meaning it won't work for them. It's probably best to do this immediatly after a restart, or after doing `/kickall`._ | ||
|
||
To know which world to specify, look through all your worlds for one that has a non-empty `playerdata` folder. Then, to fix the world, just do `/read <world>` from the console (_or in-game, but again, it's best not to do this while anyone is online, including yourself_). Usually the world that has the playerdata files is the one specified as the main world in your `server.properties`. As an example, for my test server the main world was `Hub`. To fix it I just did `/read Hub`. It's as easy as that! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8dcd58c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rayzr522 The wiki for default attackDamage attribute seems to be incorrect.
http://minecraft.gamepedia.com/Attribute
Checking the default set in singleplayer minecraft 1.11.2 with an nbt editor, it is set to a base of 1.0 not a base of 2.0.
Edit: I slightly modified the source to check against all attribute defaults. Feel free to add it and/or correct the default damage if you'd like. I would have included flySpeed and walkSpeed as well but since it is categorized in the 'abilities' nbt section, I didn't add it since I didn't want to break something.