Selly

Script Selly 1.0.0

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Supported Minecraft Versions
  1. 1.12
Selly
A simple and easy shop system. It's designed to be easy for you to configure, and advanced in the functionality. You can create shops, incorporate them with Citizens, and it also comes with a command to sell the items of the defined shops directly. The script would be less than 200 lines if it was excluding configurations, so this script is extremely optimized.

Commands
* /Selly - The main command for the script.
* /Selly list - List all shops.
* /Selly add <shop> - Add a shop.
* /Selly delete <shop> - Delete a shop.
* /Selly edit <shop> - Open the editor GUI.
* /Selly rename <shop> <newshop> - Rename a shop.

Permissions
  • selly.admin (allows to configure shops)
  • selly.shop.INSERT-SHOP-NAME
replace INSERT-SHOP-NAME with the shop name. Pretty simple. This permission allows a user to sell at the shop.

Installation
To install the script onto your server:
  1. Skellett and Skript 2.2-dev35+ need to be installed.
  2. Place the download Selly.sk in the scripts folder "plugins/Skript/scripts"
  3. Type /sk reload Selly
  4. Enjoy!
Video demo

Options
code_language.skript:
#---------------------------------------------------------------------------------------------
options:
   prefix: &7[&aSelly&7] &f
   maincolour: &a
   secondarycolour: &7
   thirdcolour: &6
 
   #main configuring command
   command: /selly
   command-permission: selly.admin
 
   sell-command: /sell
   sell-permission: selly.sell
   sell-usage: &6You need to enter a valid shop name. &l/sell <shop>
   sell-usesound: true
   sell-sound: ENTITY_EXPERIENCE_ORB_PICKUP
   sell-soundpitch: 2
 
   no-sellable-items-sound: ENTITY_VILLAGER_NO
   no-sellable-items-pitch: 3
 
   buy-command: /buy
   buy-permission: selly.buy
 
   header: "           &l&nSelly Editor"
   shop-header: "&4&l{SHOP} Shop Editor"
   viewer-header: "&4{SHOP} Shop"
 
   #The time out of the chat listener, this is how long a player has to reply to the chat confirmation
   #The time is in seconds
   timeout: 120
 
   #Messages
   no-permission: You don't have the correct permissions.
   creative: You can't sell items when in creative mode.
   add-shop: &6Type in chat now the name of this new shop.
   new-shop: &6The shop with the name &a&l{SHOP} &6has just been added.
   remove-shop: &cAre you sure you want to remove shop &a&l{SHOP}&c? Type &lYES &cin chat to accept or type anything else to cancel.
   removed-shop: &6The shop &a&l{SHOP} &6has been removed.
   renamed-shop: &6The shop has been renamed to &a&l{SHOP}.
   already: &cThe shop {SHOP} already exists, please delete the old one or pick a new name.
   not-found: &cThe shop &l{SHOP} &ccould not be found.
   sold-items: &bYou have sold {AMOUNT_OF_ITEMS} items at shop &a&l{SHOP} &bworth &a${AMOUNT}
   no-sellable-items: &cYou don't have any sellable items for shop &l{SHOP}&c.
   shops-are: &aPossible shops are: &r
 
   #Citizens
   #The shop placeholder is needed in order for this to work.
   npc-name: {SHOP} Shop
 
   #Menu items
   #Because Skript can't support multiple lores well
   #This is the main cost of the item when editing
   price-lore: "&6Price per one of this item"
   #The second lore
   info-lore1: "&7To increase the price of the item by 1 rightclick"
   #The thrid lore
   info-lore2: "&7To increase the price by 10 shift rightclick"
   info-lore3: "&7To increase the price by 100 drop this item"
 
   removing-lore1: "&cTo decrease the price of this item by 1 leftclick"
   removing-lore2: "&cTo decrease the price by 10 shift leftclick"
   removing-lore3: "&cTo decrease the price by 100 control + drop this item"
#---------------------------------------------------------------------------------------------

I will be taking suggestions, but I will not be adding an auto sell feature as Skript is a lot slower than a Java plugin in that regards, and I would highly recommend not making Skript do that. My scripts are designed and made for performance.
Author
LimeGlass
Downloads
139
Views
482
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LimeGlass