Guest User

Untitled

a guest
Mar 2nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.35 KB | None | 0 0
  1. #Plugin: ServerMarket
  2. #Author: Qifi (elving21)
  3. lang:
  4.   prefix: "&f[&aServerMarket&f] "
  5.   currency: "Coins"
  6.   noperm: "You dont have required permission! &c(%perm%)"
  7.   gui: "&cServer Market"
  8.   gui_returned: "&cReturned Items"
  9.   gui_dropbox: "&cDropbox"
  10.   buynot: "&a%buyer% &fhas bought an item from you for &a%amount% %currency%&f. &a(%item_name%)"
  11.   nomoney: "You dont have required amount of money (&a%money% %currency%&f) to buy a &a%item_name% &ffrom &a%seller%"
  12.   remove: "You have removed an item from makret! You can get it inside your returned items!"
  13.   gift: "An item has been added to your email box."
  14.   player_doesnt_exist: "Player &a%player% &fdoesnt exist."
  15.   gift_give: "You ve given an item to player &a%player%"
  16.   doesnotexist: "This item has been already bought by someone or removed."  
  17.   nospace: "You dont have a free space in your inventory! :("
  18.   get: "You have recieved an item from Returned Inventory!"
  19.   next: "&cNext Page"
  20.   previous: "&cPrevious Page"
  21.   priceminmax: "The price has to be in between &a%min% &fand &a%max%"
  22.   noitem: "You dont hold anyhting!"
  23.   world: "ServerMarket is disabled in this world!"
  24.   forbidenitem: "You cannot list this item!"
  25.   opremove: "You have force removed an item from market, it has been sent back to owner!"
  26.   reload: "Config has been reloaded."
  27.   max_listing_limit: "You are allowed to have only &c%max% Listings &flisted at once!"
  28.   search_by_player: "Player &a%player% &fhas no listings or does not exist."
  29.   listing_put_not: "You have added item &a%item_name% &fto the market for &a%money% %currency%"
  30.   drop_box: "Credited %money% %currency% of money."
  31.   item_get_message: "You have recieved new item!"
  32.   bed: "You cannot open ServerMarket while in bed."
  33.   broadcast_listing: "&fItem &f[&a&l%item_name% x%amount%&f] has been listed for &a&l%price% %currency%&f."
  34.   search_wrong_type: "Type '%err%' doesn exist. Avaliable search types &a%types%"
  35.   expiration_stages:
  36.     very_short: '&4Very short'
  37.     short: '&cShort'
  38.     medium: '&c6Medium'
  39.     long: '&aLong'
  40.     very_long: '&2Very long'
  41.   returned:
  42.     name: "&6Returned/Expired Items"
  43.     lore: "&fYou can get your expired%nl%&for returned items here"
  44.   marketback:
  45.     name: "&6Go back to the market"
  46.     lore: "&fClick here to go back to the market."
  47.   info:
  48.     name: "&cHow to create a Listing?"
  49.     lore: "&fYou can create a listing%nl%&fby writing a &a/market add <cost> &fwhile%nl%&fholding a desired item."
  50.   dropbox:
  51.     name: "&8DropBox"
  52.     lore: "&f"
  53.   market:
  54.  - ''
  55.   - '&fPrice: &a%price% %currency%'
  56.   - '&fSeller: &a%seller%'
  57.   - '&fExpires in &a%h%&fh &a%min%&fm'
  58.   book:
  59.     name: 'Market Receipt'
  60.     author: 'Server'
  61.     inside:
  62.    - '&0&lMarket Receipt:'
  63.     - ''
  64.     - '&0Item: &2%item_name%'
  65.     - '&0Price: &c%price%'
  66.     - '&0Return: &c%return%'
  67.     - '&0Buyer: &c%buyer%'
  68.     - '&0Date: &c%date%'
  69.   confirmitem:
  70.     name: "&aConfirmation"
  71.     lore:
  72.    - "&fClick here to confirm a purchase."
  73.   sort:
  74.     price_highest: '&fprice &chighest'
  75.     price_lowest: '&fprice &clowest'
  76.     time_oldest: '&ftime &coldest'
  77.     time_newest: '&ftime &cnewest'
  78.     sort_button_name: '&f&lSorting by'
  79.     sort_button_lore: "%type%%nl%&7<Click to change sorting>"
  80.   menu:
  81.  - '  &a&l[&fServer Market &a&l]'
  82.   - '/market &9- Opens up market.'
  83.   - '/market add <price> &9- Adds an item to the market.'
  84.   - '/market search <name/lore/player> <text> &9- Searches market.'
  85.   - '/market gift <player> &9- Sends an item to players mail box.'
  86.   - '/market returned &9- Opens up returned inventory/mailbox.'
  87.   - '/market dropbox &9- Opens up dropbox inventory (if enabled)'
  88.   - '/market tax [amount] &9- Shows/Withdraws collected tax money.'
  89.   - '/market npc add <npcId> &9- Makes NPC to open market (right-click).'
  90.   - '/market npc remove <npcId> &9- Removes NPC from list.'
  91.   - '/market reload &9- Reloads config.'
  92.  
  93. database:
  94.  #Type can be: sql/mysql
  95.   #if you choose mysql dont forget to fill all required information
  96.   Type: sql
  97.   Port: 3306
  98.   Host: localhost
  99.   Database: Your_Database
  100.   Username: Your_Username
  101.   Pass: Your_Password
  102.  
  103. settings:
  104.  #Version of the config, dont change this value
  105.   config_version: 1
  106.   #To change main command, please go to plugin.yml (inside plugin's .jar and add an alias)
  107.   #Here you can change all subcommands, if you change them dont forget to change menu as well.
  108.   #If you change something here, you will have to restart the server.
  109.   command_subaliases:
  110.     add: 'add'
  111.     returned: 'returned'
  112.     tax: 'tax'
  113.     reload: 'reload'
  114.     search: 'search'
  115.     help: 'help'
  116.     gift: 'gift'
  117.     dropbox: 'dropbox'
  118.     npc: 'npc'
  119.   #If you enable a dropbox players will have to manually take
  120.   #their money from a "box" after they sell items.
  121.   enable_dropbox: false
  122.   #Do you want new listings to be broadcasted?
  123.   broadcast_new_listings:
  124.     enabled: true
  125.     #if true, only listings of players with servermarket.broadcast permissions will be broadcasted
  126.     use_permission: false
  127.   limits:
  128.    #Minimum and maximum price users are allowed to list their items for
  129.     #Would suggest to set to anything above zero.
  130.     min: 1.0
  131.     #set to 0.0 if you dont want to have any limit
  132.     max: 5000000.0
  133.   #Permission servermarket.maxlistings.<group>
  134.   maxlistings:
  135.    #permissions
  136.     Admins: #requires player to have servermarket.maxlistings.Admin
  137.       #Maximum number of listings to be allowed
  138.       max: 100
  139.     Mod: #requires player to have servermarket.maxlistings.Mod
  140.       max: 20
  141.     #If group is not found this setting will be used, dont delete this1
  142.     default:
  143.       max: 10
  144.   #Income Tax value = how much a seller will get when someone buys his listing? 0.15 means he will get only 85% out of the sell price.
  145.   #set to 0.0 to disable tax (default: 15%)
  146.   #You can set different tax for different permissions
  147.   #Permission servermarket.tax.<group>
  148.   tax:
  149.     Admins: 0.0 #requires player to have servermarket.tax.Admin
  150.     Mod: 0.05 #requires player to have servermarket.tax.Mod
  151.     #if player doesnt have any of those permissions
  152.     #this setting will be used
  153.     #set to 0.0 if you want to disable tax
  154.     default: 0.15
  155.   #Do you want to collect tax money? You can withdraw them with /market tax <amount> (as admin) and view with /market tax
  156.   collect_taxmoney: true
  157.   #When listing should expire? (in seconds) Default: 2 days
  158.   expire: 172800
  159.   expiration_format:
  160.    # Do you want numbers with exact time or general words to appear for expiration format?
  161.     exact: true
  162.     # If expiration format is not EXACT, words instead of time are going to be used for expiration
  163.     # here you can define boundaries for each stage
  164.     # the numbers are in seconds e.g. short will be displayed on an item that has between 601 and 1800 seconds left
  165.     # placeholder to use in lore %expiration_stage%
  166.     #
  167.     # Actually you are able to add custom stages or remove some default ones,
  168.     # just for new stages add a translation at lang.expiration_stages for the same key as here
  169.     boundaries:
  170.       very_short: '0-600'
  171.       short: '601-1800'
  172.       medium: '1801-7200'
  173.       long: '7201-43200'
  174.       very_long: '43201-172800'
  175.   #Do you want to give seller a book which contains all information about the sale, when they sell an item/s
  176.   #This setting works for dropbox as well (if true, players will get a book on their withrawal or vice versa)
  177.   give_book_on_sell: true
  178.   #Sign to open a market
  179.   sign:
  180.    #First line specifies what u will have to write in order to generate the rest of the sign
  181.     #If you dont need all lines just leave them blank
  182.     line1: '&a[ServerMarket]'
  183.     line2: '&f&lOpen'
  184.     line3: ''
  185.     line4: ''
  186.   #In which worlds Server Market should be disabled?
  187.   disabledworlds:
  188.  - "test"
  189.   - "another_world"
  190.   restricteditems:
  191.    #You can restrict players to sell damaged items (like damaged swords etc.)
  192.     restrict_damaged_items: false
  193.     #If item material will be equal to something from that list it wont be allowed to be sold on the market
  194.     materials:
  195.    - 'DIAMOND_SWORD'
  196.     - 'WRITTEN_BOOK'
  197.     #If a name of an item will contain something from that list it wont be allowed to be sold  on the market
  198.     names:
  199.    - "Custom Sword"
  200.     - "&aColored Sword"
  201.     #If a lore of an item will contain something from that list it wont be allowed to be sold  on the market
  202.     lore:
  203.    - "Item cannot be sold on market"
  204.     - "Special item"
Add Comment
Please, Sign In to add comment