PrisonGems
Description

PrisonGems is an essential Plugin for all Prison Servers.
it adds several new Utilities, which are mainly aimed to be
useful for Prison Servers, but can of course be used for any
other type of Server as well.
The first and most important thing it adds are: Gems
Gems are a currency which runs independently from Vault.
Those Gems can be obtained by mining Blocks in the world.
The drop chance of those, is of course configurable.
Gems can be used to buy things: mainly to upgrade your Items
You can upgrade the Enchantments of your Items using Gems
for example if you have Unbreaking I it can be upgraded to Unbreaking II
etc...
Now, if you are using PrisonUtils, you can
also sell Backpacks via Gems.
Or if you are using CommandOverride, you can
make certain commands cost Gems to be executed.
Another thing Gems can be used for is not only upgrading your
Tools/Armor/Weapons but also repairing those.
Commands/Permissions

| Command | Description | Permission | ||||
| /upgrade | Opens up the Inventory to upgrade your Items | No Permission required. | ||||
| /repair | Repairs the Item in your Hand for a configurable cost | gems.repair | ||||
| /backpacks | Opens up a Shop where you can buy Backpacks for Gems | No Permission required. | ||||
| /gems | Shows how many Gems you have | No Permission required. | ||||
| /gems withdraw <Amount> | Converts a specified Amount of Gems to its respective Item Form for Trades and Shops | No Permission required. | ||||
| /gems <Player> | Shows how many Gems a Player has | gems.others | ||||
| /gems set <Player> <Amount> | Allows you to manipulate the Amount of Gems a Player has | gems.set | ||||
| /gems add <Player> <Amount> | Allows you to manipulate the Amount of Gems a Player has | gems.set | ||||
| /gems remove <Player> <Amount> | Allows you to manipulate the Amount of Gems a Player has | gems.set | ||||
| /gems give <Player> <Amount> | Gives the specified Player the specified Amount of your Gems | No Permission required. |
Signs

Note: All empty lines can be replaced with a text of your Choice. Example: "Cost: 10 Gems" / "Click to buy" / ...
[Upgrade] Signs
These Signs will open the Upgrade Menu
or will simply upgrade your Enchantment if you specify one.
- [Upgrade]
- <Enchantment> (optional)
Required Permission for creating Signs: gems.sign
[Backpack] Signs
These Signs will open up the Backpack Shop
Or will act as a Shop Sign if you specify an amount
of lines in the second line of your Sign.
- [Backpack]
- <Number of lines> (optional)
- soulbound (optional)
Required Permission for creating Signs: backpacks.sign
Configuration

upgrades: DIAMOND_SWORD: ## Specify the Name of your Item here DAMAGE_ALL: ## The Name of your Enchantment base-cost: 3 ## The Amount of Gems it costs to apply increment: 2 ## How many Gems will be added to the Cost per level max: 20 ## The Max Level of that Enchantment gems: starter: 0 ## Whats the start balance for new Players? drop-chance: 10 ## The Chance of dropping a Gem when breaking Blocks unlock-editor: 5 ## The Amount of Gems which is required to open the Upgrade Menu repair-cost: 25 ## The cost of Gems for repairing Items enable-give-command: true ## Specify whether /gems give is enabled enable-withdraw-command: true ## Specify whether /gems withdraw is enabled auto-pickup: false ## Specify whether Gems are automatically added to your Balance or dropped as an Item world-blacklist: ## Those worlds will be excluded from dropping Gems - world_nether - world_the_end sign-prefix: '&7[&aUpgrade&7]' ## Whats the Sign Prefix for the Upgrade Sign? backpacks: sign-prefix: '&7[&9Backpack&7]' ## Whats the Sign Prefix for the Backpack Sign? tiers: '1': enabled: true ## Whether a Backpack with 9 Slots is enabled cost: 100 ## How much it costs '2': enabled: true cost: 250 '3': enabled: true cost: 500 '4': enabled: true cost: 750 '5': enabled: true cost: 1000 '6': enabled: true cost: 2000 soulbound: '1': enabled: true ## Whether a Backpack with 9 Slots is enabled cost: 100 ## How much it costs '2': enabled: true cost: 250 '3': enabled: true cost: 500 '4': enabled: true cost: 750 '5': enabled: true cost: 1000 '6': enabled: true cost: 2000 enchantment-aliases: LOOT_BONUS_BLOCKS: ## Specify some Aliases for the Upgrade signs, so you can use Fortune instead of LOOT_BONUS_BLOCKS - Fortune DAMAGE_ALL: - Sharpness DURABILITY: - Unbreaking DIG_SPEED: - Effciency
Auto-Updater and Metrics

All my Plugins are using an Auto-Updater to make sure, you're always
using the latest and hopefully most bug free version of my Plugin.
If you don't want this Plugin to be auto-updated, you can turn it off
in the config file at "options -> auto-update: true/false"
They also use a Metrics-System which collects the following Informations:
A unique identifier
The server's version of Java
Whether the server is in offline or online mode
The plugin's version
The server's version
The OS version/name and architecture
The core count for the CPU
The number of players online
The Metrics version
Opting out of this service can be done by editing
plugins/Plugin Metrics/config.yml and changing opt-out to true.
-
View User Profile
-
Send Message
Posted Jul 5, 2015@UnpeeledBanana1
The Enchantments Names are case-sensitive.
You named your Enchantment Explosive.
Yet you try to access it using EXPLOSIVE.
-
View User Profile
-
Send Message
Posted Jul 5, 2015@TheBusyBiscuit
EE - http://pastebin.com/CjCFWthu
PG - http://pastebin.com/nn9KZRNc
-
View User Profile
-
Send Message
Posted Jul 5, 2015@UnpeeledBanana1
PG and EE Configs please.
-
View User Profile
-
Send Message
Posted Jul 5, 2015After linking this with Emerald Enchants, I wondered how I would add the Explosive option. I tried a couple of ideas but non of them worked
-
View User Profile
-
Send Message
Posted Jul 4, 2015@Crisis_Killer
Do you have EmeraldEnchants installed?
-
View User Profile
-
Send Message
Posted Jul 4, 2015@TheBusyBiscuit
No problem man. I am still getting this error and i did fix my mistake (thanks for catching that anyways) But now i am getting this :\ Again not sure if it is just another stupid mistake Config: http://pastebin.com/kK3EmpeM Error: http://pastebin.com/ueN5eUCR
Same error as before i tried to do /upgrade with my sword no problems but if i upgrade my pickaxe it pops up as internal error as occurred
Thanks for helping in advanced!
-
View User Profile
-
Send Message
Posted Jul 3, 2015@Crisis_Killer
Yes you wrote Base-cost instead of base-cost
Sorry about forgetting about you.
-
View User Profile
-
Send Message
Posted Jul 3, 2015Sorry to bug but is there a solution to my problem?
-
View User Profile
-
Send Message
Posted Jul 2, 2015@Kargond
... There is an API. Look at CS-CoreLibs Documentation about Currency.class
you can obtain PrisonGems Currency by using
UpgradeManager.getManager().currency
-
View User Profile
-
Send Message
Posted Jul 2, 2015Hello! I have prison server and I use my own scoreboard plugin. I want to display amount of gems player has, so may you please add API for your plugin?
-
View User Profile
-
Send Message
Posted Jun 29, 2015Hello mrCookieSlime I am having a problem here Whenever I try to upgrade my sword it is just fine no errors. But when i try to upgrade my Pick this is what i get Error http://pastebin.com/ru09xgnN But I dont see what i did wrong (or i am stupid) Config http://pastebin.com/cZdjayU3
Thanks!
-
View User Profile
-
Send Message
Posted Jun 19, 2015@TheBusyBiscuit
Thanks, didn't see the option for it.
-
View User Profile
-
Send Message
Posted Jun 19, 2015@Creeperzombi3
... There is a Config Option for that.
And pretty sure there are messages, if not Ill add it.
-
View User Profile
-
Send Message
Posted Jun 19, 2015Do you think you could change a couple things with a separate download link? I want it so it doesn't spawn an emerald, but it goes straight into your gem balance instead. Also, a message that confirms you did the command when you do /gems send|give|add|set please.
This would really help thanks.
-
View User Profile
-
Send Message
Posted Jun 19, 2015@TheBusyBiscuit
http://pastebin.com/uEzzC0vu What is wrong? I can't get it to work! It just returns false.
-
View User Profile
-
Send Message
Posted Jun 19, 2015@mitymarcus
getBalance() ...
-
View User Profile
-
Send Message
Posted Jun 19, 2015@TheBusyBiscuit
Is there a UpgradeManager.getManager().currency.hasEnough(); or anything simelar?
-
View User Profile
-
Send Message
Posted Jun 15, 2015@TheBusyBiscuit
God i'm an idiot... xD
-
View User Profile
-
Send Message
Posted Jun 14, 2015@mitymarcus
...
Just add it to your Build Path like you do it with Bukkit
-
View User Profile
-
Send Message
Posted Jun 14, 2015@TheBusyBiscuit
Ok! :) I got reread your post and realized I was being a knucklehead. XD... how do I point my plugin to your plugin in the /plugins/ folder? Maven? if so, how?