Stock - Stock market on your Server v1.0.3

Implementation of the stock market in Minecraft
PluginBanner.png
Type
  1. Economy
  2. Role playing
Supported software
  1. Bukkit
  2. Spigot
  3. Paper
Supported versions
  1. 1.12
  2. 1.13
  3. 1.14
  4. 1.15
  5. 1.16
  6. 1.17
  7. 1.18
  8. 1.19
Tags
Tags
actions investing market stock
The probability of rising prices depends on the current Stock amount of stock sold(also configurable! if you want you can make it completely random!)

Preview.png


* Stock List(<Stock ID> <Stock Name> <Stock Price> <Stock Rate Tendency Symbol> <Available Stock Amount> <Max Stock Amount>)

(Description of stock on holding)

upload_2021-1-15_0-7-27.png



* Main Command(/stock)

upload_2021-1-15_0-10-3.png


* Owned Stocks and selling stock

upload_2021-1-15_0-11-42.png


ConfigurationLabel.png


YAML:
 debug: true
# debug messages
Price_Change_Cycle: 200
# The number means seconds. Time between cycles
limitBuy: true
# Limitation of buying stocks
limitBuyValue: 5
# Maximum number of stocks per player

# The probability that the price will go up in the price change cycle if more than 10% of the stock is sold.
Probability_Of_Price_Rise_Due_To_10_Percent_Stock_Sale: 52
Probability_Of_Price_Rise_Due_To_20_Percent_Stock_Sale: 53
Probability_Of_Price_Rise_Due_To_30_Percent_Stock_Sale: 55
Probability_Of_Price_Rise_Due_To_40_Percent_Stock_Sale: 57
Probability_Of_Price_Rise_Due_To_50_Percent_Stock_Sale: 60
Probability_Of_Price_Rise_Due_To_99_Percent_Stock_Sale: 99
# If the price increases, that stock will increase by 10-30% from the price of that stock. Likewise, if the price goes down, it goes down 10-30%.
Price_Change_Rate_Min: 10
Price_Change_Rate_Max: 30


