mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +09:00
Remove collection of player locale (#508)
This commit is contained in:
1 parent
8d7d5ff10f
commit
a7e66ccdd4
17 files changed
+7
-163
No files matched your search
@@ -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));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user