Don't Starve Together

Don't Starve Together

134 ratings
Moderator Commands [fork]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
38.349 KB
17 Apr, 2016 @ 5:04am
16 Jun, 2016 @ 11:26am
4 Change Notes ( view )

Subscribe to download
Moderator Commands [fork]

Description
A server mod that adds a moderator rank and various commands to Don't Starve Together.
This is a fork of BarnyardOwl's mod, since the mod needed fixes and they didn't seem to be online in a while.

Don't want to give a player admin, but don't want to leave the server open to griefers? Or maybe you just want a couple more commands for admins. Moderator commands will do either.

All names autocomplete and are case-insensitive, so if you need to kick "YoLoplayer6969," then /modkick yolo will work fine.
Additionally, names can be character names (e.g. wickerbottom) which will autocomplete to the nearest person using that character.

All commands are entered into chat/says/whispers and are distinguished from regular chat by starting with a slash ("/").
Pressing the slash key should open the chat and enter the slash as well, so you don't have to press extra Y/U to open the chat.
Command's parameters (if there are any) are separated by exactly one space.


Commands, admin only
/announce <msg> - Announce something at the top of players' screens.
/setrank <rank> <player> - Set the rank of a player. Use rank "user" to strip all permissions, and rank "mod" to set a player to moderator. You can't set admin rank to a player this way.
/freeze <player> (or /f) - Freeze a player and extinguishes around them (if you have extinguish permission). If they leave, their items drop.
/clear <player> - Remove all items from player's inventory (including equipped ones). Irreplaceable items (e.g. chester's eyebone) drop to the ground.
/kill <player> - Kill a player.
/resurrect <player> - Resurrect a player.
/teleporthere <player> (or /tphere, /grab, /pull) - Teleport the player to you.
/extinguish (or /ext) - Extinguish all fires on the screen (except controlled fires in firepits etc.).
/spawn <prefab> [<amount>] - Spawn a specific prefab next to you. Uses prefab code, not prefab name. For a list see e.g. http://dont-starve-game.wikia.com/wiki/Console/Prefab_List. If the amount is not specified it uses 1.
/give <prefab> [<amount>] - Give a specific prefab to your inventory, if possible. Uses prefab code, not prefab name. If the amount is not specified it uses 1.
/setportal - Set the world's portal and spawn (survival/endless only) to your current position.
/speed [<multiplier>] - Apply a speed multiplier to you (on top of others, such as character speed, cane and others); greater than 1 speeds you up, less than 1 slows you down, 1 (or nothing) resets to default.
/godmode - Toggle your invincibility.


Commands, moderator and admin
/drop <player> - Drop all items from the player's inventory to the ground.
/modkick <player> (or mkick) - Drops all of player's items (if you have drop permission as well), then kicks them.
/modban <player> (or mban) - Drops all of player's items (if you have drop permission as well), then bans them.
/unban <player> - Unbans a player banned with the /modban command.
/reset <player> - Drops all of player's items, then puts them on the character selection screen.
/teleport <player> (or /tp) - Teleport to a player.
/portal - Teleport to the portal (if there is one).
/back - Teleport back to where you were (before /portal or /teleport).
/invisible - Toggle your invisibility.
/resetworld - Restarts the world.
/modrollback (or mrollback) - Roll the world back to the most recent save.
/modrollback <number of saves> (or mrollback) - Roll the world back x saves.


Commands, anyone
/rank - Tells you what rank you are.
/listmods - Tells you what mods and/or admins are online.


Additionally, you can modify the ranks directly in Your_DST_Installation/data/ranks.txt.
You can change the permissions & ranks in Your_DST_Installation/data/permissions.txt.
You can find more information on permissions here.

Admins are not added in ranks.txt, they are handled by the game itself by editing adminlist.txt (see your client_log or server_log for location from where it is being tried to load; for hosted worlds without caves under Windows it's usually Documents\Klei\DoNotStarveTogether\client_save\adminlist.txt; you'll have to create it if there isn't one).


Known issues / Notes
I have no plans making an UI for spawning/giving items visually. See Too Many Items mod for that.


To do
Improve logging.
Improve responses to the player.
Internal rework of commands so it's easier to add & execute them.
Allow toggling godmode for other players.
Add /commands command - lists all available commands for you.
Add /giverecipes//creative command.
Add /teleportpaccept and /teleportpdeny - allowing and denying permission based teleporting commands (see below).
Add /teleportp and /teleportphere - teleporting to a player/teleporting a player to you, based on target player's permission, ignoring ranks.
Add /warpset and /warp commands - setting up and teleporting to designated places.
UI for setting & managing ranks.
UI for executing commands.
Make permissions more inter-shard friendly.
Popular Discussions View All (3)
9
8 Oct, 2022 @ 8:47am
Bug reports
Muche
4
12 Sep, 2017 @ 1:08am
Feature requests
Muche
3
5 Oct, 2016 @ 1:06am
Permission system
Muche
128 Comments
Gui 15 Aug, 2022 @ 4:17pm 
This was a really good mod, its a shame noone has continued its development
Eminito Nameless 18 Mar, 2022 @ 5:24pm 
not that it's imposssible. just unlikely.
Eminito Nameless 18 Mar, 2022 @ 5:23pm 
this hasn't got an update in years

(Updated Jun 16, 2016 @ 11:26am)

it probably won't be updated,
Pinkamena11FazPony 22 Oct, 2021 @ 4:58pm 
Please add /max creative Commands is no longer being updated!
наездник клитора 24 Dec, 2019 @ 5:44am 
Hello, I'm speak Russia. Please, listen me.
Можно ли пожалуйста добавить такую команду, как roll? То есть, можно будет написать в чате
/roll100 и будут падать числа от 0 до 100. Такая команда будет полезна в РП серверах, добавьте пожалуйста
glutendog 10 Aug, 2018 @ 1:43pm 
It crashes anytime theres a slash in the sentence
Sharkloaf 14 Jul, 2018 @ 1:31pm 
I would honestly pay someone to fork this tbh
StachePanda 9 Jul, 2018 @ 7:46pm 
pls fix this mod?
Katomou Salad 27 Apr, 2018 @ 4:40pm 
how do you make sombody a admin?
xenocythe 4 Feb, 2018 @ 5:37am 
The mod crashes whenever a command is used. Can someone update/fork this? :dstools: