Advertisement
Guest User

Shopgui+ config

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