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:

StatDescriptionVariables
Block_breakAll broken blocks with their DatavaluesitemId itemData breaking
Block_placeAll placed blocks with their DatavaluesitemId itemData breaking
DeathAll deaths with their causescause entity(boolean, true is safest)
KillAll kills with their causestype
MoveWalking, 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)
PlaytimeTime played in seconds
ArrowsArrows shot
Xp_gainedTotal XP gained
JoinsTotal times joined
Fish_catchedTotal fish Caught
Damage_takenTotal damage taken
Times_kickedTotal times kicked
Tools_brokenTotal Tools broken
Eggs_thrownTotal eggs thrown
Items_craftedTotal items crafted
OmnomnomTotal times had a snack
On_fireTotal times being on fire
Words_saidTotal words said
CommandsdoneTotal commands done
VotesTotal times voted for the server (uses Votifier)
WorldchangeTotal times worlds changed
BucketfillTotal buckets filled
BucketemptyTotal buckets emptied
BedenterTotal times bed entered
ItemdropsTotal times items dropped
ItempickupsTotal times items picked up
TeleportsTotal times teleported
ShearTotal times sheared
LastjoinThe time the player joined the server last
LastleaveThe 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

CommandPermissionDescription
/achachievements.view.selfCheck out your progress
/ach player <player>achievements.view.othersCheck out someone elses progress
/ach reloadachievements.reloadSaves all players and reloads all achievements
/ach page <page>achievements.view.selfCheck 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!

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of nelson2tm nelson2tm Dec 20, 2014 at 10:00 UTC - 0 likes

    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.)

    Click here to see my plugins!

  • Avatar of Lolmewn Lolmewn Dec 13, 2014 at 10:35 UTC - 0 likes

    @madtomic: Go

    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.

    Last edited Dec 13, 2014 by Lolmewn

    Waiting to see what's going to become of BukkitDev. May or may not switch to a replacement if it completely dies off (which is what I presume to happen really).

  • Avatar of madtomic madtomic Dec 11, 2014 at 14:46 UTC - 0 likes

    Lolmewn

    Will you be updating this to use 1.7.9+ and 1.7.10?

  • Avatar of Lolmewn Lolmewn Dec 09, 2014 at 10:01 UTC - 0 likes

    @ShamanTramp: Go

    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.

  • Avatar of ShamanTramp ShamanTramp Dec 09, 2014 at 00:57 UTC - 0 likes

    @Lolmewn: Go

    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 ?

  • Avatar of Lolmewn Lolmewn Dec 08, 2014 at 22:51 UTC - 0 likes

    @ShamanTramp: Go

    Hmm... weird. There's no other files other than achievements.yml and config.yml in the Achievements folder, correct? It's been a while since I've touched 0.8

  • Avatar of ShamanTramp ShamanTramp Dec 08, 2014 at 03:10 UTC - 0 likes

    @Lolmewn: Go

    I'm running the Achievements Reloaded v0.8 for 1.7.2 with the Fluid MC Stats v0.1.3-DEV for 1.7.2 too (Stats is working without problems at all).

    Here's my achievements.yml :

    1:
      name: Mineur en Herbe
      description: Minez 10 blocs de stone.
      goals:
      - Block_break 10 TOTAL
      rewards:
        items: 388,10
        commands:
        - stats %player%
      onComplete:
        messages:
        - Vous etes desormais un %name% !
        - &4Voici une petite recompense
    
    Last edited Dec 08, 2014 by ShamanTramp
  • Avatar of Lolmewn Lolmewn Dec 07, 2014 at 20:29 UTC - 0 likes

    @ShamanTramp: Go

    Which version are you running? Also, please paste your achievements.yml

  • Avatar of ShamanTramp ShamanTramp Dec 05, 2014 at 10:55 UTC - 0 likes

    @Lolmewn: Go

    Please help me :'(

  • Avatar of ShamanTramp ShamanTramp Nov 30, 2014 at 23:27 UTC - 0 likes

    @Lolmewn: Go

    Always the same message, whatever I try;

    [Achievements] Duplicate ID found for achievements, you can only use an ID once. ID: 1, achievement trying to add (failing): Mineur en Herbe

    I'm running your plugin on a Cauldron 1.7.2 server, maybe this info can help "

Facts

Date created
Apr 16, 2013
Categories
Last update
Jul 01, 2014
Development stage
Release
License
GNU General Public License version 3 (GPLv3)
Curse link
Achievements Reloaded
Downloads
8,495
Recent files

Authors

Relationships

Required dependency
Stats
Optional dependency
SpoutPlugin
Vault