Treasures [PRO]

 Treasures [PRO] 3.0-pre11

Treasures [PRO]
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.12
o0xfEa0.png

Logo & images by the fabulous @funnycube
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!
pdzewCP.png

/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​
h9iWBgb.png

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​

dHM1uV7.png

Vault
Any Permission Plugin
(PermissionEx, Group Manager)​
Money plugin
(Fe, Essentials, iConomy)​
Java 8
EvGvbLh.png

c00f2bf4f4ec4d0f9c5ff20d62f1bb8c.png

74e6294ee3b148d6a65c21ed5cb7c387.png

ffTP0Oh.png

CucQynLpT9qkY8qTid8NwQ.png

b8bd63e40aa2f8821880353710a4f2c7.gif

(If you can't see the picture, click here)
678b53aed2b397d79fd2af5b6ba76d55.gif

(If you can't see the picture, click here)
5f41fd9de2ed3c77cb0a6eed210fef00.gif

(Version 2 of this is "Totem")
84d7d681b7b95c90a400d433069f803e.gif
063f3d6a98db461848dd93f53c2b9b63.gif

(If you can't see the picture, click here)
b68a624f6bccd32bb81965eb2550920f.gif
a8f244387deaf7d3762e9358c4e81f9c.gif
85ca2d481ae3a56760b3defedcc72132.gif

(If you can't see the picture, click here)
687852419047dafd8387ea9277bf762e.gif

(If you can't see the picture, click here)
lG8OZAB.png

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.
l2Z7Fe66SCmWpgptlClVFA.png

Inside the super(...); you will type the animation's name.
Next you need to make a playAnimation method.
-1Hcv4L_TfGlo1TDAJGZFw.png

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();
O3qFCI96RnO6SndzwAqaIQ.png


Now go to your onEnable(), and register the Opening Effect.
m89UoZgIQsWxoKQtIn7LYQ.png

And you are done!


TpgQau2.png

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!
4xAjWLR.png


FS2e90Q.png

  • testplugins.com
SuYm38z.png

  • 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.
oIvyvV7.png

Similar resources

Treasures [PRO] BlackSpigot.com
  Treasures [PRO] 3.0-pre22.7
One of the best crate plugins you will need on your hub server!
3.50 star(s) 2 ratings
Downloads
311
Updated
Treasures [PRO] MikeyBoy
One of the best crate plugins you will need on your hub server!
4.67 star(s) 3 ratings
Downloads
420
Updated
Treasures [PRO] T0R&CM
One of the best crate plugins you will need on your hub server!
5.00 star(s) 2 ratings
Downloads
136
Updated
BlackSpigot General Chat
Rules Help Users
    BlackSpigot.com @ BlackSpigot.com: my vip was not activated Hello, PM me the email you used to pay.
    Top