Mods / Pols Server Utilities(Works in Single Player Also)

Category: #Other #Utility
Author: Polraudio
Side: Server
Created: Feb 15th 2021 at 7:38 PM
Last modified: 8 hours ago
Downloads: 1004
Follow Unfollow 8

This mod will add some useful commands for servers such as the ability to set a home and teleport to it, teleport to spawn, warps admins can make that every player can use, a me command to talk in 3rd person and much more.

Note: This mod works for both server and clients. It also works as standalone version on servers so no need for clients to have it.

Everyone Commands:

This will list commands all players can.

/home works by teleporting the player to their current spawn point. This can be set by using a Temporal gear.

/home [name] teleports the player to a home they named.

/sethome [name] will create a players home with that name.

/homelist will display a list of the players homes.

/delhome [name] will delete a player home they named.

/spawn just teleports you to the world spawn location. AKA where you spawn for the first time.

/me [message] will let players talk in the 3rd person.

/uptime shows the servers current uptime since last restart.

/warp [name] will teleport you to a warp an admin has created.

/warplist will show all available warps that are on the server.

/cooldown will show how long you have left to wait to be able to teleport again.

/quit [message] will show everyone a message then will disconnect you from the server. Very useful for rage quitting with a reason :P

/players will show online players as well as a count. I know .online exists but i didn't like how it looked and well... discovered it after I already made it lol.

/rtp will randomly teleport players anywhere on the map at ground level(no more spawning 100+ blocks in the air).

/myinfo will show you your warnings, homes and deaths.

/rtime will show you the real time. Useful for those who play in full screen and want to check the time without doing alt-tab.

/back will bring you back to your last location before you teleported. Yes it works with deaths so you can get back to your body instantly.

Admin Commands/Info:

This will list all commands only admins can use.

/saveconfig will save the config file. Handy to save the config before editing the config file.

/loadconfig will load the config file. Handy if you made changes to the config file when the server is running.

/heal will heal the admin for 100% HP and 50%(for some reason) food.

/setwarp [name] will set a public warp for all players to use.

/delwarp [name] deletes a warp.

/warn, /unwarn lets you add/remove warning points to a players profile.

/pinfo [name] lets you look up info on a player such as warning points

/deop [name] lets you deop yourself or someone else by putting their name. Much quicker than using the vanilla method.

/save will force save the world.

/backup will make a backup.

The config file is saved when the server is shutting down and loaded upon startup.

There is also a server message you can set to broadcast to all players however often you want(in seconds). This can be set in the config file that is generated on first boot since the mod has been added.

Config Location: AppData\Roaming\VintagestoryData\ModConfig\PolsServerUtilities\[WORLD NAME].

Note: Location may vary depending on your setup.

Inside the config folder will be a folder for each wold you have used the mod with. Each world will have its own configs.

Other Notes:

/home without any name still requires you to use a Temporal gear. This is intentional since /home is so fast it should require at least some effort for the speed of going home quickly.

/home with a name however doesn't require a Temporal gear.

Mod Version: 1.2.5

Game Version: 1.16.X+

Planned Features(Maybe):

  • A tips system that will show tips every so often(if you have tips to add feel free to private message me).
  • Sleeping will sleep through the entire night.
  • A friends list. Might be used to allow friends to use your home teleports and maybe other things?
  • More as I think of some.

If you have any suggestions feel free to let me know. I'm still new to modding this game but i'm getting better every day.

Version For Game version Downloads Release date Changelog Download
v1.2.6 3 8 hours ago Show Pols Server Utilities
v1.2.5 3 13 hours ago Show Pols Server Utilities
v1.2.4 215 Dec 28th 2021 at 1:55 AM Show Pols Server Utilities
v1.2.3 144 Nov 26th 2021 at 6:57 AM Show Pols Server Utilities
v1.2.2 110 Nov 22nd 2021 at 8:21 AM Show Pols Server Utilities
v1.2.1 238 Jul 9th 2021 at 6:17 AM Show Pols Server Utilities
v1.2.0 291 Feb 15th 2021 at 7:40 PM Show

22 Comments (oldest first | newest first)

Polraudio, 6 hours ago

Devestatio I was thinking about adding that earlier. I think i will now that you suggested it. I might make it so you can do /rtp [Distance]. Right now im working on letting server admins mute bad players from chat.

Devestatio, 6 hours ago

Polraudio A suggestion I would make for the rtp, maybe add a min and a max distance variable, instead of a a fixed one. and lower it quite a bit. I wanted a random tp, but I didn't expect to be sent to the other side of the map lol.

Polraudio, 6 hours ago

Devestatio No problem. I still have to look into making the rtp better. Thank you for using my mod.

Devestatio, 6 hours ago

Polraudio Ok the correct world had the setting automatically added, and upping it to 7 worked great :) odd that I would need to increase that, I have a really good PC, it is 3yrs old though, but I wouldn't think that would make that big deal. Thank you for your help, and updating that for me and those like me :)

