Compatibility
Minecraft: Java Edition
Platforms
Tags
Creators
Details

TownyLaws is a lightweight TownyAdvanced addon that lets towns and nations create their own law lists.
Players can view their town and nation laws directly in chat, while mayors, assistants, kings, and admins can manage laws with simple commands.
No database required. Laws are stored in simple YAML files and can be reloaded without restarting the server.

• Town laws and nation laws • View laws with /town laws, /nation laws, or /townylaws • Mayors and assistants can manage town laws • Kings and assistants can manage nation laws • Admin commands for managing any town or nation • Configurable law limits, page size, and max law length • Optional law display when joining a town or nation • Customizable messages • Simple YAML storage

/town laws - View your town's laws /town laws add <law> - Add a town law /town laws remove <number> - Remove a town law /town laws clear - Clear town laws
/nation laws - View your nation's laws /nation laws add <law> - Add a nation law /nation laws remove <number> - Remove a nation law /nation laws clear - Clear nation laws
/townylaws - View your town and nation laws /townylaws reload - Reload the plugin files /townylaws town <town> - View or manage another town's laws /townylaws nation <nation> - View or manage another nation's laws

townylaws.town.manage Allows town mayors and assistants to manage town laws. Default: true
townylaws.nation.manage Allows nation kings and assistants to manage nation laws. Default: true
townylaws.admin Allows admins to reload files, manage any town or nation, and bypass normal management checks. Default: op

TownyLaws includes a simple config file where you can change:
• Maximum laws per town • Maximum laws per nation • Laws shown per page • Maximum law length • Whether laws appear when joining a town or nation • Color and format code support • Plugin messages and law display format

- Download TownyLaws.
- Place the jar file in your server's plugins folder.
- Make sure TownyAdvanced is installed.
- Restart your server.
- Edit the config if needed.
- Run /townylaws reload after making changes.


