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!")); ```