Polraudio, 7 hours ago

Devestatio You might have to delete your config and have it generated again.

Devestatio, 7 hours ago

Polraudio I am running the new version now 1.2.6, but the config shows no setting for rtpSearchTimer.

nm, was looking at the wrong world file :\

trying the new setting now, will update if and what works. I don't have a crap PC, and run the game on max graphics, so not sure if this is the issue, but we'll see.

Polraudio, 8 hours ago

Devestatio Ok i have added a config for adjusting the waiting time when its loading a chunk. The default you are using right now is 5 seconds so try something higher like 7 maybe to see if that allows it to load. 5 works perfectly fine for my computer and home server but you may need a larger number depending on how powerful your computer is. The config is created after you load up your map with the 1.2.6 update and is located in C:\Users\[Your User]\AppData\Roaming\VintagestoryData\ModConfig\PolsServerUtilities\[Your World Name]\MainConfig.json and look for the line "rtpSearchTimer": 5, after you change the config you dont have to reload the game just simply type /loadconfig and that should load the changes you made to the config file.

Devestatio, 8 hours ago

Polraudio I have been trying it for 2 days now, and it never works. Have even tried it about a dozen times since I posted the issue. and I even updated to your update today, and it still doesn't work.

Polraudio, 10 hours ago

Devestatio Sometimes you may have to try it more than once. If it does it every single time let me know because i might have to change a few things.

Devestatio, 11 hours ago

@Polraudio The /rtp command doesn't seem to work, it just says "Failed to find landing zone". I am in single player, so server load is not an issue, and I haven't teleported anywhere else, so not sure what's going on.

Polraudio, 13 hours ago

Mod updated to 1.2.5

  • Added /back command. The back command will bring you back to your last location before you teleported. Yes it works with deaths so you can get back to your body instantly.

Note: This has been tested with the pre version of 1.17 so it should work when the final release of 1.17 comes out.

Polraudio, Feb 6th at 7:07 AM

I can try but no promisses.

YourCreator, Jan 29th at 4:12 PM

Can you add prevent teleports when in fight (not abuse teleports)?

Polraudio, Dec 28th 2021 at 1:55 AM

No features added in this release. Just made it work with 1.16+

Thank you for letting me know it didnt work with 1.16 Lisabet.

Lisabet, Dec 26th 2021 at 8:03 PM

would love to use this in 1.16 :) 

Polraudio, Nov 26th 2021 at 6:57 AM

Mod updated to 1.2.3

  • Added random teleport command via /rtp. RTP can randomly teleport a player anywhere on the map on ground level(not in the air).
  • Added config to disable/enable random teleports.
  • Added config for admins to bypass cooldowns.
  • Admins can set unlimited amount of homes.
  • Added useless /noclip command(Didn't realize it was a thing till after I made it. Might be fun to play with.)
Polraudio, Nov 22nd 2021 at 8:21 AM

Mod updated to 1.2.2

  • Home cooldown now uses the correct variable. - Thank you SalteK for reporting it.
Polraudio, Jul 9th 2021 at 6:18 AM

This mod has been updated.

NOTE: This version of the mod only works for 1.15.X+.
Changelog for 1.2.1

  • Added ability to disable /home, /warp and /spawn in the config.
  • Added /rtime that will show you the real current time on your computer. Useful for those who play in full screen and hate to alt-tab to check the time.
  • Added /backup thats a shorter version of /genbackup without arguments.
  • Added /save thats a shorter version of /autosavenow
  • Added /deop and /deop [playername] so you can easily make your self and others no longer admins. Way easier than dealing the the default way to do it.
  • Added /warn [playername] and /unwarn [playername] that will add a warning point to a players profile.
  • Added /pinfo [playername] so you can see info on players such as their join date, last time seen, homes, warn points, UID, and deaths.
  • Added /myinfo so players can see info on them selves, Same as the info above.
Polraudio, Jul 1st 2021 at 12:14 AM

The next update is 95% ready and will be coming as soon as 1.15 is released. The new version will only work with 1.15+ because of some changes with the games code.

Also @Dobby you will have the ability to disable those commands in the next update.

Dobby, Jun 9th 2021 at 9:56 AM

Thank you!

Polraudio, Jun 6th 2021 at 4:08 PM

As of right now theres no way to disable them. You could however set homes to 0 and set the cooldown timers for something large like 2 billion(max value of a 32bit int since its an int). Sure they will be allowed to teleport once but after that so much time will be required before the next teleport that they will die of old age in real life before they can teleport again(unless they will be living for another 63 years).

When i get enough freetime in the next update ill add the ability to disable those commands.

Dobby, Jun 4th 2021 at 12:18 PM

How can i disable the /home and /spawn
I only really want /uptime and /players

delete edit