Message:
  StockLimit: "You threshoolded the limit of buying the actions!"
  Stock_Buy_No_Money: "No enough money!"
  Stock_List_Page_Not_Found: "Unknown Page!"
  Stock_NoPermission_Command: "No permission (%permission%)"
  Stock_Help_Command_User:
    - "/stock list <page> - View the stock list"
    - "/stock buy <stock_name> <amount> - Purchase the stock"
    - "/stock sell <stock_name> <amount> - Sell the stock"
    - "/stock give <stock_name> <amount> <playerName> - Send stock to the user"
    - "/stock owned - View the owned stock list"
  Stock_Help_Command_Admin:
    - "/stock create <stock_name> <amount> <price> - Create a new stock"
    - "/stock delete <stock_name> - remove stock"
    - "/stock minprice <stock_name> <price> - set minimum price"
    - "/stock maxprice <stock_name> <price> - set maximum price"
    - "/stock purge {days_numer}d - remove stock from users inactive for provided number of the days"
    - "/stock setprice <stock_name> <price> - Change the price of that stock"
    - "/stock desc <stock_name> <description> - Set the message that appears when you hover over the message that appears when you type the '/stock list'"
    - "/stock maxamountchange <stock_name> <amount> - Modify the maximum number of stocks. It cannot be lower than the number initially set."
  Stock_List_Command_Message:
    - '----------- StockAction List Page %page% / %max_page% -----------'
    - '&e%Stock_Number%. &f%Stock_Name% &8- %Stock_Price% %Price_Change_Symbol% &8- &c%Stock_Amount% &6/ &a%Max_Stock_Amount%'
  Stock_List_Owned_Command_Message:
    - '----------- Owned Stocks -----------'
    - '&e%Stock_Number%. &f%Stock_Name% &8- %Stock_Price% %Price_Change_Symbol% &8- &c%Stock_Amount%'
  Stock_Buy_Success: '&f[&eStock&f] &7You have purchased %Stock_Name% %Amount%.'
  Stock_Buy_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Buy_Fail_Cannot_Buy_More_Than_The_Remaining_Amount: '&f[&eStock&f] &7You cannot buy more than the remaining amount!'
  Stock_Sell_Success: '&f[&eStock&f] &7You have selled %Stock_Name% %Amount%.'
  Stock_Sell_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Sell_Fail_Wrong_Amount: '&f[&eStock&f] &7You do not have stock for that number or you have entered an incorrect entry.'
  Stock_Give_Success: '&f[&eStock&f] &7You have gave %Stock_Name% %Amount% to %playername%'
  Stock_Receive_Success: '&f[&eStock&f] &7You have received %Stock_Name% %Amount% from %playername%'
  Stock_Give_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Give_Fail_Wrong_Amount: '&f[&eStock&f] &7You do not have stock for that number or you have entered an incorrect entry.'
  Stock_Give_Fail_Invaild_Player: '&f[&eStock&f] &7Invaild Player'
  Stock_Create_Success: '&f[&eStock&f] &7You Create %Stock_name% - %Stock_Price% - %Stock_Amount%'
  Stock_Create_Fail_Stock_Name_Already_Exists: '&f[&eStock&f] &7Stock Already Exist'
  Stock_Setprice_Success: '&f[&eStock&f] &7You Change the %Stock_name% Price %Before_Stock_Price% -> %After_Stock_Price%'
  Stock_Setprice_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Desc_Success: '&f[&eStock&f] &7Changed Desc of %Stock_Name%.'
  Stock_Desc_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Maxamountchange_Success: '&f[&eStock&f] &7%Stock_Name% - Changed the number of stocks.'
  Stock_Maxamountchange_Fail_Invaild_Stock: '&f[&eStock&f] &7The stock does not exist.'
  Stock_Maxamountchange_Fail_Cannot_Be_Lower_Than_The_Previous_Amount: '&f[&eStock&f] &7It cannot be lower than the number initially set.'
  Price_Change_Symbol_UP: '▲'
  Price_Change_Symbol_Down: '▼'

Commands.png


player:

/stock list <page>
/stock buy <stock_name> <amount>
/stock sell <stock_name> <amount>
/stock give <stock_name <amount> <playerName>
/stock owned

admin:

/stock create <stock_name> <amount> <price>
/stock delete <stock_name>
/stock minprice <stock_name> <price>
/stock maxprice <stock_name> <price>
/stock purge {days_numer}d
/stock setprice <stock_name> <price>
/stock desc <stock_name> <description>
/stock maxamountchange <stock_name> <amount>


Permissions.png


Using player commands: stock.user
Using admin commands: stock.admin

Requirements.png


Plugin Require Vault and something that can handle Economy! (I recommend Fe Plugin).


v5OxdYe.png


Email: [email protected] or [email protected]
Discord: IgniteDEV#1465
Direct Message: via BuiltByBit or SpigotMC

YQ4srmo.png


  • PluginBanner.png
    PluginBanner.png
    86.5 KB · Views: 4

Legacy Notice

The creator of this resource hasn't yet switched to our improved Pro system so the following aren't available:
Adding this resource to your cart
Paying with 50+ payment gateways
A standardised EULA
Enhanced privacy to hide your info
We apologise for the inconvenience.

Creator

Creator
2DevsStudio
Downloads
2
Type
Digital product
License duration
Unlimited
Price
€3.00
Views
515
First release
Last update
Rating
Not yet rated

More resources from 2DevsStudio

Plugin that effects to equipment, on hold, on worn etc.
Not yet rated
21 downloads
daily rewards, streak rewards, playtime, uniquejoins
Not yet rated
9 purchases
fishing, 2devs, fishingevents
Not yet rated
0 purchases
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.