LEAKERS NOTE: This resources is donated by @GalacticDev
Original Link: https://www.spigotmc.org/resources/treasures-pro.14178/
Please Give me a positive rating as a token of appreciation
DONATION: Want more plugins donate any amount to
paypal.me/qtchan
Tested Minecraft Versions: 1.8, 1.9, 1.10, 1.11, 1.12Original Link: https://www.spigotmc.org/resources/treasures-pro.14178/
Please Give me a positive rating as a token of appreciation
DONATION: Want more plugins donate any amount to
paypal.me/qtchan
Logo & images by the fabulous @funnycube
This plugin offers:
This plugin offers:
- Infinite rarities, rewards!
- 100% customizable inventory menu! You may add design, or Treasure Chests.
- MySQL and config key support, or you can open Treasures using your balance with Vault!
- Mulitple Currency types, including TokenEnchant!
- API to create your own opening effects, and result effects!
- No Java Knowledge? You may use the current opening effects, and customize them as you like!
- And much more!
/treasures edit » Add or Remove Treasure Openers
/treasures keys » Give, or take keys from players!
/treasures open » Opens the Treasure Menu for the specified locations. Good for non-block treasure openers!
/treasures reload » Reloads config.yml
/treasures open » Opens the Treasure Menu for the specified locations. Good for non-block treasure openers!
/treasures reload » Reloads config.yml
treasures.help » Permission to check /treasures commands
treasures.edit » The permission to use /treasures edit
treasures.keys » Modify user's keys using /treasures keys
treasures.reload » Reload the config through /treasures reload
treasures.open » Ability to use the command /treasures force
treasures.effects » Check all the effects available from /treasures effects
treasures.keys » Modify user's keys using /treasures keys
treasures.reload » Reload the config through /treasures reload
treasures.open » Ability to use the command /treasures force
treasures.effects » Check all the effects available from /treasures effects
Vault
Any Permission Plugin
(PermissionEx, Group Manager)
Money plugin
(Fe, Essentials, iConomy)
Java 8
(Version 2 of this is "Totem")
This section has no use for server owners, but for developers.
Code:
TreasuresChestOpenEvent
@EventHandler
public void open(TreasuresChestOpenEvent e) {
int price = e.getPrice();
String chestName = e.getChestName();
ItemStack item = e.getChestItemStack();
TreasureChestOpenResult result = e.getResult();
if(result == TreasureChestOpenResult.SUCCESS) {
System.out.println("Successfully opening the chest. Make sure to always check the result, because the event is also called, when you don't have enough money!!");
}
}
Code:
TreasuresFindRewardEvent
@EventHandler
public void find(TreasuresFindRewardEvent e) {
int value = e.getValue(); //referring to money value
String reward = e.getRewardName();
ItemStack item = e.getRewardItemStack();
String rarity = e.getRarity();
}
Code:
TreasuresKeys
TreasuresKeys.addKey(p.getUniqueId().toString(), "foxy-treasure", 1); //Always use UUID!
TreasureKeys.addKey(p, "foxy-treasure", 1, true); //OfflinePlayer here
TreasureKeys.setKey(p.getUniqueId().toString(), "foxy-treasure", 1);
TreasureKeys.getKey(p.getUniqueId().toString(), "foxy-treasure");
To continue, you should add Treasures as a dependency.
Create a new class, that extends TreasuresOpeningEffect
My example will be the HoverBlock Opening effect.
Inside the super(...); you will type the animation's name.
Next you need to make a playAnimation method.
Inside the method, you can write your animation.
Location is the location where the item will fall, it's not centerized, so if you want to summon an entity there, you should add 0.5 to its x and z coordinates.
You shouldnt worry about the item (ItemStack)
the openingParticle is.. Well, the opening-particle from config file.
If the opening particle is FLAME, you would access it with openingParticle[0]
If the opening particle is something like FLAME/REDDUST, it will be split to FLAME (openingParticle[0]) and REDDUST (openingParticle[1])
After you are done with your animation, you will have to end it with reward(); and spawnResultEffect();
Now go to your onEnable(), and register the Opening Effect.
And you are done!
Create a new class, that extends TreasuresOpeningEffect
My example will be the HoverBlock Opening effect.
Inside the super(...); you will type the animation's name.
Next you need to make a playAnimation method.
Inside the method, you can write your animation.
Location is the location where the item will fall, it's not centerized, so if you want to summon an entity there, you should add 0.5 to its x and z coordinates.
You shouldnt worry about the item (ItemStack)
the openingParticle is.. Well, the opening-particle from config file.
If the opening particle is FLAME, you would access it with openingParticle[0]
If the opening particle is something like FLAME/REDDUST, it will be split to FLAME (openingParticle[0]) and REDDUST (openingParticle[1])
After you are done with your animation, you will have to end it with reward(); and spawnResultEffect();
Now go to your onEnable(), and register the Opening Effect.
And you are done!
These are addons, made with Treasures' API!
- RecentFind by RobiFoxx: Show players what was their last, and first rewards!
- RawMsg by funnycube: Send players RawMSG (Not really an addon, however, useful for rewards)
- If you have an addon for Treasures, and want to see it here, PM me!
- testplugins.com
- You may not -Redacted-/resell this plugin.
- You may not decompile this plugin.
- You may only use it on only one server, or proxy/network.
- No refunds
- I may change the price any time I want. You decide when you buy it.
- If I decide to change the Terms of License, I will clarify it in the next update log.
- Do not leave bad ratings just because there's a missing feature, or a bug. You can always request it to add,- or fix it.
- By downloading the Plugin, you agree to the Terms of License
- You will not get support for older versions. Use the newest one.
I will not reply to any conversation, or posts from users, who aren't on the buyer list. If you are a 'configurator' or anything like so, tell the buyer (who bought the plugin) to reply here.