Server Utilities

Mods
7,730 Downloads Last Updated: Dec 8, 2019 Game Version: Forge

Overview

Current Version: v1.0.0

 

**IMPORTANT**

As of version 0.9.2 I have implemented a system to allow my mod to control all commands added by minecraft, or other mods.
The way this was done was by making all players op level, or permission level 4, and then upon a command execution checking if there is a permission set for that command.

If there is no permission set, then the player cant use it, unless they have the "*" perm. If there is a permission set to it, it checks to see if the player has that rank, and if not wont let them use it.

A brief explanation of the permission.json file:
If a root node and a child node are specified, the child node will have priority.
This means, that if you have two permissions set. One for "nickname" and one for "nickname nick player" if a player tries to change their own name, only the "nickname" permission is called. If the command they use has the child nodes it will check that permission instead, and disallow the command if its not there. If a child node is not specified for a command, then the root permission will be used.

Since this mod allows you to rename all commands in it, and set the permissions for them, the permission.json file is generated when its not there. I suggest, that if you change any of the files relating to permissions or commands (not including the permission.json) you should delete the existing permissions.json to allow the new one to be generated.

 

And since the players are all made into operators in this version, I expect some unexpected issues to surface. If you find that a player is able to do things that they should NOT be able to do, please create an issue on the github and I will take care of it asap.  

 

This mod adds multiple commands and changes to minecraft.

It is a server side mod, so you only need it on the server (or client if using single player or Lan).

Starting from v0.8.1 on, the playerdata will be located in the [world]/playerdata/ folder. The mod will automatically update the playerdata for servers that have older data. In a few versions this will be removed to clean up the code.

If you are updating to v0.8.5, the config file has been moved inside of the 'serverutils' directory. Simply move the old config into there.

 

