mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
fix bug in timescale.js
This commit is contained in:
parent
e866954a27
commit
3a7dfa0818
@ -1,7 +1,7 @@
|
|||||||
(() => {
|
(() => {
|
||||||
ModAPI.title("Timescale Command");
|
ModAPI.meta.title("Timescale Command");
|
||||||
ModAPI.description("/timescale 0.5 to halve the speed of time");
|
ModAPI.meta.description("/timescale 0.5 to halve the speed of time");
|
||||||
ModAPI.credits("By ZXMushroom63");
|
ModAPI.meta.credits("By ZXMushroom63");
|
||||||
PluginAPI.addEventListener("sendchatmessage", (event) => {
|
PluginAPI.addEventListener("sendchatmessage", (event) => {
|
||||||
if (event.message.toLowerCase().startsWith("/timescale")) {
|
if (event.message.toLowerCase().startsWith("/timescale")) {
|
||||||
var speed = parseFloat(event.message.split(" ")[1]);
|
var speed = parseFloat(event.message.split(" ")[1]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user