The objective of this post is to help users to configurate the TheSortingHat in order to attend their necessities, remember that the plugin is freely available here . Do not forget to follow the YAML syntax otherwise your server will run into problems.
Default Configuration
If you have a Harry Potter’s server and you want to sort houses, the default configuration of TheSortingHat satisfies you 75% since you won’t need to change the houses, if that’s your case jump to the Commands configuration in this post.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Sorted: 'Congratulations! You have been sorted into ' Houses: - 'Gryffindor' - 'Hufflepuff' - 'Ravenclaw' - 'Slytherin' # It's recommended that you put in the commands, the command to add the player to the house permission# #Example: pex user %player% group add Gryffindor | {player} will be automatically replaced to the sorted player's name# Commands: - "say {player} have been sorted into Gryffindor" # Change the command to the permission one refering to Gryffindor - "say {player} have been sorted into Hufflepuff" # Change the command to the permission one refering to HufflePuff - "say {player} have been sorted into Ravenclaw" # Change the command to the permission one refering to Ravenclaw - "say {player} have been sorted into Slytherin" # Change the command to the permission one refering to Slytherin |
Configuration Structure
The configuration file is divided in sections
- Sorted
- Houses
- Commands
They’ll be separately explained below.
Sorted
The sorted section stores a string which refers to the shown message after using the command /sort, it’s end automatically concatenates with the ‘sorted house’. In the screenshot above, when used the command, Ravenclaw was sorted and shown after the sorted message, for instance.
Houses

The houses section stores a list of strings which refers to the list of options to be randomly picked when using the /sort. As a result it’s attached command will be ran.
Commands
The commands sections stores a list of strings which refers to the respective command of the house that will be performed after being chosen. Therefore, the first string of the commands list will refer to the first string of the houses list, at the moment you can’t add more than a command to a house !
Ps: Rembember that every ‘house’ must have a respective command.
In the next posts, it’ll be explained the usage of the plugin, stay up to date.
Deixe uma resposta