From 1e8495af2f27c5f022935a0ccf432545e33f241f Mon Sep 17 00:00:00 2001 From: rimuy <46044567+rimuy@users.noreply.github.com> Date: Tue, 2 Jul 2024 22:49:17 -0300 Subject: [PATCH] Update global-handlers.md (#6) --- docs/additional-modules/networking/global-handlers.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/additional-modules/networking/global-handlers.md b/docs/additional-modules/networking/global-handlers.md index 725d2da..3b39ea8 100644 --- a/docs/additional-modules/networking/global-handlers.md +++ b/docs/additional-modules/networking/global-handlers.md @@ -12,7 +12,7 @@ export const GlobalFunctions = Networking.createFunction(); GlobalEvents.registerHandler("onBadRequest", (player) => print(player, "sent a bad request!")); -GlobalEvents.registerHandler("onBadResponse", (player) => print(player, "returned a bad response!")); +GlobalFunctions.registerHandler("onBadResponse", (player) => print(player, "returned a bad response!")); ```