Star Factories brings a unique system to your servers economy. Allowing players to purchase these 'factories' which generate offline [which is togglable, if you only want online profit] profit for the player.
$5
We currently only feature one command, which is /factories - It'll open up the factories main inventory.
There are no admin commands currently.
STAR FACTORIES // CONFIGURATION
Star Factories includes 2 different YAML files that you can configure to your liking, and are featured below.
Code:
Settings:
Generation-Interval: 60 #Seconds
Factory-Inventory:
Settings:
Title: "Star | Factories"
Size: 27
Border:
Fill: true
Enchanted: true
Material: STAINED_GLASS_PANE:15
Name: " "
Lore:
- " "
Factories:
"Coal":
Settings:
Generation-Amount: 10 # $10 per generation per one
Max-Amount: 10 #Max of 10 coal factories
Cost: 25000 # $25,000 per factory
Cost-Increase: 10 #10% cost increase
Display-Item:
Slot: 13
Factory-Item:
Enchanted: true
Material: COAL:0
Name: "&6&l[!] &6Coal &eFactory &8(&7Click&8)"
Lore:
- '&7&o"This factory is a cheap starter factory."'
- ' '
- '&6&l[!] &6Factory &eInformation'
- ' &6» &e[Cost] &f$%price% &8(&7$25,000 per&8)'
- ' &6» &e[Rarity] &fCommon'
- ' &6» &e[Generation] &f$%generate% / minute &8(&7$10 per&8)'
- ' '
- '&6&l[!] &6Your &eStatistics'
- ' &6» &e[Amount Purchased] &f%amount%x'
- ' &6» &e[Money Held] &f%amount-held%'
- ' '
- '&7&o** &fLeft Click &7&othis item to purchase a factory. **'
- '&7&o** &fRight Click &7&othis item to extract your funds. **'
- ' '
Not-Enough-Money:
Enchanted: true
Material: BARRIER:0
Name: "&c&lNOT ENOUGH MONEY"
Lore:
- '&7&o"You dont have enough money to purchase this."'
Purchase-Capped:
Enchanted: true
Material: BARRIER:0
Name: "&c&lTOO MANY FACTORIES"
Lore:
- '&7&o"You already have the max amount of factories for this."'
Reward-Commands:
- "eco give %player% %amount%"
Code:
Command-Permission:
Member: "factory.member"
Factory-Settings:
Offline-Earnings: true #Make it so players can earn offline as well
Sounds:
Inventory-Open:
Sound-Enabled: true
Sound: "ENTITY_PLAYER_LEVELUP"
Inventory-Close:
Sound-Enabled: true
Sound: "ENTITY_BAT_TAKEOFF"
Messages:
No-Permission:
Sound-Enabled: true
Message-Enabled: true
Sound: "ENTITY_PLAYER_BAT_TAKEOFF"
Message:
- "&4&l[!] &cYou dont have permission to &nexecute&c this."
Not-Player:
Sound-Enabled: true
Message-Enabled: true
Sound: "ENTITY_PLAYER_BAT_TAKEOFF"
Message:
- "&4&l[!] &cYou need to be a player to execute this."
Inventory-Opened:
Sound-Enabled: true
Message-Enabled: true
Sound: "ENTITY_PLAYER_LEVELUP"
Message:
- "&7&o** &fYou &7&oare now opening the &fFactory Interface&7&o. **"
Money-Withdrawn:
Sound-Enabled: true
Message-Enabled: true
Sound: "ENTITY_PLAYER_LEVELUP"
Message:
- "&a&l+ $%amount% &8(&7%factory% Factory&8)"
STAR FACTORIES // DEVELOPER API
- Access the main API via "StarFactoryAPI.getAPI()"
- Access the plugins custom events.
- FactoryPurchaseEvent(Player, Factory, Cost, Successful (boolean))
- Called when a player tries to purchase a new factory
- If the successful boolean is true, it worked, if false they are either capped, or not have enough money.
- FactoryRedeemEvent(Player, Factory, Amount, Successful (boolean))
- Called when a player tries to redeem their factories money.
- If the successful boolean is true, it worked, if false, it didn't, and they may have no money in it.
- FactoryPurchaseEvent(Player, Factory, Cost, Successful (boolean))
STAR FACTORIES // SUPPORT
If you want to purchase this or, If you ever need support, please direct message me on MC-Market, or join our discord server. Reviews or discussions tabs are not a place to ask for support.
Discord Link: Click here!
Discord Link: Click here!