Commands`

 


General Commands


 

Command Args Description Permission Delay Cooldown
/spawn n/a Teleports the user to spawn serverutils.spawn 5 0
/setspawn n/a Sets the Server's spawn to the current location serverutils.setspawn 0 0
/warp [warp] Teleports the player to the specified warp serverutils.warp 5 0
/warps n/a Lists the current warps set on the Server serverutils.warps 0 0
/setwarp [warp] Sets the current location as the specified serverutils.setwarp 0 0
/delwarp [warp] Removes the specified warp serverutils.delwarp 0 0
/home {home} Teleports the player to thier home "Home" unless another one is specified serverutils.home 5 0
/homes n/a Displays all of your current homes serverutils.homes 0 0
/sethome {home} Sets the current location as your home "Home" unless another one is specified serverutils.sethome 0 0
/delhome {home} Removes the home "Home" unless another one is specified serverutils.delhome 0 0
/back n/a Teleports a player to thier prior location serverutils.back 5 0
/rtpnear n/a Teleports the player to a random place nearby serverutils.rtpnear 5 0
/rtp n/a Teleports the player to a random place serverutils.rtp 5 0
/rtpfar n/a Teleports the player to a random place far out serverutils.rtpfar 5 0
/tpa [player] Requests that the specified player lets you tp to them serverutils.tpa 0 0
/tpahere [player] Requests the specified player to tp to you serverutils.tpahere 0 0
/tpaccept n/a Accepts a pending teleport request serverutils.tpaccept 0 0
/tpdeny n/a Denies a pending teleport request serverutils.tpdeny 0 0
/repair {all} Repairs the currently held item to full durability serverutils.repair
serverutils.repair.all
0 0
/heal {player} Heals the player specified, or yourself if its not serverutils.heal
serverutils.heal.other
0 0
/feed {player} Feeds the player specified, or yourself if its not serverutils.feed
serverutils.feed.other
0 0
/god {player} Toggles Godmode for the player specified, or yourself if its not serverutils.god
serverutils.god.other
0 0
/fly {player} Toggles Flight for the player specified, or yourself if its not serverutils.fly
serverutils.fly.other
0 0
/bomb {player} Drops tnt on the player specified serverutils.bomb 0 0
/drown {player} Spawns water around the player specified, replacing air serverutils.drown 0 0
/smite {player} Strikes the player specified with lightning serverutils.smite 0 0
/nickname {name}{player} If the name is specified, will change your name to the new one, if not it is reset. If a player is specified, thier name will be modified. serverutils.nick 0 0
/endchest n/a Opens the players end chest serverutils.endchest 0 0
/gamemode [mode] Changes the users gamemode serverutils.gamemode 0 0

 


Permission Commands


 

Command Args Description Permission Delay Cooldown
/permission add [player][perm] Adds the specified permission to the player serverutils.permission 0 0
/permission remove [player][perm] Removes the specified permission to the player serverutils.permission 0 0
/permission clear [player] Removes all of the permission to the player (not including rank permissions) serverutils.permission 0 0
/permission create n/a This will create a permission for the command used serverutils.permission 0 0
/permission list {filter} Lists all the permissions based on the filter, if no filter is used all will be listed. serverutils.permission 0 0

 


Kit Commands


 

Command Args Description Permission Delay Cooldown
/kit [kit] Gives the user the kit specified, if they have the permission for it serverutils.kit 0 0
/kit add [kit] Adds the item held to the kit specified serverutils.kit.modify 0 0
/kit cooldown [kit][cooldown] Sets the cooldown of the kit specified serverutils.kit.modify 0 0
/kit create [kit] Creates a kit by the name specified serverutils.kit.modify 0 0
/kit delete [kit] Deletes the kit specified serverutils.kit.modify 0 0
/kit info [kit] Shows the contents of the kit serverutils.kit 0 0
/kit permission [kit] Shows the permission for the kit serverutils.kit.modify 0 0
/kit remove [kit] Removes the held itemstack from the specified kit serverutils.kit.modify 0 0

 


Rank Commands


 

Command Args Description Permission Delay Cooldown
/rank n/a Displays info about your ranks serverutils.rank 0 0
/rank add [player][rank] Adds the specified rank to the player serverutils.rank.modify 0 0
/rank remove [player][rank] Removes the specified rank from the player serverutils.rank.modify 0 0
/rank create [rank] Creates a new rank serverutils.rank.modify 0 0
/rank delete [rank] Deletes a specified rank. serverutils.rank.modify 0 0
/rank permission add [rank][permission] Adds a permission to the specified rank serverutils.rank.modify 0 0
/rank permission remove [rank][permission] Removes the specified permission from the rank serverutils.rank.modify 0 0
/rank priority [rank][weight] Sets the importance of a rank, this affects which prefix is used. serverutils.rank.modify 0 0
/rank prefix [rank][prefix] Sets the prefix for the rank. This supports color codes, but it needs to be inside quotations serverutils.rank.modify 0 0


When a argument has: [ ] it is required, if it has: { } then it is optional
All commands, permissions, cooldowns, and delays are configurable. These are just the defaults.
When using any command that teleports you, if you move before the delay has finished it will be canceled, but if it is canceled the cooldown will not be started.

 

Alpha

Commands that are being added.

 

/msg - done
/r - done
/msgtoggle - done
/rules
/motd
/mute - done
/speed
/noclip
/suicide
/tptoggle
/top
/hat
/info
/realname
/me
/broadcast
/kill
/socialspy
/sudo
/seen
/skull
/tpauto

Contents

 

In addition, the messages will now be able to be translated into other languages.

Because of the translated messages, the mod is either required for the client or the resource pack that contains the translation file. (The resource pack is included in the 'additional files' for each of the downloads starting at v0.6.0)

 

There is a default rank that will be added to players when they join the server you will be able to make more ranks with the /ranks command

 

All commands have permissions. If a bug is found (and I am sure there are plenty) please make an issue on github.
More content is on its way.

 

Each command has a config option to enable it, to set a delay before the command will be executed, and also to add a cooldown to commands to keep them from being used too often, as well as permission nodes that can be changed.

 

This mod also enables color chat. If the config option for it is set to true, and you have the permission, then using minecraft colorcodes you can color your chat. Its simple, just add the colorcode to your message and it will be colored. It also supports the formatting code and using both at the same time to format text.

 

In addition, it also adds custom formatting codes. Currently there are:

  • &g - which will make the following text rainbow colored.
  • &h - which will make the following text using one of the 12 themed formats, the format that will be used is dependant on the current month for the server

 

Rank prefixes are now added and support colors and formats as well. 

 

The server now has an AutoSave feature (default is 5min) it can be configured in the config.

 

Other things that it adds:

  • The ability to use name tags on minecarts of any variation. This can be used for displaying what the minecart is for, or who it belongs to.
  • The ability for looting to change the drops from Iron Golems

 Bugs/Suggestions

 

If you have any bugs or suggestions, please put them on GitHub, HERE.

There will be more updated and additions as time goes on.

If you want to help out, I am looking for some extra hands on this project, Just shooot me a message on here, or leave a comment.

 

Comments

  • To post a comment, please or register a new account.
Posts Quoted: