-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add display to chat, plus example mod
- Loading branch information
1 parent
db6e60a
commit fa9f50c
Showing
4 changed files
with
204 additions
and
128 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//Very much WIP, still firguring out how to poke the dedicated server. | ||
(()=>{ | ||
PluginAPI.javaClient.$timer.$timerSpeed = 3; | ||
ModAPI.dedicatedServer.appendCode(` | ||
const original_getCurrentTime = ModAPI.hooks.methods.nms_MinecraftServer_getCurrentTimeMillis; | ||
ModAPI.hooks.methods.nms_MinecraftServer_getCurrentTimeMillis = function () { | ||
return original_getCurrentTime() * 3n; | ||
};`); | ||
})(); |
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
Oops, something went wrong.