Configuration, Ownership and API:
Code:
inventory:
size: 27
title: Island Upgrades
upgrades:
DIAMOND_HOE:
name: '&e&lCrop Growth'
slot: 11
price: 100000
lore:
- ''
- '&7Purchasing the growth upgrade'
- '&7gives all crops within your island'
- '&7increased growth speed.'
- ''
- '&eGrowth: &f2x Speed'
- '&ePrice: &f$100,000'
- ''
- '&aLeft-click to purchase upgrade.'
commands:
- growth <uuid> 2
islands: []
MOB_SPAWNER:
name: '&b&lSpawner Boost'
slot: 13
price: 100000
lore:
- ''
- '&7Purchasing the spawner upgrade'
- '&7gives all spawners within your island'
- '&7increased spawn speed.'
- ''
- '&bBoost: &f4x Speed'
- '&bPrice: &f$500,000'
- ''
- '&aLeft-click to purchase upgrade.'
commands:
- spawnrate <uuid> 4
islands: []
ROTTEN_FLESH:
name: '&4&lPremium Drops'
slot: 15
price: 100000
lore:
- ''
- '&7Purchasing the drops upgrade'
- '&7gives all mobs within your island'
- '&7increased loot drops.'
- ''
- '&4Amount: &f2x Drops'
- '&4Price: &f$1,000,000'
- ''
- '&aLeft-click to purchase upgrade.'
commands:
- mobdrops <uuid> 2
islands: []
Code:
public void setGrowthMultiplier(byte multiplier);
public byte getGrowthMultiplier();
public void setSpawnRate(byte multiplier);
public byte getSpawnRate();
public void setDropMultiplier(byte multiplier);
public byte getDropMultiplier();
Commands:
/worth <uuid> <multiplier> - Usually executed by console.
/spawnrate <uuid> <multiplier> - Usually executed by console.
/mobdrops <uuid> <multiplier> - Usually executed by console.
Permissions:
Even though the commands are made to be executed in console (through the island upgrades gui), they can also be executed in-game. All three commands share the required permission node: askyblock.islands.*
Todo:
1. Create /is settings command.
2. Create /is perms command.
3. Create weekly island objective / reward system.
- Type
- Offering

