Advertisement
Guest User

Config

a guest
Jan 18th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.99 KB | None | 0 0
  1. # ╔════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╗
  2. # ║ config.yml file of the AreaShop plugin created by NLThijs48, Github can be found at https://github.com/NLthijs48/AreaShop ║
  3. # ║ This file contains options to change the working of the plugin, the profiles defined here can be used in default.yml ║
  4. # ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
  5. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  6. # │ GENERAL: Options that influence the global state of the plugin │
  7. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  8. ## Chatprefix used for all messages in the chat. Also check the 'greeting' lines in the 'flagProfiles' section,
  9. ## these also contain the prefix and you may want to change those to
  10. chatPrefix: '&2[AreaShop]&r '
  11. ## The characters used for the prices of regions, will appear before the number, for the euro character use '%euro%'
  12. moneyCharacter: '$'
  13. ## The characters used after a currency number, '%euro%' will become the euro character
  14. moneyCharacterAfter: ''
  15. ## How many numbers behind the dot should be shown (2 will make numbers like '8.55', '9.01')
  16. fractionalNumbers: 2
  17. ## Set this to true if you want to hide '.0' for a number like '15.0' ('4.50' will still stay '4.50')
  18. hideEmptyFractionalPart: true
  19. ## The .yml language file that should be used, provided by this plugin: EN, NL, FR, DE, PL
  20. language: DE
  21. ## Enable Schematic saving and restoring in general
  22. enableSchematics: true
  23. ## The tags you need to write on the sign to trigger the plugin
  24. signTags:
  25. ## Tag for adding a rent region
  26. rent: '[rent]'
  27. ## Tag for adding a buy region
  28. buy: '[as]'
  29. ## Tag for adding a sign to an existing region
  30. add: '[ar]'
  31. ## Enable sending stats to http://mcstats.org/ (Metrics plugin)
  32. sendStats: true
  33. ## If enabled it will check for updates when loading the plugin, it will never download files, it will only notify about it
  34. ## A message will be printed in the console when an update is available and OPs will be notified when joining the server
  35. checkForUpdates: true
  36. ## Use colors when sending messages to console and log files
  37. useColorsInConsole: false
  38. ## Post error messages in the console when a command run from the config fails (from the 'runCommands' section for example)
  39. postCommandErrors: true
  40. ## Enables / disables debug messages in the console, could be useful to figure out where errors come from
  41. debug: false
  42. ## Version of the config, do not change!
  43. version: 2.1.2
  44.  
  45.  
  46. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  47. # │ RENTING: Options that apply to all rent regions │
  48. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  49. ## Timeformat to use on the signs, default is like '30-06 14:52', US format: 'MM-dd KK:mm a'
  50. ## Search for 'java SimpleDateFormat' for more options and documentation
  51. timeFormatSign: 'dd-MM HH:mm'
  52. ## Timeformat used in the chat, default is like '30 june 2014 14:52', US format: 'MMMMMMMMMMMMMMMMM dd yyyy KK:mm a'
  53. ## Search for 'java SimpleDateFormat' for more options and documentation
  54. timeFormatChat: 'dd MMMMMMMMMMMMMMMMM yyyy HH:mm'
  55. ## Time indicators, used for specifing rent duration on the signs
  56. ## Be careful with deleting words, will break signs using those, adding is no problem
  57. minutes: [m, min, mins, minute, minutes, minuten, minuut]
  58. hours: [h, hour, hours, uur, uren]
  59. days: [d, day, days, dag, dagen]
  60. months: [M, month, months, maanden, maand]
  61. years: [y, year, years, jaar, jaren]
  62.  
  63.  
  64. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  65. # │ PERMISSION GROUPS: Assigned by giving players certain permissions │
  66. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  67. ## Configure the max total regions, max rent regions and max buy regions with different groups (-1 is unlimited)
  68. ## Assign a group to players by giving them the permission 'areashop.limits.<group>'
  69. ## Every player already has the group 'default' and ops have the unlimited group
  70. ## All the groups applied to the player will be checked and only if they all allow an extra region it will be permitted
  71. ## Add a 'worlds' or 'groups' list to a group to only count regions from those worlds and/or groups .
  72. ## This can be used to get different limits for other worlds or area's.
  73. ## Give players permissions globally and not per world! That would break limits when then try renting/buying from within another world
  74. limitGroups:
  75. default:
  76. total: 1
  77. rents: 1
  78. buys: 1
  79.  
  80.  
  81. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  82. # │ PROFILES: Assigned in general (default.yml), for a group (groups.yml) or individually (<region>.yml) │
  83. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  84. ## Below is a list of tags that can be used with all the profiles below.
  85. ## If a tag has no value (for example when you use %player% when the region is not rented/bought) then the tag will not get replaced
  86. ## %region% The region name (with correct capitalization)
  87. ## %player% The name of the player that rents/buys the region (with correct capitalization), will not get replaced if no renter/buyer
  88. ## %uuid% The uuid of the player that rents/buys the region, will not get replaced if no renter/buyer
  89. ## %friends% The names of friends added to this region separated by ', '
  90. ## %friendsuuid% The UUID's of friends added to this region separated by ', '
  91. ## %price% The price of the region formatted with the configured characters before and after the number
  92. ## %duration% The duration of a rent region, for example '1 d', '4 minutes' or '2 years'
  93. ## %world% The name of the world that the region is in
  94. ## %type% The type of the region, 'rent' or 'buy'
  95. ## %until% The end time of a rent formatted as configured with 'timeFormatChat'
  96. ## %untilshort% The end time of a rent formatted as configured with 'timeFormatSign'
  97. ## %width% The width of the region (amount of blocks on the x-axis)
  98. ## %depth% The depth of the region (amount of blocks on the z-axis)
  99. ## %height% The height of the region (amount of blocks on the y-axis)
  100. ## %timeleft% The time left on the rent (uses the unit of time that fits best, minutes used from 121 seconds till 120 minutes)
  101. ## %clicker% The name of the player that clicked the sign (only to be used in the signProfiles section)
  102. ## %resellprice% The price of a region when it is in resell mode
  103. ## %moneyback% The amount of money the player will get back when unrenting/selling the region (formatted with currency characters)
  104. ## %moneybackpercent% The percentage of the price the player will get back when unrenting (only the number between 0-100)
  105. ## %maxextends% The maximum number of extends a player can do on the region
  106. ## %extendsleft% The number of extends that are left (maxextends - timesextended)
  107. ## %maxrenttime% The maximum time you can rent a region in advance (human readble)
  108. ## %inactivetime% The maximum time a player may be inactive before unrent/sell (human readble)
  109.  
  110. ## Below are profiles for the signs, you can assign profiles to regions
  111. ## by setting 'general.signProfile' in default.yml, groups or individual regions
  112. signProfiles:
  113. default:
  114. ## The following sections can be added for performing certain commands when the sign is clicked:
  115. ## rightClickPlayer, rightClickConsole, shiftRightClickPlayer, shiftRightClickConsole,
  116. ## leftClickPlayer, leftClickConsole, shiftLeftClickPlayer, shiftLeftClickConsole
  117. ## Sections with 'Player' at the end will be run by the clicking player and 'Console' ones from the console
  118. forrent:
  119. line1: '&2&l[Zum Kaufen]'
  120. line2: '%region%'
  121. line3: '%duration%'
  122. line4: '%price%'
  123. rightClickPlayer:
  124. - 'areashop rent %region%'
  125. leftClickPlayer:
  126. - 'areashop info region %region%'
  127. rented:
  128. line1: '&4&l[Rented]'
  129. line2: '%region%'
  130. line3: '%player%'
  131. line4: '%untilshort%'
  132. rightClickPlayer:
  133. - 'areashop rent %region%'
  134. leftClickPlayer:
  135. - 'areashop info region %region%'
  136. shiftRightClickPlayer:
  137. - 'areashop unrent %region%'
  138. forsale:
  139. line1: '&a&l[Verfügbar]'
  140. line2: '&5Region: &9%region%'
  141. line3: '&5Preis: &9%price%'
  142. line4: '&a[Klick]'
  143. rightClickPlayer:
  144. - 'areashop buy %region%'
  145. leftClickPlayer:
  146. - 'areashop info region %region%'
  147. resell:
  148. line1: '&9&l[Resale]'
  149. line2: '%region%'
  150. line3: '%resellprice%'
  151. line4: '&9&o%player%'
  152. rightClickPlayer:
  153. - 'areashop buy %region%'
  154. leftClickPlayer:
  155. - 'areashop info region %region%'
  156. shiftRightClickPlayer:
  157. - 'areashop stopresell %region%'
  158. sold:
  159. line1: '&4&l[Verkauft]'
  160. line2: '&5Region: &9%region%'
  161. line3: '&5Gekauft von'
  162. line4: '&9&o%player%'
  163. rightClickPlayer:
  164. - 'areashop buy %region%'
  165. leftClickPlayer:
  166. - 'areashop info region %region%'
  167. shiftRightClickPlayer:
  168. - 'areashop sell %region%'
  169. ## Option to run certain commands when one of these events happen
  170. ## Commands at a 'before' section will execute before the region details are changed in the AreaShop system
  171. ## and before any other actions occurred (changing signs, saving/loading schematics, etc.),
  172. ## the 'after' commands will be run when all changes are done.
  173. ## After 'before' or 'after' you can create a list of commands (see example at the created event)
  174. eventCommandProfiles:
  175. default:
  176. created:
  177. before:
  178. after:
  179. ## - "say An AreaShop region has been created: %region%"
  180. deleted:
  181. before:
  182. after:
  183. rented:
  184. before:
  185. after:
  186. extended:
  187. before:
  188. after:
  189. unrented:
  190. before:
  191. after:
  192. bought:
  193. before:
  194. after:
  195. - "sudo %player% as tp %region%"
  196. sold:
  197. before:
  198. after:
  199. resell:
  200. before:
  201. after:
  202. ## For the following events you can specify if you want to restore or save the region to a schematic
  203. ## After 'save:' or 'restore:' you enter the name of the file to restore from/to
  204. ## If you want your regions all looking the same then you can leave out the %region% part to use the same schematic for all
  205. ## Be carefull with these options, it could crash your server or destroy (parts of) your world if used wrong!
  206. ## The limit 'maximumBlocks' applies to restoring/saving schematics, be sure your regions are below the limit
  207. schematicProfiles:
  208. default:
  209. created:
  210. save: '%type%-%region%'
  211. restore: ''
  212. deleted:
  213. save: ''
  214. restore: '%type%-%region%'
  215. rented:
  216. save: ''
  217. restore: ''
  218. unrented:
  219. save: ''
  220. restore: '%type%-%region%'
  221. bought:
  222. save: ''
  223. restore: ''
  224. sold:
  225. save: ''
  226. restore: '%type%-%region%'
  227. resell:
  228. save: ''
  229. restore: ''
  230. ## Flag profiles to specify what flags should be set on the WorldGuard regions
  231. ## All normal region flags as present in WorldGuard can be used, and also members, owners, priority and parent
  232. ## Each line represents a WorldGuard setting that should be set to a certain value when the region is in the specified state
  233. ## The members and owners flag normally take a list of UUID's separated by 'comma space', adding by name is possible with 'n:<name>'
  234. ## You can add groups by using 'g:<groupname>', so in total you could use: '%uuid%, %friendsuuid%, g:vip, n:cool-guy'
  235. ## For flags like 'entry' and 'exit' you can add group setting by using 'g:<scope>' behind it, <scope> is one of the following:
  236. ## members, non_members, owners, non_owners, all. Example, only owners can enter the region:
  237. ## entry: 'allow g:owners'
  238. ## Use '' for a flag to reset it.
  239. flagProfiles:
  240. default:
  241. forrent:
  242. members: ''
  243. greeting: '%lang:prefix%%lang:greeting-forrent%'
  244. rented:
  245. members: '%uuid%, %friendsuuid%'
  246. greeting: '%lang:prefix%%lang:greeting-rented%'
  247. forsale:
  248. members: ''
  249. greeting: '%lang:prefix%%lang:greeting-forsale%'
  250. sold:
  251. members: '%uuid%, %friendsuuid%'
  252. greeting: '%lang:prefix%%lang:greeting-bought%'
  253. resale:
  254. members: '%uuid%, %friendsuuid%'
  255. greeting: '%lang:prefix%%lang:greeting-resale%'
  256. ## Profiles that specify when players should get messages about rent that almost run out
  257. ## The numbers that start sections in the profile specify how time before it actually runs out it should be executed
  258. ## When warnPlayer is set to true a message will be send that is specified in the language file
  259. ## All commands in the list below 'commands:' will execute together with the warning, all normal variables can be used
  260. expirationWarningProfiles:
  261. default:
  262. "1 day":
  263. warnPlayer: true
  264. commands:
  265. ## - "say %region% is about to expire for %player%: %timeleft% left"
  266. "1 hour":
  267. warnPlayer: true
  268. commands:
  269. "5 minutes":
  270. warnPlayer: true
  271. commands:
  272.  
  273.  
  274. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  275. # │ LIMITS AND TIMINGS: Options for limits and the frequencies for certain functions (be very carefull with these!) │
  276. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  277. ## Setting the 'delay' setting to 0 or lower will prevent the taks from runnning, if you don't use a certain feature you
  278. ## could switch the task off this way.
  279.  
  280. ## Maximum number of blocks to save to or restore from a .schemetic
  281. maximumBlocks: 1000000
  282. ## Maximum number of locations the teleport function should check to find a safe spot
  283. maximumTries: 50000
  284. ## Timings for saving files that need saving
  285. saving:
  286. ## Time between saving files that need to be saved (not all files will be saved by default)
  287. delay: 10
  288. ## How many regions per tick will be saved
  289. regionsPerTick: 1
  290. ## Timings for rent expiration checking
  291. expiration:
  292. ## Time between checking if rent regions have been expired (seconds)
  293. delay: 59
  294. ## Number of rent regions to check per tick (there are 20 ticks in a second)
  295. regionsPerTick: 5
  296. ## Timings for expiration warning to online players
  297. expireWarning:
  298. ## The time between checking if expiration warning need to be sent
  299. delay: 5
  300. ## Number of regions to update per tick (there are 20 ticks in a second)
  301. regionsPerTick: 1
  302. ## Timings for updating signs and region flags (/as updaterents or /as updatebuys)
  303. update:
  304. ## Number of regions to update per tick (there are 20 ticks in a second)
  305. regionsPerTick: 2
  306. ## Time between checking if any regions need to be unrented because the player was not online for the specified time period (minutes)
  307. ## -1 means never, 1440 is one day, 43200 is one month, 525600 is one year
  308. inactive:
  309. ## Time between checking if a regions needs to be unrented/sold because of inactivity by the player (minutes)
  310. delay: 15
  311. ## Number of rent regions to check per tick (there are 20 ticks in a second)
  312. regionsPerTick: 5
  313. ## Timings for the periodic updating of signs (for timeleft tags etc)
  314. signs:
  315. ## Time between updates of all signs (seconds)
  316. delay: 60
  317. ## Number of regions to update signs for per tick (there are 20 ticks in a second)
  318. regionsPerTick: 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement