Skip to content

A TShock plugin for setting custom prefix, suffix, color and permissions for individual users.

Notifications You must be signed in to change notification settings

Simon311/UserSpecificFunctions

 
 

Repository files navigation

UserSpecificFunctions

UserSpecificFunctions is the TShock plugin that allows setting custom chat prefixes, suffixes and color, as well as custom TShock permissions for individual users, as opposed to groups. Players need to have an account for this to work.

Commands

  • /us - Sets chat properties. Requires the us.set permission to run the command and set your own chat properties, and us.setother to set someone else's.

    • /us prefix [username] [prefix] - Sets the user's chat prefix
    • /us suffix [username] [suffix] - Sets the user's chat suffix
    • /us color [username] [rrr,ggg,bbb] - Sets the user's chat color
    • /us read [username] - Prints out the user's custom chat properties
    • /us remove [username] [prefix/suffix/color/all] - Removes the custom chat properties of the user, requires either the corresponding us.remove.prefix (.suffix, .color) permission, or the us.resetall permission.
  • /permission - Allows to give or take away permissions of individual users. Requires the us.permission permission to run.

    • /permission add [username] [permission1 permission2] - Give permissions to the user. Use ! before the permission to take away a permission granted to the user by their group, like so !tshock.tp.spawn
    • /permission remove [username] [permission1 permission2] - Remove custom permissions from the user.
    • /permission list [username] - Lists the user's custom permissions.
  • /reload - The TShock command to reload the config file and other things. The plugin should reload its config settings and database as well.

Config file

The config file is named userspecificfunctions.json and is located in the default tshock folder and uses JSON formatting.

Config settings:

  • MaximumPrefixLength - Maximum number of characters in a custom prefix, default is 10
  • MaximumSuffixLength - Maximum number of characters in a custom suffix, default is 10
  • ProhibitedWords - List of words that are prohibited to have in custom prefixes and suffixes

Authors and contributors

@IvanBiljan - The Author

@Simon311 - Update to TShock 5.1.3, bugfixes, readme

Download

The binary is available in the repo's "Release" folder.

About

A TShock plugin for setting custom prefix, suffix, color and permissions for individual users.

Resources

Stars

Watchers

Forks

Languages

  • C# 100.0%