Advertisement
Guest User

ShopGUI

a guest
Sep 6th, 2016
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 11.36 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/)
  19. economyType: VAULT
  20. #Name of the main GUI
  21. shopMenuName: "&8&lObchod/Shop &4&lBETA"
  22. #Size of the main GUI, valid values are 9, 18, 27, 36, 45 and 54
  23. shopMenuSize: 36
  24. #Define whether selling all with middle mouse button is enabled
  25. enableSellAll: false
  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: false
  30. #Define whether sell all button in SellGUI is enabled (enableSellGUI has to be enabled too)
  31. enableSellGUISellAll: false
  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 which items stack size should be capped at 16 inside the amount selection GUI so players can't buy eg. oversized ender pearl stacks
  57. #Format is same as for regular items in shops.yml
  58. itemStackSizeCappedAt:
  59.   1:
  60.     material: ENDER_PEARL
  61.     size: 16
  62.   2:
  63.     material: SNOW_BALL
  64.     size: 16
  65.   3:
  66.     material: SIGN
  67.     size: 16
  68.   4:
  69.     material: EGG
  70.     size: 16
  71.   5:
  72.     material: BUCKET
  73.     size: 1
  74. #Choose what gamemodes will prevent players from accessing shops. Valid values: ADVENTURE, CREATIVE, SPECTATOR, SURVIVAL
  75. disableShopsInGamemodes:
  76.  - ADVENTURE
  77.   - CREATIVE
  78.   - SPECTATOR
  79. #Choose in which worlds players won't be able to access the shop. Same list format as disableShopsInGamemodes
  80. disableShopsInWorlds: []
  81.  
  82. #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
  83. displayPriceModifiersInPercents: true
  84.  
  85. #Choose whether the world-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  86. disableSudoWorldPermissionCheck: false
  87.  
  88. #Choose whether the shop-specific permission to access shops should be omitted when player has a shop opened with /shop [player] [shop name]
  89. disableSudoShopPermissionCheck: false
  90.  
  91. #Format of item lores in shops, %buy% will be replaced with the buy price and %sell% with sell price
  92. shopItemLoreFormat:
  93.  #This lore will be applied to items
  94.   item:
  95.     - "&7Nakupni cena: &c%buy%$"
  96.     - "&7Prodejni cena: &a%sell%$"
  97.     #- "&9Kliknete koleckem na mysi, pro prodani vsech itemu"
  98.   #This lore will be applied to items in the buy GUI (when enableBuyGUI is set to true)
  99.   itemBuyGUI:
  100.     - "&7Nakupni cena: &c%buy%$"  
  101.   #This lore will be applied to items in the sell GUI (when enableSellGUI is set to true)
  102.   itemSellGUI:
  103.     - "&7Prodejni cena: &a%sell%$"
  104.   #This lore will be applied to the sell all button in the sell GUI (when enableSellGUI and enableSellGUISellAll are set to true)
  105.   itemSellGUISellAll:
  106.     - "&7Prodat vse: &a%sell%$"
  107.   #This one to permissions
  108.   permission:
  109.     - "&7Nakupni cena: &c%buy%$"
  110.   #And this one to enchantments
  111.   enchantment:
  112.     - "&7Nakupni cena: &c%buy%$"
  113.   #And the last one to commands
  114.   command:
  115.     - "&7Nakupni cena: &c%buy%$"
  116.  
  117. #Logging settings
  118. log:
  119.  #Define whether transactions will be logged to the console/main server log
  120.   toConsole: false
  121.   #Define whether transactions will be logged to a separate log
  122.   toFile: true
  123.   #Date format of transactions (http://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html)
  124.   formatDate: "yyyy/MM/dd HH:mm:ss"
  125.   #Log message for bought items
  126.   formatBuy: "%player% koupil %amount% x %item% za %price%$ z %shop% obchodu"
  127.   #Log message for sold items
  128.   formatSell: "%player% prodal %amount% x %item% za %price%$ z %shop% obchodu"
  129.   #Log message for sold all items
  130.   formatSellAll: "%player% prodal vse %amount% x %item% za %price%$ z %shop% obchodu"
  131.  
  132. buttons:
  133.  #"Go back button"
  134.   goBack:
  135.     item:
  136.      #Material name, full list can be found here: http://wiki.brcdev.net/Materials
  137.       material: NETHER_STAR
  138.       #Amount of the item
  139.       amount: 1
  140.       #(optional) Data value, for example 1 for WOOD:1 means spruce wood planks
  141.       damage: 0
  142.       #(optional) Custom name
  143.       name: "&cZpet do kategorii"
  144.       #(optional) Lore, can contain multiple lines
  145.       lore:
  146.         - "&aKliknete zde pro navrat do hlavni menu"
  147.     #Slot in each shop's GUI
  148.     slot: 49
  149.   #"Previous page" button
  150.   previousPage:
  151.     item:
  152.       material: PAPER
  153.       quantity: 1
  154.       name: "&e&lPredchozi stranka"
  155.     slot: 45
  156.   #"Next page" button
  157.   nextPage:
  158.     item:
  159.       material: PAPER
  160.       quantity: 1
  161.       name: "&e&lDalsi stranka"
  162.     slot: 54
  163. #Elements of the buy/sell GUI
  164. amountSelectionGUI:
  165.  #Size of the GUI, valid values are 9, 18, 27, 36, 45 and 54
  166.   size: 54
  167.   #Slot of the item being bought/sold
  168.   itemSlot: 22
  169.   #Buttons
  170.   buttons:
  171.    #"Set to 1" button
  172.     set1:
  173.       item:
  174.         material: STAINED_GLASS_PANE
  175.         quantity: 1
  176.         damage: 14
  177.         name: "&c&lNastavit na 1"
  178.       slot: 18
  179.     #"Remove 10" button
  180.     remove10:
  181.       item:
  182.         material: STAINED_GLASS_PANE
  183.         quantity: 10
  184.         damage: 14
  185.         name: "&c&lOdebrat 10"
  186.       slot: 19
  187.     #"Remove 1" button
  188.     remove1:
  189.       item:
  190.         material: STAINED_GLASS_PANE
  191.         quantity: 1
  192.         damage: 14
  193.         name: "&c&lOdebrat 1"
  194.       slot: 20
  195.     #"Add 1" button
  196.     add1:
  197.       item:
  198.         material: STAINED_GLASS_PANE
  199.         quantity: 1
  200.         damage: 5
  201.         name: "&a&lPridat 1"
  202.       slot: 24
  203.     #"Add 10" button
  204.     add10:
  205.       item:
  206.         material: STAINED_GLASS_PANE
  207.         quantity: 10
  208.         damage: 5
  209.         name: "&a&lPridat 10"
  210.       slot: 25
  211.     #"Set to 16" button
  212.     set16:
  213.       item:
  214.         material: STAINED_GLASS_PANE
  215.         quantity: 16
  216.         damage: 5
  217.         name: "&a&lNastavit na 16"
  218.       slot: 26
  219.     #"Set to 64" button
  220.     set64:
  221.       item:
  222.         material: STAINED_GLASS_PANE
  223.         quantity: 64
  224.         damage: 5
  225.         name: "&a&lNastavit na 64"
  226.       slot: 26
  227.     #"Confirm" button
  228.     confirm:
  229.       item:
  230.         material: STAINED_GLASS
  231.         quantity: 1
  232.         damage: 5
  233.         name: "&a&lPotvrdit"  
  234.       slot: 39
  235.     #"Sell all" button
  236.     sellAll:
  237.       item:
  238.         material: STAINED_GLASS
  239.         quantity: 1
  240.         damage: 5
  241.         name: "&a&lProdat vse"      
  242.       slot: 40
  243.     #"Cancel" button      
  244.     cancel:
  245.       item:
  246.         material: STAINED_GLASS
  247.         quantity: 1
  248.         damage: 14
  249.         name: "&c&lZrusit"  
  250.       slot: 41
  251.      
  252. shopMenuItems:
  253.  #Has to be unique, value doesn't matter
  254.   1:
  255.     item:
  256.       material: 129
  257.       quantity: 1
  258.       name: "&3&lBloky"
  259.     shop: "bloky"
  260.     slot: 0
  261.   2:
  262.     item:
  263.       material: INK_SACK
  264.       quantity: 1
  265.       damage: 1
  266.       name: "&3&lBarviva"
  267.     shop: "barviva"
  268.     slot: 1
  269.   3:
  270.     item:
  271.       material: 349
  272.       quantity: 1
  273.       damage: 2
  274.       name: "&a&lJidlo"
  275.       lore:
  276.        - "&7Ziskej nejake vynikajici jidlo!"
  277.     shop: "jidlo"
  278.     slot: 2
  279.   4:
  280.     item:
  281.       material: 264
  282.       quantity: 1
  283.       damage: 0
  284.       name: "&a&lVzacnosti"
  285.     shop: "vzacnosti"
  286.     slot: 9
  287.   5:
  288.     item:
  289.       material: 35
  290.       quantity: 1
  291.       damage: 14
  292.       name: "&a&lBarevne vlny"
  293.     shop: "vlny"
  294.     slot: 3
  295.   6:
  296.     item:
  297.       material: 95
  298.       quantity: 1
  299.       damage: 14
  300.       name: "&a&lBarevne skla"
  301.     shop: "skla"
  302.     slot: 4
  303.   7:
  304.     item:
  305.       material: 159
  306.       quantity: 1
  307.       damage: 14
  308.       name: "&a&lClay"
  309.     shop: "clay"
  310.     slot: 5
  311.   8:
  312.     item:
  313.       material: 278
  314.       quantity: 1
  315.       damage: 0
  316.       name: "&a&lNastroje"
  317.     shop: "nastroje"
  318.     slot: 7
  319.   9:
  320.     item:
  321.       material: 358
  322.       quantity: 1
  323.       damage: 0
  324.       name: "&a&lOstatni"
  325.     shop: "ostatni"
  326.     slot: 8
  327.   10:
  328.     item:
  329.       material: MONSTER_EGG
  330.       quantity: 1
  331.       mob: Squid
  332.       name: "&a&lVajicka"
  333.     shop: "vajicka"
  334.     slot: 17
  335.   11:
  336.     item:
  337.       material: 2259
  338.       quantity: 1
  339.       damage: 0
  340.       name: "&a&lMusic disky"
  341.     shop: "music"
  342.     slot: 31
  343.   12:
  344.     item:
  345.       material: POTION
  346.       amount: 1
  347.       damage: 16417
  348.       name: "&a&lOstatni"
  349.     shop: "potions"
  350.     slot: 27
  351.   13:
  352.     item:
  353.       material: SPLASH_POTION
  354.       quantity: 1
  355.       potion:
  356.         type: STRENGTH
  357.         level: 1
  358.         extended: true
  359.       name: "&a&lOstatni"
  360.     shop: "potions-splash"
  361.     slot: 35
  362.   14:
  363.     item:
  364.       material: TIPPED_ARROW
  365.       quantity: 1
  366.       potion:
  367.         type: STRENGTH
  368.       name: "&a&lOstatni"
  369.     shop: "sip"
  370.     slot: 13
  371.   15:
  372.     item:
  373.       material: 311
  374.       quantity: 1
  375.       damage: 0
  376.       name: "&a&lOstatni"
  377.     shop: "ostatni"
  378.     slot: 6
  379.   16:
  380.     item:
  381.       material: BANNER
  382.       quantity: 1
  383.       color: BLACK
  384.       patterns:
  385.         1:
  386.           type: STRIPE_BOTTOM
  387.           color: WHITE
  388.         2:
  389.           type: STRIPE_MIDDLE
  390.           color: WHITE
  391.         3:
  392.           type: STRIPE_TOP
  393.           color: WHITE
  394.     shop: "sip"
  395.     slot: 26
  396.   17:
  397.     item:
  398.       material: SKULL_ITEM
  399.       quantity: 1
  400.       damage: 3
  401.       skullOwner: KillerZombie
  402.       name: "&a&lHlavy"
  403.     shop: "hlavy"
  404.     slot: 18
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement