Xen's Trading Cards
5.0.4Highly configurable 'trading card' mob drops! Collecting & trading fun for ANY server!
5.0.4latestBackwards compatibilityAug 8, 2020 Plugin now works (haven't tested extensively) on 1.14 and 1.15 as well as 1.16.5.0.3MythicMobs supportAug 8, 2020 Hey, just got done with basic mythicmobs support. Currently you're able to put in separate chances for every rarity for as many mythic mob levels as you want - so you can have lv0/lv1 mobs only give common cards, or lv10 mobs only give shiny legendaries. It's up to you! New config section looks like this, add this below MobArena in the 'PluginSupport' section: Code (Text): MythicMobs: MythicMobs-Enabled: false # Chance chance/rarity based on the level of the mob? Per-Level-Chances: true # With this you're able to set the individual rarity chances of every mythic mob level. # For example, you could make it so level 100 boss-type mobs always drop shiny legendaries. # You can add as many levels as you want, if a mob is higher than the highest level here, # its chances will be based on the highest level in this config. E.G. if you only have # levels 0-5 here and you kill a level 10 mob, it will use the level 5 chances. Levels: 0: Shiny-Version-Chance: 1 # 'Drop-Chance' is the chance a card will drop AT ALL. This should be chance out of 100 (Drop-Chance: 10 = 10% chance) # For rarities: 100,000 = 100% chance, 10,000 = 10% chance, 1000 = 1% chance, 100 = 0.1% chance, 10 = 0.01% chance, 1 = 0.001% chance Drop-Chance: 10 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 1 1: Shiny-Version-Chance: 1 Drop-Chance: 20 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 1 2: Shiny-Version-Chance: 1 Drop-Chance: 30 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 1 3: Shiny-Version-Chance: 1 Drop-Chance: 40 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 1 4: Shiny-Version-Chance: 1 Drop-Chance: 50 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 1 5: Shiny-Version-Chance: 1 Drop-Chance: 75 Rarities: Common: 100000 Uncommon: 20000 Rare: 1000 Very Rare: 10 Legendary: 15.0.2Pack upgrades & brand changeAug 7, 2020 Rename your plugin folder from xPTradingCards to TradingCards. This has been changed! 1. Fixed an issue where spaces in card names causes decks not to save. 2. Added a feature where cards obtained from packs have a configurable chance to 'upgrade' to the next rarity E.G. 10% chance for an uncommon card to become rare. You can do this by adding this to your config: 3. Added basic code to allow SQLite support in the future. Not currently working.5.0.11.16.1 update finally.. yay!Aug 5, 2020 Been a while, sorry for disappearing. Big thanks to @zThana for expediting this update with their work <3 I haven't been able to do extensive testing, but I messed around with decks and all of the functionality in a test 1.16.1 environment and it seemed all okay. Please let me know ASAP if you find anything that needs fixing! I will be updating this further. I'm planning for a full brand change (xP// isn't really relevant here anymore..) and it should be a shiny new update for all of you who've loved this plugin for so long. Thanks for keeping the dream alive!5.0.01.13.2 UpdateMar 11, 2019 · Updated to 1.13.2 · Re-added rewards · Fixed some issues with hands · Haven't tested extensively, may have problems? Let me know!4.20-EMEMERGENCY DOWNGRADEAug 16, 2016 There is a very dangerous bug with rewards that I am working on fixing. Please use this version which disables the use of rewards, or disable rewards in the config for now. Very sorry!4.21Rewards!Aug 15, 2016 Added rewards for collecting a whole rarity. Using the above command (/cards reward <name>) you can claim a prize by trading in one of each card from a rarity. If you don't have a completed rarity (can check in /cards list), it won't let you trade it for a reward. If you have a complete rarity, it will give you the configured reward, broadcast a message (configurable) and eat the cards involved (if you have multiples, it will only take 1). It will not take shiny cards into consideration unless configured to. As they're extremely rare by default, I've set the default value of it to keep shiny cards safe. As shown here, it's deleted the cards I only have 1 of in my decks and removed 1 of the ones I had multiples of. Rarities: Common: Colour: '&7' RewardCmd1: 'eco give %player% 100' RewardCmd2: 'give %player% diamond 8' RewardCmd3: 'None' Uncommon: Colour: '&9' RewardCmd1: 'eco give %player% 200' RewardCmd2: 'give %player% diamond 16' RewardCmd3: 'None' Rare: Colour: '&e' RewardCmd1: 'eco give %player% 500' RewardCmd2: 'give %player% diamond 32' RewardCmd3: 'None' Very Rare: Colour: '&6' RewardCmd1: 'eco give %player% 1000' RewardCmd2: 'give %player% diamond 64' RewardCmd3: 'None' Legendary: Colour: '&a' RewardCmd1: 'eco give %player% 1500' RewardCmd2: 'give %player% diamond 64' RewardCmd3: 'manuadd %player% Collector' Click to expand... As seen in the new rarities section, you can supply up to 3 commands to be run when a user 'cashes in' a rarity.4.20Booster pack fixes.Aug 13, 2016 >>>>4.0Big update!Aug 11, 2016 Fixed: 1) Rewrote a lot of the way cards are generated, now player cards will actually work properly in decks and won't be eaten. (Names like _Test_1_2_3_) Changed: 1) The main command structure has been changed from /xptc to /cards. You'll have to use that command from now on, and change all the messages from xptc to cards. Added: 1) Natural giveaways. You can have a choice in the scheduled giveaway to give a card as if it was dropped from a certain mob. For example, you could schedule cards to be dropped as if they were from Zombies, which would be mainly common with a chance of higher rarities. 2) Also with the above, you can now use /cards giveaway [Mob] to giveaway a natural card to everyone on the server. You can still /cards giveaway [Rarity]. 3) Added a 'Use-Large-Decks' section to the config. If true, decks will be doubled in size - to be double chests. Please check the default config files on the main page of the plugin for the new default values.3.5.4Fixed a bug where decks wouldn't open sometimes.Aug 2, 2016 Fixed a bug where decks wouldn't open sometimes.3.5.3Reworked some logic.Aug 2, 2016 Reworked the logic upon saving decks, this fixed a rather massive bug. Before, if you had both Zombie and Zombie_Pigman in the same rarity, it'd glitch out and save the Zombie_Pigman card as Zombie. This reworks the logic so that it'll more effectively save the cards.3.5.2Experimental bug fixAug 2, 2016 Experimental fix for /xptc list kicking players.3.5.1Hopefully fixed a bug.Aug 1, 2016 Hopefully fixed a bug where you couldn't open decks if an error occurred with a card.3.51.8 and 1.9 support!Jul 31, 2016 Added experimental version support. It should work with 1.7, but I haven't tested it. 1.9.4 server, this version of xPTC (all works in-game) 1.8.6 server, this version of xPTC (all works in-game) 1.10 server, this version of xPTC3.4.5Some changes.Jul 31, 2016 - Fixed a bug where if you only had a deck that wasn't the first, /xptc list wouldn't work properly. - /xptc now aliases to /cards, with the same permissions. By changing all instances of xptc in messages.yml you can change the whole plugin to use /cards. - /xptc list now shows your progress in collecting an entire rarity. There's a new setting in the config.yml "Colours" section to configure what colour Complete should be: Code (addtoconfigymlcolours (Unknown Language)): ListRarityComplete: '&e' - Added a bunch of new default cards, ones that I've missed out too. Check out the plugin front page for the updated default config.3.4.4Bug fix + new config setting, new messages.Jul 30, 2016 Fixed a bug where you could open decks in creative if use-deck-item is false. New config setting (in General) Code (Text): # Should we be allowed to use decks in creative? Decks-In-Creative: false New message Code (Text): DeckCreativeError: 'You are not allowed to use decks in creative!'3.4.3Bug fix + new config setting.Jul 29, 2016 Fixed a bug where /xptc resolve wouldn't work from console and would throw an error instead. Also changed the ResolveHelp message to include an apostrophe (players -> player''s) New config setting: Put this in the General: section Code (Text): # Should we get a deck item or simply open the deck straight away with /xptc getdeck #? Use-Deck-Item: true3.4.2Few new commands, permissions and messages.Jul 29, 2016 New commands: [xptc.resolve] /xptc resolve (name) - Returns the players UUID to make decks.yml editing easier. This defaults to OP only. [xptc.list.others] /xptc list (name) - Shows the list collection of another online player. This defaults so that all players can use it. New messages (in messages.yml): Code (Text): ListUsage: '/xptc list (<playername>)' ListError: '%name% is not online!' ListHelp: 'Lists all cards on the server.' ResolveUsage: '/xptc resolve <playername>' ResolveHelp: 'Shows a players UUID.' ResolveMsg: '%name% = %uuid%' ResolveError: '%name% is not online!'3.4.1Added two new configurable settings.Jul 29, 2016 Added two new settings in the Colours section. Add this to the bottom of the Colours section in your config.yml: Code (Text): # What colour should /xptc list give to cards owned in decks? ListHaveCard: '&a' # What colour should /xptc list give to shiny cards owned in decks? ListHaveShinyCard: '&e&l'3.4Towny support fixed + new additionJul 29, 2016 Towny support was kinda broken, it was throwing errors. This update fixes the problem and also adds nation support - it will create cards for new nations as well as towns. Code (updatedconfigsection (Unknown Language)): PluginSupport: Towny: Towny-Enabled: true Allow-Duplicates: true Town-Duplicate-Prefix: '' Town-Duplicate-Suffix: '_v%num%' Town-Rarity: Common Town-Series: 'Towny' Town-Type: 'Town' Nation-Duplicate-Prefix: '' Nation-Duplicate-Suffix: '_v%num%' Nation-Rarity: Uncommon Nation-Series: 'Towny' Nation-Type: 'Nation' Has-Shiny: true3.3/xptc list updatesJul 29, 2016 This one took a while, I hope you guys enjoy it! /xptc list now displays which cards you own in decks. Gray means you don't have the card, green means you have it, and yellow+bold means you have the shiny version of that card. This'll help people secure their collections.3.2Bug fixJul 28, 2016 THIS UPDATE ONLY SUPPORTS 1.10+ DUE TO POLAR BEARS Fixed a bug where putting regular paper into your deck destroys the item regardless of config setting.3.1Better security for non-card items in decksJul 27, 2016 NEW CONFIGURABLE CHECK FOR NON-CARD ITEMS IN DECKS: //Add this to the bottom of the General section of the config.yml: Drop-Deck-Items: true This set to true will drop all items that aren't cards put into decks. If it's false, it will just delete the item as done previously.3.01.9 / 1.10 support.Jul 27, 2016 Added 1.10 support. Shulker and Polar Bear can now drop cards.2.9Info split.Aug 4, 2015 Card info now splits at a configurable point (by default 25), so cards with very long info sections don't go off the screen. You can use colours here, but they will not work as you expect them to due to item lores being lists rather than one single string. Add this to the General: section of the main config.yml: Code (Text): Info-Line-Length: 252.8MobArena support!Aug 4, 2015 I have added experimental mob arena support. Please add this to the PluginSupport section of your config.yml: Code (Text): MobArena: MobArena-Enabled: false Disable-In-Arena: true2.7Bug fixes, pack lists.Aug 3, 2015 · Added a new command, /xptc listpacks. This has the permission xptc.listpacks and will require you to update your messages.yml with the one on the main plugin page to work properly. · Fixed a bug where you couldn't use givecard, giveaway or giveshinycard with rarities that have spaces in the name. Simply use an underscore instead (/xptc givecard Very_Rare, for example) · Fixed a bug where it wouldn't reload properly. If this issue still persists, try reloading twice.2.6Updates!Aug 3, 2015 · Updated to 1.8.8 spigot. · Possibly fixed the cards file reload issue. · Limited number of cards shown in /xptc list due to Minecraft kicking players if you have a lot of cards. · Removed plugin metrics.2.5Fixed bug, added to credits, added metrics.Aug 2, 2015 1. Fixed a bug where you could open booster packs multiple times. Sorry! 2. Added some guys to the credits. 3. Added plugin metrics, finally. Hopefully it works.2.4Extra rarity in booster packs.Aug 2, 2015 Want to add a third rarity to booster packs? while I rework the framework to be a bit easier to change, I've added an optional 'extra' cards section. Code (Text): Demo_Pack_2: NumNormalCards: 5 NormalCardRarity: Common NumExtraCards: 3 ExtraCardRarity: Uncommon NumSpecialCards: 1 SpecialCardRarity: Rare Price: 100.00 Just put the new sections in any booster packs where you want three rarities to be given.2.3Command update. Start of the partial rewrite.Jul 27, 2015 Plugin has been partially rewritten, meaning a few things are a lot more efficient than before! woo. Commands are now displayed in a much more pleasing format, with a configurable server name. There is now a 'hidden' /xptc credits command which lists everyone who's supported the plugin at the time of the update, this will grow with time. New sections under General in the config.yml, add these: Code (Text): General: # Server name? Server-Name: 'Server' # Should we show the command usage in /xptc? (what the command does) Show-Command-Usage: true # If your server is not running the latest MC version, set this to FALSE Hide-Enchants: true If your name is PTsandro, or you have a server that's a bit old, set Hide-Enchants to false Oh, and plenty of new messages, so refresh the messages.yml whenever you can (delete and reload).2.2Big bug fixesJul 27, 2015 Thanks to PTsandro for finding the main bug and helping me find all the others ^^ Fixed some big bugs. Reload now reloads card data (don't know why it didn't to begin with), decks now properly save cards with multiple words in the name (more than 2).2.1BugfixJul 26, 2015 Hopefully fixed the reloading issue.2.0BIG update! Read to see all that's changed.Jul 26, 2015 · We now have decks! These are personal inventories, opened by a book, which can store your cards. The cards are saved to a file so you will never have to worry about losing them! You cannot put anything other than trading cards into decks, if you do, they will be dropped when you exit the deck inventory. Also, they support UUIDs. · Decks are numbered, so you can have as many as you want. Each one has their own specific permission - xptc.decks.1, xptc.decks.2 etc. If you want one rank to have up to 3 decks, give them the decks 1, 2 and 3 permissions. If you want unlimited decks, give xptc.decks.*. · You can get a deck by using /xptc getdeck <number> and right clicking the item it gives you. · Decks are very easy to backup and fix if something goes wrong thanks to the plain-English serialization I've used in the decks file: · The cards, decks and messages now have their own separate config files. This should make management and updating a LOT simpler. You can remove the whole Cards: and Messages: sections from the config now (or paste them into the new files if you've made any changes) to enjoy a nice clean config. · Fixed a bug where giving yourself a normal card with /xptc givecard would sometimes give a shiny. Woop!1.9Removed useless config sections.Jul 24, 2015 This whole card section can be removed now: Code (Text): # Optional card enchant. Enchant-Normal-Cards: false Card-Enchant: ARROW_INFINITE Card-Enchant-Lvl: 10 # Optional shiny card enchant. Enchant-Shiny-Cards: true Shiny-Enchant: ARROW_INFINITE Shiny-Enchant-Lvl: 10 I've also reworked a bit of the code, so it's a bit lighter now.1.8Hidden enchants!Jul 24, 2015 Enchants on shiny cards and booster packs are now hidden. They still glow, but it won't say 'INFINITY X' at the top any more.1.7Removed debug messageJul 24, 2015 Removed debug message that showed whenever a player died.1.6New command, fixed a bug.Jul 24, 2015 New command - /xptc giveshinycard. This gives you the shiny version of any card, if you want to test your title formatting etc. This has the permission "xptc.giveshinycard" I also fixed a bug where underscores weren't being translated to spaces. oops.1.5Customizable card lore!Jul 24, 2015 There is now an 'About' for cards. This serves as an extra section if you need it, it's not added by default. With this, you can basically make cards whatever you want: The new config section is as follows: Code (Text): DisplayNames: Cards: # Title placeholders: # %PREFIX% (the prefix at the start of the config) # %COLOUR% (rarity colour) # %NAME% (card name) # %COST% (card buy-price) Title: '%PREFIX%%COLOUR%%NAME%' ShinyTitle: '%PREFIX%%COLOUR%%SHINYPREFIX%%NAME%' Series: 'Series' Type: 'Type' Info: 'Info' About: 'About'1.4World blacklist!Jul 22, 2015 This update adds a world blacklist. If you don't want cards dropping from mobs in certain worlds, you can simply add it to a blacklist! New section: Code (Text): World-Blacklist: # Don't want cards dropping in certain worlds? Add it here! - Creative1.3Closed economy!Jul 22, 2015 There is now a section under Vault for a closed economy. This means all money from things that are bought will go into a specific account. Code (Text): Vault: Vault-Enabled: false # Is the server running a closed economy? if so, whose account should money go into? Closed-Economy: true Server-Account: TradingCards-Bank1.2Vault hooks!Jul 22, 2015 WE HIT 1,000 LINES OF CODE! WOO The plugin now supports Vault, meaning you can set prices for cards and booster packs to be bought by players with your economy. There are two new commands (if you enable the hook): /xptc buy pack Pack_Name - will buy the pack specified. /xptc buy card Common Zombie - will buy the card specified. The new booster pack section in the config looks like this: Code (Text): BoosterPacks: Demo_Pack: NumNormalCards: 9 NormalCardRarity: Common NumSpecialCards: 1 SpecialCardRarity: Rare # If vault hook is enabled, how much this booster pack costs. Price: 100.00 And, if you want players to be able to buy cards, simply add this below Info on any card: Code (Text): Buy-Price: 100.00 /xptc worth shows you how much the card you're holding costs to buy. New messages: Code (Text): BuyUsage: '/xptc buy pack|(card) (<rarity>) <name>' WorthUsage: '/xptc worth' CanBuy: 'This card can be bought for %buyAmount%!' CanNotBuy: 'This card cannot be bought!' ChooseCard: 'Please specify a card!' ChooseRarity: 'Please specify a rarity!' ChoosePack: 'Please specify a pack!' CannotBeBought: 'This cannot be bought!' NotEnoughMoney: 'You do not have enough money to buy this!' BoughtCard: 'Successfully bought for %amount%!' NotACard: 'You need to be holding a card!' CardDoesntExist: 'That card does not exist! Make sure to use the exact card and rarity names with proper capitalization.' PackDoesntExist: 'That pack does not exist! Make sure to use the exact card and rarity names with proper capitalization.' NoVault: 'This server has disabled economy interactions!'1.1.0Reworked schedulerJul 19, 2015 Reworked the scheduler. Let's try this again!1.0.9BugfixJul 19, 2015 Possibly fixed the scheduler issue. Hopefully.1.0.8Booster pack change.Jul 18, 2015 You can now open booster packs in the adventure game mode as well. I changed the logic slightly so now it blocks ONLY if you're in creative. I plan to make this configurable sometime.1.0.7Fix for booster packs.Jul 18, 2015 Booster packs will now give card rarities that have spaces in the name. Sorry!1.0.6Optimization!Jul 17, 2015 Optimised the code a bit, difference will probably be in the microseconds but it's still a difference1.0.5Shiny card enchants!Jul 16, 2015 Shiny card and regular card enchants (if applicable) are now separate, and shiny cards by default are enchanted (to be shiny). All configurable, though! Here's what's changed in the General section: Code (Text): # Optional card enchant. Enchant-Normal-Cards: false Card-Enchant: ARROW_INFINITE Card-Enchant-Lvl: 10 # Optional shiny card enchant. Enchant-Shiny-Cards: true Shiny-Enchant: ARROW_INFINITE Shiny-Enchant-Lvl: 101.0.4Black/whitelist!Jul 16, 2015 There's now a blacklist (or whitelist if you set that) where you can disable card drops for yourself using /xptc toggle.1.0.3Towny hook fixJul 16, 2015 Fixed the Towny hook showing an error on plugin load. Cleaned up the code a little bit, too.1.0.2Big bug fix, towny support.Jul 16, 2015 · Fixed a big bug - the auto player add feature didn't work with the new string rarity names so would break. I've fixed this in this version. · Towny support! There's now a section in the config where you can set new towns to become cards. · Cleaned up the code a little bit.1.0.1Shiny card updateJul 15, 2015 Made shiny cards customizable, you can now set the prefix 'shiny' cards will get in the config.1.0Out of beta! Big update, a lot of code rewritten and booster packs!Jul 15, 2015 Quite a bit has changed, please read this update to know what. · I've rewritten a LOT of the rarity code, meaning rarities are now strings rather than integers. What this means is the config will be a lot easier to read and use, but if you're using an old config you may need to change the name of the rarities to their display name (1 -> Common, 5 -> Legendary etc) so new cards won't have the rarity of '1', for example. This is fairly to do, if you have notepad++, press CTRL+H to open the find/replace tool, find 1: (or '1': as it can be sometimes) and replace with Common:, or whatever your rarity name is. Do this for all rarities. · I've added booster packs! These are items which will give you a set amount of cards from two rarities when right-click is used while holding them. The cards you get are random depending on the rarity. · You can now create cards in-game using /xptc create <rarity> <name> <series> <type> <hasShiny> <info>. This needs the permission xptc.create. · We're no longer in beta! woo.BETA-0.9Out of beta! Big update, a lot of code rewritten and booster packs!Jul 15, 2015 -accidental update, sorry-BETA-0.8Jul 14, 2015 BETA-0.6:CVJul 14, 2015 BETA-0.6Jul 14, 2015 BETA-0.5Jul 14, 2015 BETA-0.4Jul 13, 2015 BETA-0.3Jul 13, 2015 BETA-0.2Jul 12, 2015 BETA-0.1Jul 12, 2015
Similar projects
Config →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
26.2MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.9MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
4.7MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta