Achievements Reloaded
Achievements - made by Lolmewn
What does this plugin do?
This plugin allows you to add additional achievements to the game. This plugin requries my other plugin, Stats, to work.
Using this plugin, you can add achievements to the game, and add rewards to them. Whenever a player gets an achievement, you can let commands run, give them money and/or items, and much more using the API this plugin will have.
How do I install this?
Download the latest file from the files page and put it in your plugins folder.
Configuring the plugin
config.yml
There's nothing much to configure here yet. You can toggle whether or not it auto-updates, but that's about it.
achievements.yml
This is where you will store all your achievements. An achievement must have the following layout:
<id> name: YourAchievementName goals: - Stat <amount> <TOTAL or the variables belonging to this Stat> - another one?
The rest of the things is pretty self-explanatory. Once I have time, I will write down a good how-to-write achievements page.
Stats
These are the available Stats:
Stat | Description | Variables |
---|---|---|
Block_break | All broken blocks with their Datavalues | itemId itemData breaking |
Block_place | All placed blocks with their Datavalues | itemId itemData breaking |
Death | All deaths with their causes | cause entity(boolean, true is safest) |
Kill | All kills with their causes | type |
Move | Walking, sailing, riding a train, on the back of a pig or by horse. | type (0=walk, 1=boat, 2=train, 3=pig, 4=pig in train, 5=horse) |
Playtime | Time played in seconds | |
Arrows | Arrows shot | |
Xp_gained | Total XP gained | |
Joins | Total times joined | |
Fish_catched | Total fish Caught | |
Damage_taken | Total damage taken | |
Times_kicked | Total times kicked | |
Tools_broken | Total Tools broken | |
Eggs_thrown | Total eggs thrown | |
Items_crafted | Total items crafted | |
Omnomnom | Total times had a snack | |
On_fire | Total times being on fire | |
Words_said | Total words said | |
Commandsdone | Total commands done | |
Votes | Total times voted for the server (uses Votifier) | |
Worldchange | Total times worlds changed | |
Bucketfill | Total buckets filled | |
Bucketempty | Total buckets emptied | |
Bedenter | Total times bed entered | |
Itemdrops | Total times items dropped | |
Itempickups | Total times items picked up | |
Teleports | Total times teleported | |
Shear | Total times sheared | |
Lastjoin | The time the player joined the server last | |
Lastleave | The time the player left the server last |
Want to use a Stat that uses variables? You have to specify either the variables or use 'TOTAL'.
Variables with StatTypes
Some Stats have variables. A good example is Block_break, it has the variables <blockId> <blockData> and <breaking>.
If you want to have a goal where a player must break 5 blue wool blocks, the goal would be
- Block_break 5 35 3 true
If the block has no special blockData (e.g. there's only one type of it), use 0 as blockData. Example:
- Block_break 20 1 0 true
This means break 20 stone blocks.
Examples for the other special Stats:
- Block_place 5 TOTAL - Move 1000 1 #move 1000 blocks with transport type 1 (boat) - Kill 10 Zombie - Death 3 Creeper
The format always is - Stat Amount Total|Variables|<empty>
Item Rewards
The way Item Rewards are written down is somewhat difficult. Basically, you should write it down as
items: <itemId>.<itemData>,<amount>;<itemId>.<itemData>,amount;... etc. items: 35.3,10;1,10 items: 1,20
Note that the itemData doesn't have to be specified
The itemID obvioulsy is the ID the item has (which you can find a full list of here), the itemData is also on that list, and the amount.. well, duhh.
The first example gives you 10 colored wool, and 10 stone. The second example gives you 20 stone.
Example achievements.yml
You can find an example right here. When writing new achievements, I suggest you grab this page and see what all the options do.
Commands and permissions
Command | Permission | Description |
---|---|---|
/ach | achievements.view.self | Check out your progress |
/ach player <player> | achievements.view.others | Check out someone elses progress |
/ach reload | achievements.reload | Saves all players and reloads all achievements |
/ach page <page> | achievements.view.self | Check out page <page> of your progress |
/ach <achievement> | Check out what the achievement is all about |
Development builds
Development builds of this project can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk, they may or may not work at all.
Development builds for Stats can be found at my CI, over at http://ci.lolmewn.nl/job/Achievements/.
Source
Want to help develop, or simply view what makes this plugin run?
Visit my bitbucket!
Metrics
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- 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
If you wish to disable this feature (/me cries), you can do so by opt-ing out, which you can do in the config file under /plugins/PluginMetrics/
Auto-updater
This plugin has a built-in auto-updater, which connects to BukkitDev to check for updates. If you, for some reason, wish to disable this process, you can do so by setting 'update' to false in the plugins' settings file.
IRC Support
You can find me (and possibly, when I'm around, support) in my IRC channel #Lolmewn on irc.esper.net - See you there!
@jenks1999
You're using Build 71, while 2.0.0 is build 50.
@Lolmewn
i havent i used 2.0.0 its released on here. Thats not dev build.
@jenks1999
Don't use the DEV builds yet.
Please advise on this error http://pastebin.com/6ZBGnnfW
@alanthya
New style is only in dev-builds, I'll update it when I release it. (It'll also have a converter since all current goals are Stats goals only anyway)
mind updating the achievement.yml example to the new style?
@jenks1999
Not yet, but I might soon! Make a ticket maybe so I won't forget? :)
@Lolmewn
Oh yer i found it in Commands.yml file thank you, also wanted to know if you will be allowing specific items without ID's being allowed for example:
items: "minecraft:fishing_rod 1 0 {ench:[{id:62,lvl:3},{id:61,lvl:3},{id:34,lvl:3}],display:{Lore:["Noone can match your power with fishing."]}};133;42;41;57"
would give an enchanted fishing rod with level 3 enchants at the moment this spits out an error,
http://pastebin.com/rHATthQ3
@jenks1999
You can actually use achiev, achievement, ach and achievements. Not to mention you can create your own aliases in the bukkit aliases.yml file :P
Just wondering if you can add a config option to change the command from ach to something else, example command: ach Because ach is very close to my hardcore command which causes issues.
@Hmmcrunchy
Could you pastebin your achievements.yml file?
hey there I do get this error on startup
http://pastebin.com/4wbu2UTk
thanks for all your ahrd work :)
Fanciful repo got fixed, latest DEV build of Achievements should work on all Bukkit versions.
@ThsShadyOneHD
All achievement data gets saved to mysql.
@nelson2tm
Possibly.
i have not tried this plugin yet but is there any support for achievements getting saved to mysql tables? and if not will it be added soon?
Could you please make an achievement that when you for example step on a presureplate in a shop, you get an achievement "1" (configurable!!). Or if you step on a presureplate in a pool you get achievement "2". You can fully customize the names and stuff. Command: /ach location <achievementname> (sets the presureplate/button/lever etc... where you looking at as achievement.)
@madtomic
Yes. I forgot I put fanciful in - which made it version dependant (or at least GSON dependant). I'll get to it soon when the fanciful repo is fixed.
Lolmewn
Will you be updating this to use 1.7.9+ and 1.7.10?
@ShamanTramp
Since you're running 0.8 Achievements, you should probably be running Stats 1.37. You can also grab the latest Stats dev-build (Note: DEV build, not release.), as that version is compatible with all minecraft versions again, but you don't have to.
1.7.2 Cauldron is no problem.
@Lolmewn
There is also a players.yml file and that's it !
Sometimes at boot Achievements says that Stats version is too old and incompatible, but it's the latest version released in 1.7.2 :/ When this happens (not every time) the plugin become red in the list when I do /plugins command and doesn't respond at all.
I repeat that I'm runnig this on a Cauldron 1.7.2 server, can it be concerned ?