SurpriseBags v1.8.5

Details

  • Filename
    surprisebags.jar
  • Uploaded by
  • Uploaded
    Dec 21, 2013
  • Size
    43.27 KB
  • Downloads
    1,637
  • MD5
    17c189551905bdee997734810a612ef7

Supported Bukkit Versions

  • 1.7.2

Changelog

Version 1.8.5

New Commands
Adding a new bag

Adding a new bag is now possible with a new command:

/sbag addbag <bag-id> [name] [drop-chance]

The command allows you to add new bags in-game. It will add the bag to the list of bags on bags.yml and it will create the bag's configuration file based on a predefined template (which you can see if you view the file template.yml).

Please note that <bag-id> is the ID of the bag and will be used to create the file, as well as the key for the different commands. It will appear in the output of "/sbag list".

The [name] is an optional parameter. It refers to the display name of the bag (or the bag's item name). It cannot contain blank characters, so please use the character '_' (underscore) instead. It will be translated to a space character.

the [drop-chance] is the chance this bag will drop from mobs. It is a number between 0 and 1. For example, 0.25 means there is a 25% chance that the bag will drop.

For example:

/sbag addbag small-treasure Small_Treasure 0.10

This will add a new bag with the ID "small-treasure" and a display name "Small Treasure" which has a 10% drop chance.

If you like to change other attributes, either edit template.yml once before each /addbag, or edit the newly created configuration manually.

To edit the items within the bag, you can use "/sbag edit" and "/sbag save" as before.

Removing a bag

Removing a bag is now possible with a command:

/sbag removebag <bag-id>

The command will remove an existing bag. Note that the bags which are listed in config.yml (from previous versions) cannot be removed with this command. Instead, you can manually delete them and move them to the new bags.yml.

Note that removing a bag will not remove the bag's configuration file (however, /addbag will overwrite them if needed).

General Changes
  • The player opening a surprise bags will now see a message: "You got <item-name>". This does not replace the existing spy message that all ops on the server see.
  • Added a new bag: "Unidentified Potion" which contains a random potion and only drops from a witch.
  • Improved spy message for potions - will now print the potion effect (previously it was only "POTION").