The color of the player to appear as.
ev.room.sendChat("i am the impostor", {
name: "<color=red>The Impostor</color>",
color: Color.Red
});
The hat that the player should be wearing in the chat message.
ev.room.sendChat("I'm a cowboy baby", {
name: "Cowboy",
hatId: Hat.TenGallonHat
})
The name of the player to appear as.
ev.room.sendChat("i am the impostor", {
name: "<color=red>The Impostor</color>",
color: Color.Red
});
The side of the chat box for the message to appear on for each player. Can only send on the left side if there are at least 2 players in the room.
room.sendChat("Slide to the left", {
side: MessageSide.Left
});
room.sendChat("Slide to the right", {
side: MessageSide.Right
});
The skin that the player should be wearing in the chat message.
ev.room.sendChat("looking for salvation in a secular age", {
name: "the 1975",
skinId: Skin.Prisoner
})
The player to send the message to, if omitted, sends to all players.
// Alert the host of a hacker
.@EventListener("anticheat.potential")
onPotentialCheater(ev: AnticheatPotentialEvent) {
if (!ev.player.info)
return;
ev.room.sendChat("<color=red>Potential cheater detected: " + ev.player.info.name + "</color>", {
targets: [ ev.room.host ]
});
}
The visor that the player should be wearing in the chat message.
ev.room.sendChat("wondering how I got this far", {
name: "scruffpuppie",
visorId: Hat.PolusIce
})
Generated using TypeDoc
Options regarding sending a chat message into the room as the server, see sendChat