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

-12
View File
@@ -278,18 +278,6 @@ t.test("player settings", t2 => {
t3.equal(record.joinMessage, "Bye", "kept across restarts");
});
t2.test("PlayerLocaleEvent stores the locale next to the join message", async t3 => {
const { send } = await startPlugin(t3, { withPlugins: false });
await send(new messages.JoinMessageSetRequest("Alice", "Hi"));
await send(new messages.PlayerLocaleEvent("Alice", "pt-BR"));
const record = await send(new messages.PlayerGetRequest("Alice"));
t3.strictSame([record.joinMessage, record.locale], ["Hi", "pt-BR"]);
await send(new messages.JoinMessageSetRequest("Alice", null));
const cleared = await send(new messages.PlayerGetRequest("Alice"));
t3.equal(cleared.locale, "pt-BR", "clearing the message keeps the locale");
});
t2.test("PlayerToolbarEvent stores the toolbar and it is saved", async t3 => {
const databaseDirectory = t3.testdir();
const { send, save } = await startPlugin(t3, { withPlugins: false, databaseDirectory });