From 3a7dfa0818abefabb9a97e98351d94128e16e5e6 Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Tue, 10 Dec 2024 20:21:04 +0800 Subject: [PATCH] fix bug in timescale.js --- examplemods/timescale_command.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examplemods/timescale_command.js b/examplemods/timescale_command.js index 5f90184..29630bf 100644 --- a/examplemods/timescale_command.js +++ b/examplemods/timescale_command.js @@ -1,7 +1,7 @@ (() => { - ModAPI.title("Timescale Command"); - ModAPI.description("/timescale 0.5 to halve the speed of time"); - ModAPI.credits("By ZXMushroom63"); + ModAPI.meta.title("Timescale Command"); + ModAPI.meta.description("/timescale 0.5 to halve the speed of time"); + ModAPI.meta.credits("By ZXMushroom63"); PluginAPI.addEventListener("sendchatmessage", (event) => { if (event.message.toLowerCase().startsWith("/timescale")) { var speed = parseFloat(event.message.split(" ")[1]);