Guest User

Untitled

a guest
May 26th, 2020
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 8.89 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.   admin_remove_notification: "You item %item_name% has been removed from the market by an admin."
  36.   expiration_stages:
  37.     very_short: '&4Very short'
  38.     short: '&cShort'
  39.     medium: '&6Medium'
  40.     long: '&aLong'
  41.     very_long: '&2Very long'
  42.   returned:
  43.     name: "&6Returned/Expired Items"
  44.     lore: "&fYou can get your expired%nl%&for returned items here"
  45.   marketback:
  46.     name: "&6Go back to the market"
  47.     lore: "&fClick here to go back to the market."
  48.   info:
  49.     name: "&cHow to create a Listing?"
  50.     lore: "&fYou can create a listing%nl%&fby writing a &a/market add <cost> &fwhile%nl%&fholding a desired item."
  51.   dropbox:
  52.     name: "&8DropBox"
  53.     lore: "&f"
  54.   market:
  55.  - ''
  56.   - '&fPrice: &a%price% %currency%'
  57.   - '&fSeller: &a%seller%'
  58.   - '&fExpires in &a%h%&fh &a%min%&fm'
  59.   book:
  60.     name: 'Market Receipt'
  61.     author: 'Server'
  62.     inside:
  63.    - '&0&lMarket Receipt:'
  64.     - ''
  65.     - '&0Item: &2%item_name%'
  66.     - '&0Price: &c%price%'
  67.     - '&0Return: &c%return%'
  68.     - '&0Buyer: &c%buyer%'
  69.     - '&0Date: &c%date%'
  70.   confirmitem:
  71.     name: "&aConfirmation"
  72.     lore:
  73.    - "&fClick here to confirm a purchase."
  74.   sort:
  75.     price_highest: '&fprice &chighest'
  76.     price_lowest: '&fprice &clowest'
  77.     time_oldest: '&ftime &coldest'
  78.     time_newest: '&ftime &cnewest'
  79.     sort_button_name: '&f&lSorting by'
  80.     sort_button_lore: "%type%%nl%&7<Click to change sorting>"
  81.   menu:
  82.  - '  &a&l[&fServer Market &a&l]'
  83.   - '/market &9- Opens up market.'
  84.   - '/market add <price> &9- Adds an item to the market.'
  85.   - '/market search <name/lore/player> <text> &9- Searches market.'
  86.   - '/market gift <player> &9- Sends an item to players mail box.'
  87.   - '/market returned &9- Opens up returned inventory/mailbox.'
  88.   - '/market dropbox &9- Opens up dropbox inventory (if enabled)'
  89.   - '/market tax [amount] &9- Shows/Withdraws collected tax money.'
  90.   - '/market npc add <npcId> &9- Makes NPC to open market (right-click).'
  91.   - '/market npc remove <npcId> &9- Removes NPC from list.'
  92.   - '/market reload &9- Reloads config.'
  93.  
  94. database:
  95.  #Type can be: sql/mysql
  96.   #if you choose mysql dont forget to fill all required information
  97.   Type: sql
  98.   Port: 3306
  99.   Host: localhost
  100.   Database: Your_Database
  101.   Username: Your_Username
  102.   Pass: Your_Password
  103.  
  104. settings:
  105.  #Version of the config, dont change this value
  106.   config_version: 5
  107.   #To change main command, please go to plugin.yml (inside plugin's .jar and add an alias)
  108.   #Here you can change all subcommands, if you change them dont forget to change menu as well.
  109.   #If you change something here, you will have to restart the server.
  110.   command_subaliases:
  111.     add: 'add'
  112.     returned: 'returned'
  113.     tax: 'tax'
  114.     reload: 'reload'
  115.     search: 'search'
  116.     help: 'help'
  117.     gift: 'gift'
  118.     dropbox: 'dropbox'
  119.     npc: 'npc'
  120.   #If you enable a dropbox players will have to manually take
  121.   #their money from a "box" after they sell items.
  122.   enable_dropbox: false
  123.   # If you are running this plugin just on one server, you can turn this on to improve
  124.   # some performance on the tradeoff of some inconsistencies
  125.   cache_market_views: false
  126.   #Do you want new listings to be broadcasted?
  127.   broadcast_new_listings:
  128.     enabled: true
  129.     #if true, only listings of players with servermarket.broadcast permissions will be broadcasted
  130.     use_permission: false
  131.   limits:
  132.    #Minimum and maximum price users are allowed to list their items for
  133.     #Would suggest to set to anything above zero.
  134.     min: 1.0
  135.     #set to 0.0 if you dont want to have any limit
  136.     max: 5000000.0
  137.   #Permission servermarket.maxlistings.<group>
  138.   maxlistings:
  139.    #permissions
  140.     Admins: #requires player to have servermarket.maxlistings.Admin
  141.       #Maximum number of listings to be allowed
  142.       max: 100
  143.     Mod: #requires player to have servermarket.maxlistings.Mod
  144.       max: 20
  145.     #If group is not found this setting will be used, dont delete this1
  146.     default:
  147.       max: 10
  148.   #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.
  149.   #set to 0.0 to disable tax (default: 15%)
  150.   #You can set different tax for different permissions
  151.   #Permission servermarket.tax.<group>
  152.   tax:
  153.     Admins: 0.0 #requires player to have servermarket.tax.Admin
  154.     Mod: 0.05 #requires player to have servermarket.tax.Mod
  155.     #if player doesnt have any of those permissions
  156.     #this setting will be used
  157.     #set to 0.0 if you want to disable tax
  158.     default: 0.15
  159.   #Do you want to collect tax money? You can withdraw them with /market tax <amount> (as admin) and view with /market tax
  160.   collect_taxmoney: true
  161.   #When listing should expire? (in seconds) Default: 2 days
  162.   expire: 172800
  163.   expiration_format:
  164.    # Do you want numbers with exact time or general words to appear for expiration format?
  165.     exact: true
  166.     # If expiration format is not EXACT, words instead of time are going to be used for expiration
  167.     # here you can define boundaries for each stage
  168.     # the numbers are in seconds e.g. short will be displayed on an item that has between 601 and 1800 seconds left
  169.     # placeholder to use in lore %expiration_stage%
  170.     #
  171.     # Actually you are able to add custom stages or remove some default ones,
  172.     # just for new stages add a translation at lang.expiration_stages for the same key as here
  173.     boundaries:
  174.       very_short: '0-600'
  175.       short: '601-1800'
  176.       medium: '1801-7200'
  177.       long: '7201-43200'
  178.       very_long: '43201-172800'
  179.   #Do you want to give seller a book which contains all information about the sale, when they sell an item/s
  180.   #This setting works for dropbox as well (if true, players will get a book on their withrawal or vice versa)
  181.   give_book_on_sell: true
  182.   #Sign to open a market
  183.   sign:
  184.    #First line specifies what u will have to write in order to generate the rest of the sign
  185.     #If you dont need all lines just leave them blank
  186.     line1: '&a[ServerMarket]'
  187.     line2: '&f&lOpen'
  188.     line3: ''
  189.     line4: ''
  190.   #In which worlds Server Market should be disabled?
  191.   disabledworlds:
  192.  - "test"
  193.   - "another_world"
  194.   restricteditems:
  195.    #You can restrict players to sell damaged items (like damaged swords etc.)
  196.     restrict_damaged_items: false
  197.     #Allow only custom items to be sold on the market (players wont be able to sell items without lore or name)
  198.     only_custom_items:
  199.       enabled: false
  200.       # Exception materials that still can be sold without name or lore
  201.       material_exceptions:
  202.      - STONE
  203.     #If item material will be equal to something from that list it wont be allowed to be sold on the market
  204.     materials:
  205.    - 'DIAMOND_SWORD'
  206.     - 'WRITTEN_BOOK'
  207.     #If a name of an item will contain something from that list it wont be allowed to be sold  on the market
  208.     names:
  209.    - "Custom Sword"
  210.     - "&aColored Sword"
  211.     #If a lore of an item will contain something from that list it wont be allowed to be sold  on the market
  212.     lore:
  213.    - "Item cannot be sold on market"
  214.     - "Special item"
Add Comment
Please, Sign In to add comment