From fdfc5a84118dabfef1e551551dbeadeeae388c34 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 7 Jun 2024 22:08:38 +0000 Subject: docs(readme): add proper example --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index adb6236..2e172e9 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ to run in the WorldsPlayer client. WORLDSPLAYER_JAR=/path/to/worlds.jar bin/decompile # Edit the source files in the source directory -vi source/... +find source -type f -name "*.java" -exec sed -i.bak 's/this\.setName(longID);/this.setName(longID + " (" + longID + ")");/' {} \; # Recompile WorldsPlayer JAVAC=/path/to/javac bin/recompile @@ -65,6 +65,10 @@ JAVAC=/path/to/javac bin/recompile cp out/worlds.jar /path/to/worlds.jar ``` +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. + +![](./assets/step_by_step.png) + # Licence This project is licensed with the [GNU General Public License v3.0](./LICENSE). \ No newline at end of file -- cgit v1.2.3