Advertisement
Guest User

Config ShopGuiPlus made by AlexandruSAN

a guest
Mar 21st, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.65 KB | None | 0 0
  1. database:
  2.  
  3.  #Database backend type, can be set to mysql or sqlite
  4.  
  5.   type: sqlite
  6.  
  7.   #MySQL database host
  8.  
  9.   mySQLHost: localhost
  10.  
  11.   #MySQL connection port number
  12.  
  13.   mySQLPort: 3306
  14.  
  15.   #MySQL database name
  16.  
  17.   mySQLDatabase: db
  18.  
  19.   #MySQL database user
  20.  
  21.   mySQLUser: root
  22.  
  23.   #MySQL user's password
  24.  
  25.   mySQLPassword: ""
  26.  
  27.   #MySQL table names
  28.  
  29.   tableNames:
  30.  
  31.     players: "players"
  32.  
  33.  
  34.  
  35. #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/)
  36.  
  37. economyType: VAULT
  38.  
  39. #Name of the main GUI
  40.  
  41. shopMenuName: "&0Server Shop"
  42.  
  43. #Size of the main GUI, valid values are 9, 18, 27, 36, 45 and 54
  44.  
  45. shopMenuSize: 45
  46.  
  47. #Define whether selling all with middle mouse button is enabled
  48.  
  49. enableSellAll: true
  50.  
  51. #Define whether the buy GUI with option to select quantity is enabled
  52.  
  53. enableBuyGUI: true
  54.  
  55. #Define whether the sell GUI with option to select quantity is enabled
  56.  
  57. enableSellGUI: true
  58.  
  59. #Define whether sell all button in SellGUI is enabled (enableSellGUI has to be enabled too)
  60.  
  61. enableSellGUISellAll: true
  62.  
  63. #Define whether after closing/buying/selling the shop GUI should be opened again
  64.  
  65. returnToShop: true
  66.  
  67. #Define whether the quick buy/sell option should be enabled (amount selection gui will stay open until player closes it)
  68.  
  69. quickBuySell: false
  70.  
  71. #Define whether lines containing the %buy% placeholder should be hidden for unbuyable items
  72.  
  73. hideBuyPriceForUnbuyable: true
  74.  
  75. #Define whether lines containing the %sell% placeholder should be hidden for unsellable items
  76.  
  77. hideSellPriceForUnsellable: true
  78.  
  79. #Define whether buy and sell buttons should be inverted (false - LMB buy, RMB sell / true - LMB sell, RMB buy)
  80.  
  81. invertBuySell: false
  82.  
  83. #Maximum amount of enchantments players can add to an item, set to -1 for no limit
  84.  
  85. maxEnchantments: 3
  86.  
  87. #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)
  88.  
  89. limitEnchantmentLevelDiff: false
  90.  
  91. #Define whether the amount selection double click bug fix should be enabled
  92.  
  93. enableAmountSelectionFix: true
  94.  
  95. #Define whether players should be able to use sell all option to sell all their items (allowAllSellAllstack-uriizes = true) or only amount multiplied by the original stack size of the shop item (allowAllSellAllstack-uriizes = false)
  96.  
  97. allowAllSellAllstack-uriizes: false
  98.  
  99. #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)
  100.  
  101. roundPrices: none
  102.  
  103. #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.
  104.  
  105. disableMainMenu: false
  106.  
  107. #Choose if different messages should be sent when someone buy/sell items for $0 (MSG_ITEM_BOUGHTFREE, MSG_ITEM_SOLDFREE, MSG_ITEM_SOLDALLFREE)
  108.  
  109. useDifferentMessagesForFreeItems: true
  110.  
  111. #Choose if item names should have first letters of their names capitalized, for instance nether brick would become Nether Brick
  112.  
  113. capitalizeItemNames: true
  114.  
  115. #Choose the type of price modifiers. (BOTH (permission modifiers have higher priority than command-ones), COMMAND, PERMISSION)
  116.  
  117. priceModifiersType: BOTH
  118.  
  119. #Choose if the gui shall be closed after using the Sell All feature
  120.  
  121. closeGuiAfterSellAll: false
  122.  
  123. #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)
  124.  
  125. openBulkGuiImmediately: false
  126.  
  127. #Choose which items stack size should be capped at 16 inside the amount selection GUI so players can't buy eg. oversized ender pearl stack-uri
  128.  
  129. #Format is same as for regular items in shops.yml
  130.  
  131. itemstack-uriizeCappedAt:
  132.  
  133.   1:
  134.  
  135.     material: ENDER_PEARL
  136.  
  137.     size: 16
  138.  
  139.   2:
  140.  
  141.     material: SNOW_BALL
  142.  
  143.     size: 16
  144.  
  145.   3:
  146.  
  147.     material: SIGN
  148.  
  149.     size: 16
  150.  
  151.   4:
  152.  
  153.     material: EGG
  154.  
  155.     size: 16
  156.  
  157.   5:
  158.  
  159.     material: BUCKET
  160.  
  161.     size: 1
  162.  
  163. #Choose what gamemodes will prevent players from accessing shops. Valid values: ADVENTURE, CREATIVE, SPECTATOR, SURVIVAL
  164.  
  165. disableShopsInGamemodes:
  166.  
  167.  - ADVENTURE
  168.  
  169.   - CREATIVE
  170.  
  171.   - SPECTATOR
  172.  
  173. #Choose in which worlds players won't be able to access the shop. Same list format as disableShopsInGamemodes
  174.  
  175. disableShopsInWorlds: []
  176.  
  177.  
  178.  
  179. #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
  180.  
  181. displayPriceModifiersInPercents: true
  182.  
  183.  
  184.  
  185. #Choose whether the world-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  186.  
  187. disableSudoWorldPermissionCheck: false
  188.  
  189.  
  190.  
  191. #Choose whether the shop-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  192.  
  193. disableSudoShopPermissionCheck: false
  194.  
  195.  
  196.  
  197. #Format of item lores in shops, %buy% will be replaced with the buy price and %sell% with sell price
  198.  
  199. shopItemLoreFormat:
  200.  
  201.   #This lore will be applied to items
  202.  
  203.   item:
  204.  
  205.     - "&f"
  206.  
  207.     - "&aCumpara cu: &f$%buy%"
  208.  
  209.     - "&aVinde cu: &f$%sell%"
  210.  
  211.     - "&f"
  212.  
  213.     - "&aCLICK-STANGA &8- &FCumperi."
  214.  
  215.     - "&aCLICK-DREAPTA &8- &fVinzi."
  216.  
  217.     - "&aCLICK PE ROTITA &8- &FVinzi tot."
  218.  
  219.   #This lore will be applied to items in the buy GUI (when enableBuyGUI is set to true)
  220.  
  221.   itemBuyGUI:
  222.  
  223.     - "&aCumpara cu: &f&n$%buy%"
  224.  
  225.   #This lore will be applied to items in the sell GUI (when enableSellGUI is set to true)
  226.  
  227.   itemSellGUI:
  228.  
  229.     - "&aVinde cu: &f&n$%sell%"
  230.  
  231.   #This lore will be applied to the sell all button in the sell GUI (when enableSellGUI and enableSellGUISellAll are set to true)
  232.  
  233.   itemSellGUISellAll:
  234.  
  235.     - "&aVinde totul pentru: &f&n$%sell%"
  236.  
  237.   #This one to permissions
  238.  
  239.   permission:
  240.  
  241.     - "&aUpgrade Pret: &f&n$%buy%"
  242.  
  243.   #And this one to enchantments
  244.  
  245.   enchantment:
  246.  
  247.     - "&aCumpara cu: &f&n$%buy%"
  248.  
  249.   #And the last one to commands
  250.  
  251.   command:
  252.  
  253.     - "&aCumpara cu: &f&n$%buy%"
  254.  
  255.  
  256.  
  257. #Logging settings
  258.  
  259. log:
  260.  
  261.  #Define whether transactions will be logged to the console/main server log
  262.  
  263.   toConsole: true
  264.  
  265.   #Define whether transactions will be logged to a separate log
  266.  
  267.   toFile: false
  268.  
  269.   #Date format of transactions (http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
  270.  
  271.   formatDate: "yyyy/MM/dd HH:mm:ss"
  272.  
  273.   #Log message for bought items
  274.  
  275.   formatBuy: "%player% bought %amount% x %item% for %price%$ from %shop% shop"
  276.  
  277.   #Log message for sold items
  278.  
  279.   formatSell: "%player% sold %amount% x %item% for %price%$ to %shop% shop"
  280.  
  281.   #Log message for sold all items
  282.  
  283.   formatSellAll: "%player% sold all %amount% x %item% for %price%$ to %shop% shop"
  284.  
  285.  
  286.  
  287. buttons:
  288.  
  289.  #"Go back button"
  290.  
  291.   goBack:
  292.  
  293.     item:
  294.  
  295.       #Material name, full list can be found here: http://wiki.brcdev.net/Materials
  296.  
  297.       material: 431
  298.  
  299.       #Amount of the item
  300.  
  301.       amount: 1
  302.  
  303.       #(optional) Data value, for example 1 for WOOD:1 means spruce wood planks
  304.  
  305.       damage: 0
  306.  
  307.       #(optional) Custom name
  308.  
  309.       name: "&aInapoi la categorii"
  310.  
  311.       #(optional) Lore, can contain multiple lines
  312.  
  313.       lore:
  314.  
  315.         - "&aApasa aici pentru a te intoarce la meniul precedent."
  316.  
  317.     #Slot in each shop's GUI
  318.  
  319.     slot: 49
  320.  
  321.   #"Previous page" button
  322.  
  323.   previousPage:
  324.  
  325.     item:
  326.  
  327.       material: 325
  328.  
  329.       quantity: 1
  330.  
  331.       name: "&aPagina anterioara"
  332.  
  333.     slot: 45
  334.  
  335.   #"Next page" button
  336.  
  337.   nextPage:
  338.  
  339.     item:
  340.  
  341.       material: 335
  342.  
  343.       quantity: 1
  344.  
  345.       name: "&aUrmatoarea pagina"
  346.  
  347.     slot: 53
  348.  
  349. #Elements of the bulk buy GUI
  350.  
  351. amountSelectionGUIBulkBuy:
  352.  
  353.  #Size of the GUI, valid values are 9, 18, 27, 36, 45 and 54
  354.  
  355.   size: 18
  356.  
  357.   #Choose if buttons type should be replaced with the bought item's type
  358.  
  359.   replaceButtonsType: true
  360.  
  361.   #Buttons
  362.  
  363.   buttons:
  364.  
  365.    #"Buy 1 stack" button
  366.  
  367.     buy1:
  368.  
  369.      #When no material is specified it will be the type of the item being bought
  370.  
  371.       item:
  372.  
  373.         quantity: 1
  374.  
  375.         name: "&aCumpara1 stack"
  376.  
  377.         lore:
  378.  
  379.           - "&aPret: &f%buy%$"
  380.  
  381.       #Value indicated the amount of stack-uri
  382.  
  383.       value: 1
  384.  
  385.       slot: 0
  386.  
  387.     #"Buy 2 stack-uri" button
  388.  
  389.     buy2:
  390.  
  391.       item:
  392.  
  393.         quantity: 2
  394.  
  395.         name: "&aCumpara2 stack-uri"
  396.  
  397.         lore:
  398.  
  399.           - "&aPret: &f%buy%$"
  400.  
  401.       value: 2
  402.  
  403.       slot: 1
  404.  
  405.     #"Buy 3 stack-uri" button
  406.  
  407.     buy3:
  408.  
  409.       item:
  410.  
  411.         quantity: 3
  412.  
  413.         name: "&aCumpara3 stack-uri"
  414.  
  415.         lore:
  416.  
  417.           - "&aPret: &f%buy%$"
  418.  
  419.       value: 3
  420.  
  421.       slot: 2
  422.  
  423.     #"Buy 4 stack-uri" button
  424.  
  425.     buy4:
  426.  
  427.       item:
  428.  
  429.         quantity: 4
  430.  
  431.         name: "&aCumpara4 stack-uri"
  432.  
  433.         lore:
  434.  
  435.           - "&aPret: &f%buy%$"
  436.  
  437.       value: 4
  438.  
  439.       slot: 3
  440.  
  441.     #"Buy 5 stack-uri" button
  442.  
  443.     buy5:
  444.  
  445.       item:
  446.  
  447.         quantity: 5
  448.  
  449.         name: "&aCumpara5 stack-uri"
  450.  
  451.         lore:
  452.  
  453.           - "&aPret: &f%buy%$"
  454.  
  455.       value: 5
  456.  
  457.       slot: 4
  458.  
  459.     #"Buy 6 stack-uri" button
  460.  
  461.     buy6:
  462.  
  463.       item:
  464.  
  465.         quantity: 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement