Adventure-Terraria-Server-Project / HouseRegions-Plugin

House Regions plugin for Terraria Server API and TShock.
GNU General Public License v3.0
6 stars 18 forks source link

Add Custom /House Command Support #7

Closed CoderCow closed 9 years ago

CoderCow commented 11 years ago

New custom sub-commands for /House can be configured by server owners to execute a given command list. Could look like this:

<CustomHouseCommands>
  <CustomCommand Name="Private" Permission="PrivateHouses">
    /dreg %house
    /rf set %house PRIVATE
  </CustomCommand>
</CustomHouseCommands>

Where %house is replaced with the name of the house regions the player is currently standing in and {0...} could be passed parameters.

House owners with the "PrivateHouses" permission could then write "/House Private" to execute the command list above for the house they're standing in thus, in this example, it would let the Region Flags plugin set their house to private.

Further parameters: %owner = The house owner. %ownergroup = The group of the house owner. %index = The house index. %player = Name of the player executing the command. %playergroup = Group of the player executing the command.

QuiCM commented 11 years ago

If I still ran a server, I would love functions like this.