SoniaK

AreaShop Config

Dec 2nd, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.92 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. # ║ More information and tutorials can be found on the wiki: https://github.com/NLthijs48/AreaShop/wiki ║
  5. # ╚════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
  6. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  7. # │ GENERAL: Options that influence the global state of the plugin │
  8. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  9. ## Chatprefix used for all messages in the chat, also changes the greeting messages.
  10. chatPrefix: '&2[AreaShop]&r '
  11. ## The language file that should be used, check the 'lang' folder for build-in languages (use the filename without .yml here).
  12. ## More information can be found here: https://github.com/NLthijs48/AreaShop/wiki/Language-support.
  13. language: EN
  14. ## The tags that need to be written on the first line of a sign to use it with AreaShop.
  15. signTags:
  16. ## Add a rental region.
  17. rent: '[asrent]'
  18. ## Add a buy region.
  19. buy: '[asbuy]'
  20. ## Add a sign to an existing region.
  21. add: '[as]'
  22.  
  23. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  24. # │ NUMBERS: Options to change the display of prices. │
  25. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  26. ## The characters displayed before a price.
  27. moneyCharacter: '$'
  28. ## The characters displayed after a price.
  29. moneyCharacterAfter: ''
  30. ## How many numbers behind the dot should be shown (2 will make numbers like '8.55', '9.01', '5,20').
  31. fractionalNumbers: 2
  32. ## Set this to true if you want to hide '.0' for a number like '15.0' ('4.50' will still stay '4.50').
  33. hideEmptyFractionalPart: true
  34. ## Use metric suffixes if the price is above this number (use 1.00M instead of 1000000.00 etc.), use -1 to disable.
  35. ## Indications are used as defined on: http://en.wikipedia.org/wiki/Metric_prefix, implemented from 'k' to 'Y'.
  36. metricSuffixesAbove: 1000000.0
  37. ## The character(s) to use as decimal mark.
  38. decimalMark: '.'
  39.  
  40.  
  41. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  42. # │ RENTING: Options that apply to all rent regions. │
  43. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  44. ## Timeformat to use on the signs, default is like '30-06 14:52', US format: 'MM-dd KK:mm a'.
  45. ## Search for 'java SimpleDateFormat' for more options and documentation.
  46. timeFormatSign: 'MM-dd HH:mm'
  47. ## Timeformat used in the chat, default is like '30 june 2014 14:52', US format: 'MMMMMMMMMMMMMMMMM dd yyyy KK:mm a'.
  48. ## Search for 'java SimpleDateFormat' for more options and documentation.
  49. timeFormatChat: 'dd MMMMMMMMMMMMMMMMM yyyy HH:mm'
  50. ## Time indicators, used for specifing time periods (for example rent duration).
  51. seconds: [s, sec, secs, second, seconds]
  52. minutes: [m, min, mins, minute, minutes]
  53. hours: [h, hour, hours]
  54. days: [d, day, days]
  55. weeks: [w, week, weeks]
  56. months: [M, month, months]
  57. years: [y, year, years]
  58. ## Allow or disallow extending a rental region when the player is above his limits enforced by the 'limitGroups' section below.
  59. ## false will ensure a player will eventually lose his region when he has no access anymore.
  60. allowRegionExtendsWhenAboveLimits: false
  61.  
  62.  
  63. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  64. # │ PERMISSION GROUPS: Assigned by giving players certain permissions. │
  65. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  66. ## Configure the max total regions, max rent regions and max buy regions with different groups (-1 is unlimited).
  67. ## Assign a group to players by giving them the permission 'areashop.limits.<group>'.
  68. ## Every player already has the group 'default', OPs bypass the limits because of the 'areashop.limitbypass' permission.
  69. ## All the groups applied to the player will be checked and only if they all allow an extra region it will be permitted.
  70. ## Add a 'worlds' or 'groups' list to a group to only count regions from those worlds and/or groups.
  71. ## Give players permissions globally and not world specific! This ensures renting/buying while in another world works correctly.
  72. ## More information can be found here: https://github.com/NLthijs48/AreaShop/wiki/Limitgroups-information-and-examples.
  73. limitGroups:
  74. default:
  75. total: 3
  76. rents: 3
  77. buys: 3
  78. Moderator:
  79. total: 3
  80. rents: 3
  81. buys: 3
  82. SeniorModerator:
  83. total: 5
  84. rents: 5
  85. buys: 5
  86. Admin:
  87. total: 7
  88. rents: 7
  89. buys: 7
  90. Owner:
  91. total: 20
  92. rents: 20
  93. buys: 20
  94. CoOwner:
  95. total: 20
  96. rents: 20
  97. buys: 20
  98. notavailable:
  99. total: 0
  100. rents: 0
  101. buys: 0
  102. buildsite:
  103. total: 1
  104. rents: 1
  105. buys: 0
  106. groups:
  107. - 'buildsite'
  108. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  109. # │ PROFILES: Assigned in general (default.yml), for a group (groups.yml) or individually (<region>.yml) │
  110. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  111. ## The idea of profiles is that you can make different variations of them, and then assign the different variations to different
  112. ## subsects of regions (by assigning a profile to a region group, or an individual region).
  113.  
  114. ## Below is a list of tags that can be used in all settings of profiles.
  115. ## If a tag has no value (for example %player% when the region is not rented/bought) then the tag will not get replaced.
  116. ## %region% The region name (with correct capitalization).
  117. ## %player% The name of the player that rents/buys the region (with correct capitalization).
  118. ## %uuid% The UUID of the player that rents/buys the region.
  119. ## %friends% The names of friends added to this region separated by ', '.
  120. ## %friendsuuid% The UUID's of friends added to this region separated by ', '.
  121. ## $landlord$ The name of the landlord.
  122. ## %landlorduuid% The UUID of the landlord.
  123. ## %price% The price of the region formatted with the configured characters before and after the number.
  124. ## %rawprice% The price without formatting, like '10.0' or '7.77'.
  125. ## %duration% The duration of a rent region, for example '1 d', '4 minutes' or '2 years'.
  126. ## %world% The name of the world that the region is in.
  127. ## %type% The type of the region, 'rent' or 'buy'.
  128. ## %until% The end time of a rent formatted as configured with 'timeFormatChat'.
  129. ## %untilshort% The end time of a rent formatted as configured with 'timeFormatSign'.
  130. ## %width% The width of the region (amount of blocks on the x-axis).
  131. ## %depth% The depth of the region (amount of blocks on the z-axis).
  132. ## %height% The height of the region (amount of blocks on the y-axis).
  133. ## %timeleft% The time left on the rent (uses the unit of time that fits best, minutes used from 121 seconds till 120 minutes).
  134. ## %clicker% The name of the player that clicked the sign (only to be used in the signProfiles section).
  135. ## %resellprice% The price of a region when it is in resell mode.
  136. ## %rawresellprice% The resellprice without formatting, like '10.0' or '7.77'.
  137. ## %moneyback% The amount of money the player will get back when unrenting/selling the region (formatted with currency layout).
  138. ## %rawmoneyback% The moneyback without formatting, like '10.0' or '7.77'.
  139. ## %moneybackpercent% The percentage of the price the player will get back when unrenting the region.
  140. ## %maxextends% The maximum number of extends a player can do on the region.
  141. ## %extendsleft% The number of extends that are left (maxextends - timesextended).
  142. ## %maxrenttime% The maximum time you can rent a region in advance (human readable).
  143. ## %inactivetime% The maximum time a player may be inactive before unrent/sell (human readable).
  144. ## %year% The current year.
  145. ## %month% The current month in the year.
  146. ## %day% The current day in the month.
  147. ## %hour% The current hour in the day (0-23).
  148. ## %minute% The current minute of the hour.
  149. ## %second% The current second of the minute.
  150. ## %millisecond% The current millisecond of the second.
  151. ## %epoch% The number of milliseconds since January 1, 1970 (Unix Epoch).
  152.  
  153. ## Determines the layout and functions of the signs linked to regions.
  154. ## Set 'general.signProfile' in default.yml, groups or individual regions to set the profile.
  155. signProfiles:
  156. default:
  157. ## The following sections can be added for performing certain commands when the sign is clicked:
  158. ## rightClickPlayer, rightClickConsole, shiftRightClickPlayer, shiftRightClickConsole,
  159. ## leftClickPlayer, leftClickConsole, shiftLeftClickPlayer, shiftLeftClickConsole.
  160. ## Sections with 'Player' at the end will be run by the player that clicks the sign and 'Console' ones from the console.
  161. forrent:
  162. line1: '&2&l[For Rent]'
  163. line2: '%region%'
  164. line3: '%duration%'
  165. line4: '%price%'
  166. rightClickPlayer:
  167. - 'areashop rent %region%'
  168. leftClickPlayer:
  169. - 'areashop info region %region%'
  170. rented:
  171. line1: '&4&l[Rented]'
  172. line2: '%region%'
  173. line3: '%player%'
  174. line4: '%timeleft%'
  175. rightClickPlayer:
  176. - 'areashop rent %region%'
  177. leftClickPlayer:
  178. - 'areashop info region %region%'
  179. shiftRightClickPlayer:
  180. - 'areashop unrent %region%'
  181. forsale:
  182. line1: '&2&l[For Sale]'
  183. line2: '%region%'
  184. line3: '%price%'
  185. line4:
  186. rightClickPlayer:
  187. - 'areashop buy %region%'
  188. leftClickPlayer:
  189. - 'areashop info region %region%'
  190. resell:
  191. line1: '&9&l[Resale]'
  192. line2: '%region%'
  193. line3: '%resellprice%'
  194. line4: '&8%player%'
  195. rightClickPlayer:
  196. - 'areashop buy %region%'
  197. leftClickPlayer:
  198. - 'areashop info region %region%'
  199. shiftRightClickPlayer:
  200. - 'areashop stopresell %region%'
  201. sold:
  202. line1: '&4&l[Sold]'
  203. line2: '%region%'
  204. line3: '%player%'
  205. line4:
  206. rightClickPlayer:
  207. - 'areashop buy %region%'
  208. leftClickPlayer:
  209. - 'areashop info region %region%'
  210. shiftRightClickPlayer:
  211. - 'areashop sell %region%'
  212. ## Option to run certain commands when a region event happens.
  213. ## Commands at a 'before' section will execute before the region details are changed in the AreaShop system
  214. ## and before any other actions occurred (setting the owner, saving/loading schematics, etc.),
  215. ## the 'after' commands will be run when all changes are done.
  216. ## After 'before' or 'after' you can add a list of commands (see example at the created event).
  217. eventCommandProfiles:
  218. default:
  219. created:
  220. before:
  221. after:
  222. ## - "say An AreaShop region has been created: %region%"
  223. deleted:
  224. before:
  225. after:
  226. rented:
  227. before:
  228. after:
  229. extended:
  230. before:
  231. after:
  232. unrented:
  233. before:
  234. after:
  235. bought:
  236. before:
  237. after:
  238. sold:
  239. before:
  240. after:
  241. resell:
  242. before:
  243. after:
  244. buildsite:
  245. created:
  246. before:
  247. after:
  248. deleted:
  249. before:
  250. after:
  251. rented:
  252. before:
  253. after:
  254. - "as setowner %player% %region%lower"
  255. extended:
  256. before:
  257. after:
  258. - "as setowner %player% %region%lower"
  259. unrented:
  260. before:
  261. after:
  262. - "as unrent %region%lower"
  263. bought:
  264. before:
  265. after:
  266. - "as setowner %player% %region%lower"
  267. sold:
  268. before:
  269. after:
  270. - "as sell %region%lower"
  271. resell:
  272. before:
  273. after:
  274. ## For the following events you can specify if you want to restore or save the region to a schematic.
  275. ## After 'save:' or 'restore:' you enter the name of the file to restore from/to.
  276. ## If you want your regions all looking the same then you can leave out the %region% part to use the same schematic for all.
  277. ## The limit 'maximumBlocks' applies to restoring/saving schematics, be sure your regions are below the limit.
  278. ## More information can be found here: https://github.com/NLthijs48/AreaShop/wiki/Region-blocks-save-restore.
  279. schematicProfiles:
  280. default:
  281. created:
  282. save: '%type%-%region%'
  283. restore: ''
  284. deleted:
  285. save: ''
  286. restore: '%type%-%region%'
  287. rented:
  288. save: '%type%-%region%'
  289. restore: ''
  290. unrented:
  291. save: ''
  292. restore: '%type%-%region%'
  293. bought:
  294. save: '%type%-%region%'
  295. restore: ''
  296. sold:
  297. save: ''
  298. restore: '%type%-%region%'
  299. resell:
  300. save: ''
  301. restore: ''
  302. ## Flag profiles to specify which flags should be set on the WorldGuard regions when the region is in a certain state.
  303. ## All normal region flags as present in WorldGuard can be used, and also members, owners, priority and parent.
  304. ## Each line represents a WorldGuard setting that should be set to a certain value when the region is in the specified state.
  305. ## The members and owners flag normally take a list of UUID's separated by 'comma space', adding by name is possible with 'n:<name>'.
  306. ## You can add groups by using 'g:<groupname>', so in total you could use: '%uuid%, %friendsuuid%, g:vip, n:coolGuy'.
  307. ## For flags like 'entry' and 'exit' you can add group setting by using 'g:<scope>' behind it, <scope> is one of the following:
  308. ## members, non_members, owners, non_owners, all. Example, only members can enter the region:
  309. ## entry: 'deny g:non_members'
  310. ## Use '' for a flag to reset it.
  311. flagProfiles:
  312. default:
  313. forrent:
  314. priority: 10 # Set region priority higher than default regions (it must be higher than other regions at the same place)
  315. members: '' # Remove all members.
  316. greeting: '%lang:prefix%%lang:greeting-forrent%'
  317. rented:
  318. priority: 10
  319. members: '%uuid%, %friendsuuid%' # Add the renter and added friends as region members.
  320. greeting: '%lang:prefix%%lang:greeting-rented%'
  321. interact: 'deny g:non_members' # Only allow region members/owners to use things in the region (chests, crafting bench, etc)
  322. build: 'deny g:non_members' # Only allow region members/owners to build (change to 'deny' to disallow building)
  323. forsale:
  324. priority: 10
  325. members: ''
  326. greeting: '%lang:prefix%%lang:greeting-forsale%'
  327. sold:
  328. priority: 10
  329. members: '%uuid%, %friendsuuid%'
  330. greeting: '%lang:prefix%%lang:greeting-bought%'
  331. interact: 'deny g:non_members'
  332. build: 'deny g:non_members'
  333. resale:
  334. priority: 10
  335. members: '%uuid%, %friendsuuid%'
  336. greeting: '%lang:prefix%%lang:greeting-resale%'
  337. interact: 'deny g:non_members'
  338. build: 'deny g:non_members'
  339. ## Profiles that specify when players should get messages about their rental region that almost runs out.
  340. ## Time identifiers specify how much time before the rent is actually over the player should be notified.
  341. ## When warnPlayer is set to true a message will be send that is specified in the language file.
  342. ## All commands in the list below 'commands:' will execute together with the warning, all normal variables can be used.
  343. expirationWarningProfiles:
  344. default:
  345. "1 day":
  346. warnPlayer: true
  347. commands:
  348. ## - "say %region% is about to expire for %player%: %timeleft% left"
  349. "1 hour":
  350. warnPlayer: true
  351. commands:
  352. "5 minutes":
  353. warnPlayer: true
  354. commands:
  355.  
  356.  
  357. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  358. # │ ADVANCED AND DEBUG: Specific options to tweak the plugin precisely and check if it functions correctly. │
  359. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  360. ## Blacklist of region names that cannot be added to AreaShop for renting or buying. Regular expressions can be used, search
  361. ## for 'java regex pattern' to find documentation about how to use it.
  362. ## Example: Blocking all regions that have a name like 'house_1', 'house_2', etc. would be done with 'house_\d+'.
  363. ## The '\d' represents the numerical digits 0-9, the + symbol represents 1 or more times repeated.
  364. ## This means it would also block 'house_123' and 'house_000456'. It will not block 'ahouse_1' or 'house_'.
  365. blacklist:
  366. - '__global__' # Would give access to the complete world, and is therefore not a good idea to ever add.
  367. ## Minimum length of the numbers that are suffixed for region names generated by the '/as stack' command.
  368. ## When having this at 3 it will generate names like this: 'region-001', 'region-014', 'region-4567'.
  369. stackRegionNumberLength: 3
  370. # Allow/disallow adding players that did not visit the server yet as friend of a region.
  371. addFriendNotExistingPlayers: false
  372. ## Enable sending stats to http://mcstats.org/ (Metrics plugin).
  373. ## This information will give me an indication about how much the plugin is used and encourages me to continue development.
  374. sendStats: true
  375. ## If enabled it will check for updates when loading the plugin, it will never download files, it will only notify about it
  376. ## A message will be printed in the console when an update is available and OPs will be notified when joining the server.
  377. checkForUpdates: true
  378. ## Use colors when sending messages to console and log files.
  379. useColorsInConsole: false
  380. ## Post error messages in the console when a command run from the config fails (from the 'runCommands' section for example).
  381. postCommandErrors: true
  382. ## Update all region flags and signs after starting the plugin (uses the 'regionsPerTick' setting from the 'update' section).
  383. ## This ensures that changes to the config are directly visible after restarting the server.
  384. updateRegionsOnStartup: true
  385. ## Enables / disables debug messages in the console, could be useful to figure out where errors come from.
  386. debug: false
  387. ## Version of the config, do not change!
  388. version: 2.2.2
  389.  
  390.  
  391. # ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
  392. # │ LIMITS AND TIMINGS: Options for limits and the frequencies for certain functions (be very careful with these!). │
  393. # └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
  394. ## Maximum number of blocks to save to or restore from a .schemetic.
  395. maximumBlocks: 5000000
  396. ## Maximum number of locations the teleport function should check to find a safe spot.
  397. maximumTries: 50000
  398.  
  399. ## Setting the 'delay' setting to 0 or lower will prevent the taks from runnning, if you don't use a certain feature you
  400. ## could switch the task off this way.
  401. ## The 'delay' settings are specified using a number followed by one of the identifiers as defined above in the config.
  402. ## The 'regionsPerTick' settings are to configure how fast something goes, lower value is less lag, but slower updates.
  403. ## There are 20 ticks in 1 second, so if you set 'regionPerTick' to 5, then 5*20=100 regions per second will be updated.
  404.  
  405. ## Timings for saving files that need saving.
  406. saving:
  407. delay: '10 minutes'
  408. regionsPerTick: 1
  409. ## Timings for rent expiration checking.
  410. expiration:
  411. delay: '59 seconds'
  412. regionsPerTick: 5
  413. ## Timings for expiration warning to online players.
  414. expireWarning:
  415. delay: '5 minutes'
  416. regionsPerTick: 5
  417. ## Timings for updating signs and region flags ('/as reload' or after '/as groupadd' or '/as groupdel').
  418. update:
  419. regionsPerTick: 5
  420. ## Time between checking if any regions need to be unrented because the player was not online for the specified time period.
  421. inactive:
  422. delay: '15 minutes'
  423. regionsPerTick: 5
  424. ## Timings for the periodic updating of signs (for timeleft tags etc).
  425. signs:
  426. delay: '3600 seconds'
  427. regionsPerTick: 3
  428. ## Number of regions per tick to check when a player joins to see if his name changed for regions he owned (updates the regions when changed).
  429. nameupdate:
  430. regionsPerTick: 10
  431. ## Timings for adding regions to AreaShop ('/as stack').
  432. adding:
  433. regionsPerTick: 2
Advertisement
Add Comment
Please, Sign In to add comment