Introducing Slash Commands and Other New Features
Published (Updated )

The most common type of Sentinel script is a chat script, and almost all of those are slash commands. A slash command is a chat message that starts with a "/".

This is great, except it's also not. Every chat message must be translated and scored before a script can fire, and every chat script for a server will fire for each message. For servers with lots of slash commands, this is a huge waste.

Introducing Official Slash Commands

So, let's do something about that! A new script context called "Slash Command" is now available and allows you to specify exactly which command Sentinel's chat processing should look for. If there's a match, the message won't be sent for processing or forwarded to other chat destinations, such as cluster servers and Discord channels. This means commands execute faster for players, and other servers receive less noise.

Even better, Sentinel supports parameters in your slash commands. For example, if you wanted to create a command that allows players to rename themselves, you can do so quickly. Sentinel will parse the command correctly, even with quotation marks and apostrophes. Creating a script to handle /rename "Ian Malcolm" requires only a few clicks and doesn't require any knowledge of JavaScript; it can be done entirely from Sentinel's Actions language.

Converting Your Chat Scripts

If your chat scripts already handle slash commands, you can now change their context! The Context field is locked by default, but you can click the "Edit Context" button and read the warning, and then choose a new context. Make sure you understand the warning.

Anonymous Players

CurseForge is now requiring mods that collect player data to offer an opt out feature. The updated policy can be found on their website. Players will be able to opt out by typing the phrase "sentinel opt out" into chat.

This has serious implications on your ability to moderate your servers, so take a look at this help article to understand exactly what this means and your options as a server admin.

Offline Players

As of today's mod update, features that target specific survivors now work on offline players. So, you can now locate offline players, teleport them, give them items and creatures, and kill them.

Kill Survivor Function

Scripts now have access to a "kill survivor" function. While you could previously use an admin command, now you have a dedicated function for the task.

    No Results

    Message

    Explanation