Advertisement
Guest User

Config.yml

a guest
Jan 18th, 2020
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.87 KB | None | 0 0
  1. database:
  2. # Database backend type, can be set to mysql or sqlite
  3. type: sqlite
  4. # MySQL database host
  5. mySQLHost: localhost
  6. # MySQL connection port number
  7. mySQLPort: 3306
  8. # MySQL database name
  9. mySQLDatabase: db
  10. # MySQL database user
  11. mySQLUser: root
  12. # MySQL user's password
  13. mySQLPassword: ""
  14. # MySQL table names
  15. tableNames:
  16. players: "players"
  17.  
  18. # Type of the economy which will handle all transactions.
  19. # Supported economies:
  20. # - EXP (default Minecraft experience points)
  21. # - VAULT (requires http://dev.bukkit.org/bukkit-plugins/vault/)
  22. # - MYSQL_TOKENS (requires https://www.spigotmc.org/resources/mysql-tokens.7535/)
  23. # - PLAYER_POINTS (requires https://dev.bukkit.org/projects/playerpoints)
  24. # - TOKEN_MANAGER (requires https://www.spigotmc.org/resources/tokenmanager.8610/)
  25. # - CUSTOM (requires custom implementation, see API section in plugin documentation)
  26. economyType: VAULT
  27. # Name of the main GUI
  28. shopMenuName: "&5Shop"
  29. # Size of the main GUI, valid values are 9, 18, 27, 36, 45 and 54
  30. shopMenuSize: 9
  31. # Choose an item to fill the empty slots of menu with
  32. shopMenuFillItem:
  33. material: BLACK_STAINED_GLASS_PANE
  34. damage: 15
  35. name: " "
  36. # Define whether selling all with middle mouse button is enabled
  37. enableSellAll: true
  38. # Define whether the buy GUI with option to select quantity is enabled
  39. enableBuyGUI: true
  40. # Define whether the sell GUI with option to select quantity is enabled
  41. enableSellGUI: true
  42. # Define whether sell all button in SellGUI is enabled (enableSellGUI has to be enabled too)
  43. enableSellGUISellAll: true
  44. # Define whether after closing/buying/selling the shop GUI should be opened again
  45. returnToShop: true
  46. # Define whether the quick buy/sell option should be enabled (amount selection gui will stay open until player closes it)
  47. quickBuySell: false
  48. # Define whether lines containing the %buy% placeholder should be hidden for unbuyable items
  49. hideBuyPriceForUnbuyable: true
  50. # Define whether lines containing the %sell% placeholder should be hidden for unsellable items
  51. hideSellPriceForUnsellable: true
  52. # Define whether buy and sell buttons should be inverted (false - LMB buy, RMB sell / true - LMB sell, RMB buy)
  53. invertBuySell: false
  54. # Maximum amount of enchantments players can add to an item, set to -1 for no limit
  55. maxEnchantments: 3
  56. # Choose whether players should be able to buy enchantments only 1 level higher than current (eg. player has sword with Sharpness 1, they could buy only Sharpness 2)
  57. limitEnchantmentLevelDiff: false
  58. # Define whether the amount selection double click bug fix should be enabled
  59. enableAmountSelectionFix: true
  60. # Define whether players should be able to use sell all option to sell all their items (allowAllSellAllStackSizes = true) or only amount multiplied by the original stack size of the shop item (allowAllSellAllStackSizes = false)
  61. allowAllSellAllStackSizes: false
  62. # Define whether all prices should be rounded up, down, to the nearest whole number or not rounded (valid values are UP, DOWN, NEAREST and NONE)
  63. roundPrices: none
  64. # Define whether main menu (/shop command) should be disabled. The only way to access shops will be to use /shop <id> when you disable it.
  65. disableMainMenu: false
  66. # Choose if different messages should be sent when someone buy/sell items for $0 (MSG_ITEM_BOUGHTFREE, MSG_ITEM_SOLDFREE, MSG_ITEM_SOLDALLFREE)
  67. useDifferentMessagesForFreeItems: true
  68. # Choose if item names should have first letters of their names capitalized, for instance nether brick would become Nether Brick
  69. capitalizeItemNames: true
  70. # Choose the type of price modifiers. (BOTH (permission modifiers have higher priority than command-ones), COMMAND, PERMISSION)
  71. priceModifiersType: BOTH
  72. # Choose if the gui shall be closed after using the Sell All feature
  73. closeGuiAfterSellAll: false
  74. # Choose if bulk buy/sell guis should be opened immediately after clicking an item (enableBuyGUI and enableSellGUI have to be enabled as well and players need the bulk buy/sell permissions)
  75. openBulkGuiImmediately: false
  76. # Define whether max stack sizes will be native to minecraft defaults (true - Minecraft default stack sizes will be enforced)
  77. enforceDefaultStackSize: false
  78. # Choose which items stack size should be capped at 16 inside the amount selection GUI so players can't buy eg. oversized ender pearl stacks
  79. # Format is same as for regular items in shops.yml
  80. itemStackSizeCappedAt:
  81. 1:
  82. material: ENDER_PEARL
  83. size: 16
  84. 2:
  85. material: SNOW_BALL
  86. size: 16
  87. 3:
  88. material: SIGN
  89. size: 16
  90. 4:
  91. material: EGG
  92. size: 16
  93. 5:
  94. material: BUCKET
  95. size: 1
  96. # Choose what gamemodes will prevent players from accessing shops. Valid values: ADVENTURE, CREATIVE, SPECTATOR, SURVIVAL
  97. disableShopsInGamemodes:
  98. - ADVENTURE
  99. - CREATIVE
  100. - SPECTATOR
  101. # Choose in which worlds players won't be able to access the shop. Same list format as disableShopsInGamemodes
  102. disableShopsInWorlds: []
  103.  
  104. # Choose whether price modifiers should be displayed in percents instead of decimals (eg. 10% instead of 0.10), remember you will still have to use the decimal way in commands
  105. displayPriceModifiersInPercents: true
  106.  
  107. # Choose whether the world-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  108. disableSudoWorldPermissionCheck: false
  109.  
  110. # Choose whether the shop-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  111. disableSudoShopPermissionCheck: false
  112.  
  113. # Choose whether free items (with sell price of $0) should be excluded from being sold using /sell hand and /sell all
  114. sellHandAllExcludeFreeItems: true
  115.  
  116. # Choose sounds for certain GUI actions. Full list is available at https://wiki.brcdev.net/Sounds
  117. sounds:
  118. MAIN_MENU_OPEN: CLICK
  119. SHOP_OPEN: CLICK
  120. SHOP_SELECT_ITEM: CLICK
  121. SHOP_SWITCH_PAGE: CLICK
  122. SELL_ITEM: ORB_PICKUP
  123. SELL_ALL_ITEM: ORB_PICKUP
  124. BUY_ITEM: ORB_PICKUP
  125.  
  126. # Choose predefined settings for all items (will be overriden when set explicitly for an item in shops.yml)
  127. defaultItemSettings:
  128. # Choose whether item meta (name, lore etc.) should be compared when players attempt to sell an item
  129. compareMeta: false
  130. # Choose whether item meta should be removed from an item when it's purchased by a player from the shop
  131. stripItemMeta: false
  132.  
  133. # Format of item lores in shops, %buy% will be replaced with the buy price and %sell% with sell price
  134. shopItemLoreFormat:
  135. # This lore will be applied to items
  136. item:
  137. - "&7Buy price: &c%buy%$"
  138. - "&7Sell price: &a%sell%$"
  139. - "&9Click with MMB to sell all"
  140. # This lore will be applied to items in the buy GUI (when enableBuyGUI is set to true)
  141. itemBuyGUI:
  142. - "&7Buy price: &c%buy%$"
  143. # This lore will be applied to items in the sell GUI (when enableSellGUI is set to true)
  144. itemSellGUI:
  145. - "&7Sell price: &a%sell%$"
  146. # This lore will be applied to the sell all button in the sell GUI (when enableSellGUI and enableSellGUISellAll are set to true)
  147. itemSellGUISellAll:
  148. - "&7Sell all for: &a%sell%$"
  149. # This one to permissions
  150. permission:
  151. - "&7Buy price: &c%buy%$"
  152. # And this one to enchantments
  153. enchantment:
  154. - "&7Buy price: &c%buy%$"
  155. # And the last one to commands
  156. command:
  157. - "&7Buy price: &c%buy%$"
  158.  
  159. # Logging settings
  160. log:
  161. # Define whether transactions will be logged to the console/main server log
  162. toConsole: true
  163. # Define whether transactions will be logged to a separate log
  164. toFile: false
  165. # Date format of transactions (http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
  166. formatDate: "yyyy/MM/dd HH:mm:ss"
  167. # Log message for bought items
  168. formatBuy: "%player% bought %amount% x %item% for %price%$ from %shop% shop"
  169. # Log message for sold items
  170. formatSell: "%player% sold %amount% x %item% for %price%$ to %shop% shop"
  171. # Log message for sold all items
  172. formatSellAll: "%player% sold all %amount% x %item% for %price%$ to %shop% shop"
  173.  
  174. # Sell hand command settings
  175. sellHand:
  176. # When set to true, players will be able to sell any quantity of the item (the price will be calculated from the base price)
  177. allowAllQuantites: true
  178. # When set to true, /sell hand will work same way as /sell handall does
  179. sellsAllItems: false
  180.  
  181. # Sell all command settings
  182. sellAll:
  183. # When set to true, players will get a detailed summary with prices of each item stack sold
  184. detailedSummary: false
  185. # Choose if maximal sell price of an item across all shops should be chosen in sell all. Enabling this may affect sell command performance when having lots of shops/items
  186. findMaxSellPrice: true
  187.  
  188. buttons:
  189. # "Go back button"
  190. goBack:
  191. item:
  192. # Material name, full list can be found here: http://wiki.brcdev.net/Materials
  193. material: BARRIER
  194. # Amount of the item
  195. amount: 1
  196. # (optional) Data value, for example 1 for WOOD:1 means spruce wood planks
  197. damage: 0
  198. # (optional) Custom name
  199. name: "&c&lGo back to categories"
  200. # (optional) Lore, can contain multiple lines
  201. lore:
  202. - "&7Click here to return"
  203. - "&7to the main menu"
  204. # Slot in each shop's GUI
  205. slot: 49
  206. # "Previous page" button
  207. previousPage:
  208. item:
  209. material: PAPER
  210. quantity: 1
  211. name: "&e&lPrevious page"
  212. slot: 48
  213. # "Next page" button
  214. nextPage:
  215. item:
  216. material: PAPER
  217. quantity: 1
  218. name: "&e&lNext page"
  219. slot: 50
  220.  
  221. # Elements of the bulk buy GUI
  222. amountSelectionGUIBulkBuy:
  223. # Size of the GUI, valid values are 9, 18, 27, 36, 45 and 54
  224. size: 18
  225. # Choose if buttons type should be replaced with the bought item's type
  226. replaceButtonsType: true
  227. # Buttons
  228. buttons:
  229. # "Buy 1 stack" button
  230. buy1:
  231. item:
  232. material: CHEST
  233. quantity: 1
  234. name: "&aBuy 1 stack"
  235. lore:
  236. - "&7Price: &c%buy%$"
  237. # Value indicated the amount of stacks
  238. value: 1
  239. slot: 0
  240. # "Buy 2 stacks" button
  241. buy2:
  242. item:
  243. material: CHEST
  244. quantity: 2
  245. name: "&aBuy 2 stacks"
  246. lore:
  247. - "&7Price: &c%buy%$"
  248. value: 2
  249. slot: 1
  250. # "Buy 3 stacks" button
  251. buy3:
  252. item:
  253. material: CHEST
  254. quantity: 3
  255. name: "&aBuy 3 stacks"
  256. lore:
  257. - "&7Price: &c%buy%$"
  258. value: 3
  259. slot: 2
  260. # "Buy 4 stacks" button
  261. buy4:
  262. item:
  263. material: CHEST
  264. quantity: 4
  265. name: "&aBuy 4 stacks"
  266. lore:
  267. - "&7Price: &c%buy%$"
  268. value: 4
  269. slot: 3
  270. # "Buy 5 stacks" button
  271. buy5:
  272. item:
  273. material: CHEST
  274. quantity: 5
  275. name: "&aBuy 5 stacks"
  276. lore:
  277. - "&7Price: &c%buy%$"
  278. value: 5
  279. slot: 4
  280. # "Buy 6 stacks" button
  281. buy6:
  282. item:
  283. material: CHEST
  284. quantity: 6
  285. name: "&aBuy 6 stacks"
  286. lore:
  287. - "&7Price: &c%buy%$"
  288. value: 6
  289. slot: 5
  290. # "Buy 7 stacks" button
  291. buy7:
  292. item:
  293. material: CHEST
  294. quantity: 7
  295. name: "&aBuy 7 stacks"
  296. lore:
  297. - "&7Price: &c%buy%$"
  298. value: 7
  299. slot: 6
  300. # "Buy 8 stacks" button
  301. buy8:
  302. item:
  303. material: CHEST
  304. quantity: 8
  305. name: "&aBuy 8 stacks"
  306. lore:
  307. - "&7Price: &c%buy%$"
  308. value: 8
  309. slot: 7
  310. # "Buy 9 stacks" button
  311. buy9:
  312. item:
  313. material: CHEST
  314. quantity: 9
  315. name: "&aBuy 9 stacks"
  316. lore:
  317. - "&7Price: &c%buy%$"
  318. value: 9
  319. slot: 8
  320. # "Cancel" button
  321. cancel:
  322. item:
  323. material: STAINED_GLASS
  324. quantity: 1
  325. damage: 14
  326. name: "&c&lCancel"
  327. slot: 13
  328.  
  329. # Elements of the bulk buy GUI
  330. amountSelectionGUIBulkSell:
  331. # Size of the GUI, valid values are 9, 18, 27, 36, 45 and 54
  332. size: 18
  333. # Choose if buttons type should be replaced with the sold item's type
  334. replaceButtonsType: true
  335. # Buttons
  336. buttons:
  337. # "Sell 1 stack" button
  338. sell1:
  339. item:
  340. material: CHEST
  341. quantity: 1
  342. name: "&aSell 1 stack"
  343. lore:
  344. - "&7Price: &c%sell%$"
  345. # Value indicated the amount of stacks
  346. value: 1
  347. slot: 0
  348. # "Sell 2 stacks" button
  349. sell2:
  350. item:
  351. material: CHEST
  352. quantity: 2
  353. name: "&aSell 2 stacks"
  354. lore:
  355. - "&7Price: &c%sell%$"
  356. value: 2
  357. slot: 1
  358. # "Sell 3 stacks" button
  359. sell3:
  360. item:
  361. material: CHEST
  362. quantity: 3
  363. name: "&aSell 3 stacks"
  364. lore:
  365. - "&7Price: &c%sell%$"
  366. value: 3
  367. slot: 2
  368. # "Sell 4 stacks" button
  369. sell4:
  370. item:
  371. material: CHEST
  372. quantity: 4
  373. name: "&aSell 4 stacks"
  374. lore:
  375. - "&7Price: &c%sell%$"
  376. value: 4
  377. slot: 3
  378. # "Sell 5 stacks" button
  379. sell5:
  380. item:
  381. material: CHEST
  382. quantity: 5
  383. name: "&aSell 5 stacks"
  384. lore:
  385. - "&7Price: &c%sell%$"
  386. value: 5
  387. slot: 4
  388. # "Sell 6 stacks" button
  389. sell6:
  390. item:
  391. material: CHEST
  392. quantity: 6
  393. name: "&aSell 6 stacks"
  394. lore:
  395. - "&7Price: &c%sell%$"
  396. value: 6
  397. slot: 5
  398. # "Sell 7 stacks" button
  399. sell7:
  400. item:
  401. material: CHEST
  402. quantity: 7
  403. name: "&aSell 7 stacks"
  404. lore:
  405. - "&7Price: &c%sell%$"
  406. value: 7
  407. slot: 6
  408. # "Sell 8 stacks" button
  409. sell8:
  410. item:
  411. material: CHEST
  412. quantity: 8
  413. name: "&aSell 8 stacks"
  414. lore:
  415. - "&7Price: &c%sell%$"
  416. value: 8
  417. slot: 7
  418. # "Sell 9 stacks" button
  419. sell9:
  420. item:
  421. material: CHEST
  422. quantity: 9
  423. name: "&aSell 9 stacks"
  424. lore:
  425. - "&7Price: &c%sell%$"
  426. value: 9
  427. slot: 8
  428. # "Cancel" button
  429. cancel:
  430. item:
  431. material: STAINED_GLASS
  432. quantity: 1
  433. damage: 14
  434. name: "&c&lCancel"
  435. slot: 13
  436.  
  437. # Elements of the regular buy/sell GUI
  438. amountSelectionGUI:
  439. # Size of the GUI, valid values are 9, 18, 27, 36, 45 and 54
  440. size: 54
  441. # Slot of the item being bought/sold
  442. itemSlot: 22
  443. # Buttons
  444. buttons:
  445. # "Set to 1" button
  446. set1:
  447. item:
  448. material: STAINED_GLASS_PANE
  449. quantity: 1
  450. damage: 14
  451. name: "&c&lSet to 1"
  452. slot: 18
  453. # "Remove 10" button
  454. remove10:
  455. item:
  456. material: STAINED_GLASS_PANE
  457. quantity: 10
  458. damage: 14
  459. name: "&c&lRemove 10"
  460. slot: 19
  461. # "Remove 1" button
  462. remove1:
  463. item:
  464. material: STAINED_GLASS_PANE
  465. quantity: 1
  466. damage: 14
  467. name: "&c&lRemove 1"
  468. slot: 20
  469. # "Add 1" button
  470. add1:
  471. item:
  472. material: STAINED_GLASS_PANE
  473. quantity: 1
  474. damage: 5
  475. name: "&a&lAdd 1"
  476. slot: 24
  477. # "Add 10" button
  478. add10:
  479. item:
  480. material: STAINED_GLASS_PANE
  481. quantity: 10
  482. damage: 5
  483. name: "&a&lAdd 10"
  484. slot: 25
  485. # "Set to 16" button
  486. set16:
  487. item:
  488. material: STAINED_GLASS_PANE
  489. quantity: 16
  490. damage: 5
  491. name: "&a&lSet to 16"
  492. slot: 26
  493. # "Set to 64" button
  494. set64:
  495. item:
  496. material: STAINED_GLASS_PANE
  497. quantity: 64
  498. damage: 5
  499. name: "&a&lSet to 64"
  500. slot: 26
  501. # "Confirm" button
  502. confirm:
  503. item:
  504. material: STAINED_GLASS
  505. quantity: 1
  506. damage: 5
  507. name: "&a&lConfirm"
  508. slot: 39
  509. # "Sell all" button
  510. sellAll:
  511. item:
  512. material: STAINED_GLASS
  513. quantity: 1
  514. damage: 5
  515. name: "&a&lSell all"
  516. slot: 40
  517. # "Buy more" button
  518. buyMore:
  519. item:
  520. material: STAINED_GLASS
  521. quantity: 64
  522. damage: 5
  523. name: "&a&lBuy more"
  524. slot: 49
  525. # "Sell more" button
  526. sellMore:
  527. item:
  528. material: STAINED_GLASS
  529. quantity: 64
  530. damage: 5
  531. name: "&a&lSell more"
  532. slot: 49
  533. # "Cancel" button
  534. cancel:
  535. item:
  536. material: STAINED_GLASS
  537. quantity: 1
  538. damage: 14
  539. name: "&c&lCancel"
  540. slot: 41
  541.  
  542. shopMenuItems:
  543. 1:
  544. item:
  545. material: GRASS_BLOCK
  546. quantity: 1
  547. name: "&aBlocks"
  548. shop: "blocks"
  549. slot: 0
  550. 2:
  551. item:
  552. material: WHEAT
  553. quantity: 1
  554. name: "&eFarming"
  555. shop: "farming"
  556. slot: 1
  557. 3:
  558. item:
  559. material: BLAZE_ROD
  560. quantity: 1
  561. name: "&6Grinding"
  562. shop: "grind"
  563. slot: 2
  564. 4:
  565. item:
  566. material: REDSTONE
  567. quantity: 1
  568. name: "&cRedstone"
  569. shop: "redstone"
  570. slot: 3
  571. 6:
  572. item:
  573. material: SPAWNER
  574. quantity: 1
  575. name: "&7Spawners"
  576. shop: "spawner"
  577. slot: 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement