TradingCards
TradingCards!
With this plugin, you can collect Trading cards through a variety of different ways. From mob drops to spending time on the server. You can collect them and trade them with your friends! There are card binders that you can store your cards in! The lore of the card binders will automatically update to show you how many cards are in each binder.
UPDATE v1.0.4 has Default Cards!
WARNING
If you are using NoLagg, make sure you either disable item stacking or exclude BOOK and PAPER from being stacked. Otherwise, users will be able to stack multiple cards together to get a whole stack of one card.
GITHUB - Please check out the Github for source code and to track progress on updates!
1.1 Planned
- Crafting perms
- Block card drops
- Card Decks
- Economy support
- Per-Mob drop chances
- If you have more suggestions add them HERE.
Bleeding Edge/Testing
For Bleeding edge builds, contact me on skype: travja4 and make sure that you include TradingCards in your invite request :D
Crafting
This is how to craft a card binder:
Quote from Travja:NOTE: To craft say a Card Binder 2, simply put a Card Binder 1 and a regular book inside a crafting table, this will create a Card Binder 2. For 3, put in a 2 and a book. So on! :D
This is how to craft cards of varying rarities:
Have a feature request?
Add it here: https://github.com/travja/TradingCards/issues
Commands
Commands are as follows:
- /tc help - Displays help page!
- /tc list - Shows a list of available cards
- /tc create <Card Name> <Type> <Series> <Attack> <Defense> <Rarity> [Details] - Creates a new card!
- /tc edit <Card Name> <Property> <Property Value> - Edits the card, properties are Type, Series, ATK, DEF, Rarity, and Details
- /tc delete <Card Name> - Deletes the given card! THIS REMOVES ALL DATA FROM THE CARD AND YOU CAN NO LONGER USE IT!
- /tc rename <Card Name> <New Name> - Renames the new card!
- /tc reload - Reloads the plugin!
- /tc give <Card Name> - Gives you the specified card!
- /tc giveaway - Gives all online players a random card!
Permissions
Permissions are:
tradingcards.*: description: Gives full access to trading cards default: op children: tradingcards.reward: true tradingcards.give: true tradingcards.giveaway: true tradingcards.create: true tradingcards.rename: true tradingcards.delete: true tradingcards.reload: true tradingcards.reward: description: Gives ability to get card every x hours default: true tradingcards.give: description: Gives ability to use /tc give <name> default: op tradingcards.giveaway: description: Grants access to /tc giveaway default: op tradingcards.create: description: Grants access to /tc create default: op tradingcards.rename: description: Grants access to /tc rename and /tc edit default: op tradingcards.delete: description: Grants access to /tc delete default: op tradingcards.reload: #Coming SOON! :D description: Grants access to /tc reload default: op
Configuration
Configuration is as follows:
# default config.yml ################################################# # \/\/\/\/ This is all you should really care about! #Cards: # List: # - Pikachu # - Pika # Rarity: # Common: # - Pikachu # Uncommon: # - Pika # defaults: # After creating cards, this is a list of cards that will automatically show up in a players binder # - Pikachu # - Pika ################################################# Reward: # How often all online players should be given a card (Minutes) Time: 60 # What rarity of card should be given Rarity: Common # When using programmed crafting item, this rarity of card should be crafted # You can add say Apple and a rarity and then can use Apples to craft # You MUST make the first letter capital and the following lowercase Crafting: Leather: Common Iron_ingot: Uncommon Gold_ingot: Rare Diamond: Ultra-Rare # % out of 100 that a card will drop from the mob, and then what type of mob will drop what rarity of card. Drops: Hostile: Chance: 5 BLAZE: Ultra-Rare CAVE_SPIDER: Uncommon CREEPER: Rare GHAST: Ultra-Rare MAGMA_CUBE: Rare SILVERFISH: Uncommon SKELETON: Common SLIME: Uncommon SPIDER: Common WITCH: Ultra-Rare WITHER_SKELETON: Rare ZOMBIE: Common Neutral: Chance: 10 ENDERMAN: Rare PIG_ZOMBIE: Uncommon WOLF: Uncommon Passive: Chance: 3 BAT: Uncommon CHICKEN: Common COW: Common MUSHROOM_COW: Rare PIG: Common SHEEP: Common SQUID: Common VILLAGER: Common Bosses: Chance: 100 ENDER_DRAGON: Ultra-Rare WITHER: Ultra-Rare # DEFAULT CARDS, You can add to this for your own cards or use the in-game commands! Cards: List: - Ponyta - Charmander - Beldum - Pidgey - Regigigas - Gyarados - Seel - Pikachu - Kabutops Rarity: Common: - Ponyta - Charmander - Pidgey - Seel - Pikachu Rare: - Regigigas Ultra-Rare: - Gyarados Uncommon: - Beldum Ponyta: Type: Fire Series: 2007 ATK: '30' DEF: '60' Rarity: Common Details: A Basic Fire Pokemon Charmander: Type: Fire Series: 2008 ATK: '30' DEF: '50' Rarity: Common Details: A Basic Fire Pokemon Beldum: Type: Metal Series: 2007 ATK: '30' DEF: '50' Rarity: Uncommon Details: A Basic Metal Pokemon Pidgey: Type: Normal Series: 2007 ATK: '20' DEF: '50' Rarity: Common Details: A Basic Normal Pokemon Regigigas: Type: Normal Series: 2008 ATK: '60' DEF: '100' Rarity: Rare Details: A Rare Normal Pokemon Gyarados: Type: Water Series: 2006 ATK: '80' DEF: '90' Rarity: Ultra-Rare Details: A Ultra-Rare Water Pokemon, Weak to electricity Seel: Type: Water Series: 1995 ATK: '10' DEF: '60' Rarity: Common Details: A Basic Water Pokemon Pikachu: Type: Electricity Series: 2008 ATK: '40' DEF: '70' Rarity: Common Details: A Basic Electric Pokemon Kabutops: Type: Electricity Series: 2006 ATK: '40' DEF: '100' Rarity: Ultra-Rare Details: Very Rare Electric Pokemon defaults: - Charmander - Pidgey - Seel
If you want more awesome plugins, be sure to hit this button
More information will be added as Development increases! For now, post your suggestions! :D
@travja
I've been trying my best to re-create it, but it's just not at the moment. When it does start going, it keeps going though, if that helps.
@Gametista
That is a really weird error log... Can you tell me how to produce the error?
@travja
Sorry for the delay, was out for the weekend.
I've pastebinned a bit of my log, hopefully this is what you mean:
http://pastebin.com/VkfwxiNd
@Gametista
In order to diagnose that error log I need the whole thing. Pretty much when you see an error log send me the line that says could not pass... And all lines including and after the caused by line. As for wither drops, I'll look at my code. And can I see your config?
@travja
Right, sorry about that.
I do have another bug to report:
Caused by: java.lang.NullPointerException 2013-07-20 06:58:28 [SEVERE] Could not pass event InventoryClickEvent to TradingCards v1.0 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_6_R2.PlayerConnection.a(PlayerConnection.java:1393) at net.minecraft.server.v1_6_R2.Packet102WindowClick.handle(SourceFile:31) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:235) at net.minecraft.server.v1_6_R2.PlayerConnection.e(PlayerConnection.java:118) at net.minecraft.server.v1_6_R2.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:125) at net.minecraft.server.v1_6_R2.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R2.DedicatedServer.t(DedicatedServer.java:239) at net.minecraft.server.v1_6_R2.MinecraftServer.s(MinecraftServer.java:481) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:413) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.NullPointerException
I did turn make the reward time 0, so not sure if that had an effect on things, but I didn't want to give out any cards to folks online.
Also: The Wither dropping a card when set to 100 does not always drop a card. Strangely, I killed 5 Witches afterwards and received a card, however.
@Durtturbine
Adding them with notepad like that gives them no data. They then have no attack,def,series, anything, so it has nothing to get to put data in the card.
Manually added them with notepad should i use the ingame commands?
@Durtturbine
Did you manually add them to the config or did you make them with /tc create
@Debzy86
Do you have terraincontrol installed?
@Gametista
Remember to craft the next binder you put a binder and a book in the crafting table.
Oh also a bug to report:
When creating a binder for the cards, it doesn't create a new number of binder. So basically no matter how many you create, you create the same binder over and over again that has the same card(s) in it you put in.
Basically it stays: Card Binder 1 No matter how many times you create a new binder. Each new binder also has the same cards you've placed inside before.
Request: - A reload option for the plugin. I know it's not always optimal to do that, but for something like this, it would be extremely handy. - Perhaps a way to delete cards besides the config. Unless I totally missed that it's already in the plugin???
Keep up the great work and thank you!
@Durtturbine
It's working perfectly for me. Have you created a card and marked it as "common" then tried crafting with leather? In the config, whatever you specify as the "rarity" is what will determine if it can be created or not. Hope that makes sense.
@JamsyBoy14
I believe the author intended it as something like: Series 1 cards, Series 2. Sort of like real collectible cards can have a "series". It's to give you more flexibility with what to do with them I assume.
Just wanted to say up front, this is an amazing plugin and im in love with it. But there's a problem with mine, I'm not sure if i set it up wrong or its just not working. Everything works except when i go to craft a card using the above recipe. Nothing comes from the output. Whenever you get a chance could you help me out?
Edit: Here is my config. http://pastebin.com/nzBjPB7b
I am enjoying the plugin. However, what do you mean by <series> when creating a card? Also, how do you put a card in a binder?
@travja
Well, it's up now. Thanks!
Hello!
We've been using this for about a week and it was working fine, then all of a sudden it's stopped working correctly. We were using the original version and I've just tried upgrading it but we still have the same issues! None of the commands are working, we just get use /TC help for help (even when we type /TC help!)
The card lists etc are all still present in the config file, nobody has messed with anything, and we aren't getting any errors in console that I can paste for you unfortunately. Any idea what might cause this?
Debz x
@techdude23
If it were approved it would be up.. Don't know why it's taking them so long!
@travja
Approved yet? I'm still getting the errors
@techdude23
New build is posted, awaiting approval!
@travja
Awesome! Thanks.
@techdude23
Ah! I think I know what the problem is, will remove this error tomorrow :D
@foreverblu
I compile with Java 6. I would suggest updating your java to 7 if you can, if not make sure your Java 6 is up to date. http://java.com/