Remove collection of player locale (#508)

This commit is contained in:
Cooldude2606 authored and GitHub committed 2026-10-16 13:55:06 +01:00
1 parent 8d7d5ff10f
commit a7e66ccdd4
17 files changed
+7 -163

No files matched your search

-6
View File
@@ -7,8 +7,6 @@ import { features, FeatureValue } from "./features.js";
export type IpcJoinMessageSet = { player_name: string, message?: string };
/** Sent by the lua side when a player asks for their join message */
export type IpcJoinMessageGet = { player_name: string };
/** Sent by the lua side when a player joins or changes language, see module/control/player_settings.lua */
export type IpcLocale = { player_name: string, locale: string };
/** Sent by the lua side when a player leaves */
export type IpcToolbar = { player_name: string, toolbar: string };
@@ -98,10 +96,6 @@ export default async function (context: InstancePluginContext) {
);
});
instance.server.handle("exp_scenario:locale", async (event: IpcLocale) => {
instance.sendTo("controller", new messages.PlayerLocaleEvent(event.player_name, event.locale));
});
instance.server.handle("exp_scenario:toolbar", async (event: IpcToolbar) => {
instance.sendTo("controller", new messages.PlayerToolbarEvent(event.player_name, event.toolbar));
});