aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-07 22:08:38 -0700
committerFuwn <[email protected]>2024-06-07 22:08:38 -0700
commitaab79dbd601271d0a3b4b5aefaa1212cb25d9a61 (patch)
tree5910b7162bc44438c82419700612da5905b0925f
parentdocs: add readme (diff)
downloadworldsplayer_source_editor-aab79dbd601271d0a3b4b5aefaa1212cb25d9a61.tar.xz
worldsplayer_source_editor-aab79dbd601271d0a3b4b5aefaa1212cb25d9a61.zip
docs(readme): add proper example
-rw-r--r--README.md6
-rw-r--r--assets/step_by_step.pngbin0 -> 46841 bytes
2 files changed, 5 insertions, 1 deletions
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
diff --git a/assets/step_by_step.png b/assets/step_by_step.png
new file mode 100644
index 0000000..ece8517
--- /dev/null
+++ b/assets/step_by_step.png
Binary files differ