Skip to content

Commit aab79db

Browse files
committed
docs(readme): add proper example
1 parent 932e0bb commit aab79db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ to run in the WorldsPlayer client.
5656
WORLDSPLAYER_JAR=/path/to/worlds.jar bin/decompile
5757

5858
# Edit the source files in the source directory
59-
vi source/...
59+
find source -type f -name "*.java" -exec sed -i.bak 's/this\.setName(longID);/this.setName(longID + " (" + longID + ")");/' {} \;
6060

6161
# Recompile WorldsPlayer
6262
JAVAC=/path/to/javac bin/recompile
@@ -65,6 +65,10 @@ JAVAC=/path/to/javac bin/recompile
6565
cp out/worlds.jar /path/to/worlds.jar
6666
```
6767

68+
Now that we've changed the username format from `username` to `username (username)`, we can run WorldsPlayer to verify that the change has been applied.
69+
70+
![](./assets/step_by_step.png)
71+
6872
# Licence
6973

7074
This project is licensed with the [GNU General Public License v3.0](./LICENSE).

assets/step_by_step.png

45.7 KB
Loading

0 commit comments

Comments
 (0)