Pocan Posted August 1, 2021 Share Posted August 1, 2021 (edited) Merchant puts your items for sale you can arrange these items for sale as you wish through your own store.This skript is like a special shop like a only items determined by server administrators can be purchase and also stocks of items available these stocks make by server playersDependencies:• Skript• Skript-reflect• Skript-yaml• TuSKeInstall: ■ Put 'Skript.jar', 'Skript-reflect.jar', 'Skript-yaml.jar' and 'TuSKe.jar', to "plugins/"■ Reload server.■ Put 'merchant.sk file ' into "plugins/Skript/scripts"■ Now execute command '/sk reload merchant.sk'■ Basic installation complete. (The others are easily adjusted through the yaml file.) ■ Special purchase guis.■ Register unlimited items and create categories to Merchant.■ Easy item register.■ Easy item add.■ Easy stockadd.■ Easy setup.■ Custom stores■ Fast and optimized.■ Yaml support MERCHANT APIPurchaseAPI Code (Text): function MerchantAPIPurchase(total : number, amount : number, d : object, item : item, uuid : text, p : player): # If you know SkriptLang you can use this API # {_total} -> Total price of purchase # {_amount} -> The amount of item the player wants to buy # {_d} -> The item of player wants to buy not parsed # {_item} -> The item of player wants to buy with parsed # {_uuid} -> Uuid of seller. # {_p} -> Event-player #broadcast "&e%{_p}% &7, is purchased &c{_amount} &7of &c{_item} &7for &c${_total} &7from merchant." ItemAddAPI Code (Text): function MerchantAPIItemAdd(price : integer, amount : number, item : item, p : player): # If you know SkriptLang you can use this API # {_price} -> Price of item # {_amount} -> The amount of item # {_item} -> The item # {_p} -> Event-player #set {_counter} to {_price} * {_amount} #broadcast "&e%{_p}% &7, is put &c{_amount} &7of &c{_item} &7to merchant for &c${_counter}" • /merchant add <1/Per Price> <all>• /merchant stockadd <all>• /merchant admin create category <Category-ID> <Category-Name-Colored>"• /merchant admin create shop <Category-ID> <Category-Page> <Shop-Name> <Shop-Name-Colored>Permissionsmerchant.* -> All permissions.merchant.usage -> You need this perm for usage /merchant admin.merchant.create.shop -> Create shop.merchant.create.category -> Create category.merchant.reload -> Reload files.merchant.help -> For execute command /merchant help CLICK HERE TO DOWNLOAD MERCHANT (SPIGOT) Edited September 11, 2021 by Pocan 1 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Nice not tested but it sounds cool! Link to comment Share on other sites More sharing options...
StarBunnie Posted August 1, 2021 Share Posted August 1, 2021 18 minutes ago, Pocan said: Merchant puts your items for sale you can arrange these items for sale as you wish through your own store.This skript is like a special shop like a only items determined by server administrators can be purchase and also stocks of items available these stocks make by server playersDependencies:• Skript• Skript-reflect• Skript-yaml• TuSKeInstall: ■ Put 'Skript.jar', 'Skript-reflect.jar', 'Skript-yaml.jar' and 'TuSKe.jar', to "plugins/"■ Reload server.■ Put 'merchant.sk file ' into "plugins/Skript/scripts"■ Now execute command '/sk reload merchant.sk'■ Basic installation complete. (The others are easily adjusted through the yaml file.) ■ Special purchase guis.■ Register unlimited items and create categories to Merchant.■ Easy item register.■ Easy item add.■ Easy stockadd.■ Easy setup.■ Custom stores■ Fast and optimized.■ Yaml support MERCHANT APIPurchaseAPI Code (Text): function MerchantAPIPurchase(total : number, amount : number, d : object, item : item, uuid : text, p : player): # If you know SkriptLang you can use this API # {_total} -> Total price of purchase # {_amount} -> The amount of item the player wants to buy # {_d} -> The item of player wants to buy not parsed # {_item} -> The item of player wants to buy with parsed # {_uuid} -> Uuid of seller. # {_p} -> Event-player #broadcast "&e%{_p}% &7, is purchased &c{_amount} &7of &c{_item} &7for &c${_total} &7from merchant." ItemAddAPI Code (Text): function MerchantAPIItemAdd(price : integer, amount : number, item : item, p : player): # If you know SkriptLang you can use this API # {_price} -> Price of item # {_amount} -> The amount of item # {_item} -> The item # {_p} -> Event-player #set {_counter} to {_price} * {_amount} #broadcast "&e%{_p}% &7, is put &c{_amount} &7of &c{_item} &7to merchant for &c${_counter}" • /merchant add <1/Per Price> <all>• /merchant stockadd <all>• /merchant admin create category <Category-ID> <Category-Name-Colored>"• /merchant admin create shop <Category-ID> <Category-Page> <Shop-Name> <Shop-Name-Colored>Permissionsmerchant.* -> All permissions.merchant.usage -> You need this perm for usage /merchant admin.merchant.create.shop -> Create shop.merchant.create.category -> Create category.merchant.reload -> Reload files.merchant.help -> For execute command /merchant help CLICK HERE TO DOWNLOAD MERCHANT (SPIGOT) Doesn't seem like skript-yaml is on Minehut just a heads up not sure how much that breaks. 1 1 Feel free to add me on discord if you: need help with plugins need help with skripts need to vent about something >[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]< Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Ah yes didnt check that, can someone please test it without the "required plugin"? Link to comment Share on other sites More sharing options...
Pocan Posted August 1, 2021 Author Share Posted August 1, 2021 2 minutes ago, LapEvents said: Ah yes didnt check that, can someone please test it without the "required plugin"? Don't test it without skript-yaml beacuse skript-yaml is most important jar after Skript ._. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Sad. Maybe request the plugin in a new post, posted in the plugins category. Link to comment Share on other sites More sharing options...
Pocan Posted August 1, 2021 Author Share Posted August 1, 2021 I think minehut should be add Skript-yaml. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Just now, Pocan said: I think minehut should be add Skript-yaml. Read my last reply! Link to comment Share on other sites More sharing options...
Pocan Posted August 1, 2021 Author Share Posted August 1, 2021 Just now, LapEvents said: Read my last reply! I'm already read yeah. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Nice you posted it good luck getting it added Link to comment Share on other sites More sharing options...
Pocan Posted August 1, 2021 Author Share Posted August 1, 2021 1 minute ago, LapEvents said: Nice you posted it good luck getting it added Yeah thanks Link to comment Share on other sites More sharing options...
Lapzzo Posted August 1, 2021 Share Posted August 1, 2021 Link to comment Share on other sites More sharing options...
Lapzzo Posted August 2, 2021 Share Posted August 2, 2021 Edit: Skript-yaml has been requested multiple times by many people of the minehut community, but has been denied each time. It will be hard getting this added Link to comment Share on other sites More sharing options...
ItsKirby Posted August 2, 2021 Share Posted August 2, 2021 2 hours ago, LapEvents said: Edit: Skript-yaml has been requested multiple times by many people of the minehut community, but has been denied each time. It will be hard getting this added Just an addon to why Skript-yaml has been denied each time, Minehut doesn't support the plugin for Security Issues, same goes with Skript-reflect. I don't know too much about this but this is what i found when searching for a reason to this. Yo who actually reads these [Vip] - 12/29/2020[Pro] - 1/25/2022 Link to comment Share on other sites More sharing options...
Rodney_RWR Posted August 3, 2021 Share Posted August 3, 2021 They cant add it bc of things like Sql databases and other complex things like that :/. ------------------------------------------------------------------- NO RANK ALL THE WAY --------------------------------------------------------------------- play.koolkidzmc.com (Velocity + Pufferfish FTW) discord.koolkidzmc.com Spoiler /_(•v•)_7 Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 why just to sufferrr Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 i just..... Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 dont want.... Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 oof Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Punish Posted August 3, 2021 Share Posted August 3, 2021 undertall Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 4, 2021 Share Posted August 4, 2021 Its been added! Cant wait to test it out! Link to comment Share on other sites More sharing options...
Punish Posted August 5, 2021 Share Posted August 5, 2021 (edited) On 8/3/2021 at 12:57 AM, LapEvents said: Edit: Skript-yaml has been requested multiple times by many people of the minehut community, but has been denied each time. It will be hard getting this added minehut has been unleashed Edited August 5, 2021 by Razaire Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 5, 2021 Share Posted August 5, 2021 Im gonna try out this skript later today! Link to comment Share on other sites More sharing options...
Punish Posted August 5, 2021 Share Posted August 5, 2021 7 minutes ago, LapEvents said: Im gonna try out this skript later today! okk i already tried its cool Every time you tell a lie, You'll have to tell a 100 more. Link to comment Share on other sites More sharing options...
Lapzzo Posted August 5, 2021 Share Posted August 5, 2021 Just now, Razaire said: okk i already tried its cool Nice! Ill try it in an hour Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now