configuration

############# TOWNY ANTI-GRIEF ####################

# Designed by: CaptainThrills (With credits to ElgarL for making Towny)
# When finished editing config run /tag reload in game. Ensure to not mess it up and if you need help be detailed!

# Set a unique prefix to use (Do not use color codes -> they wont work)
prefix: '[TownyAG]'
# Log Folder name
logFolderName: 'logs'

# Block Message (Color codes allowed (&) )
blockMessage: '&4Your action has been blocked!'

#Do you want to be notified if a developer connects? (which is just me CaptainThrills)
notifyOnDevConnect: true
#Can developers check basic config settings to help debug TAG?
allowDevInfo: true

#DateFormat - Look up what this means before editing!
FormatDate: '[hh:mm:ss a MM/dd/yyyy]'

#In case of error / notown please select a blank town name
blankTownName: "null"

# Send message to the following?
toLog: true

# Configure the messages sent to the various log areas
# You can use color codes in the broadcastMessage (&)
#
# <prefix> = prefix from the config
# <date> = Current Date
# <town> = player's town
# <player> = player's name
# <ip> = IP of player
# <itemid> = item ID used
# <itemname> = item Name
# <action> = Action type (rightclick, shift right, etc)
# <block> = Block broken at location
# <x> = x-coord
# <y> = y-coord
# <z> = z-coord
# <victim> = victim town / region
#
broadcastMessage: '<prefix> [<town>] <player>[<ip>] <action> Block: <block> with item: <itemname>:<itemid> at <x>,<y>,<z> in <victim>'
logMessage: '<prefix> <date> [<town>] <player>[<ip>] <action> <block> with item: <itemname>:<itemid> at <x>,<y>,<z> in <victim>' 


# WorldGuard Support to enable WG protection also
worldGuard: true

#Regions to monitor with worldguard
regions:
  - spawn
  
  
# This is where you define the item ID's to log/cancel
# Along with changing their individual values
# Sample format:
# ids:
#   '5397':
#     name: 'Wrench'   - Custom name used for <itemname> and lognames
#     logName: true    - Should the name be used instead of the ID for the logs?
#     block: true      - Should the rightclick be blocked in other towns?? (Independent of cancelAction)
#     action: <action> - Valid Actions: src
# Follow this format and you wont have any issues

ids:
  '5397':
    name: 'Wrench'
    logName: true
    block: true
    action: src