BuyRandom

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Use Buycraft, but would like a way to give users random rewards for their donations? Then you will probably like this plugin!

Features

  • Execute a random command from a list when someone donates for a specific package.
  • Allows using the player's name in the commands.
  • Allows up to one extra argument

Installation

Download the plugin from this page, and put it in your plugins-folder. Then re-start your server. The plugin will generate a config in a folder named 'BuyRandom'. The config will be further explained in the usage-section.

Usage

Step 1: Config

The first thing you want to do, is set up the config. This is the example-config the plugin will generate:

package1:
  - tell {name} {arg}
  - say {name} has just bought the package {arg}!
package2:
  - give {name} 1 2
  - give {name} 5 2

'package1' and 'package2' are package-names. It doesn't really matter what they're called, but you will need them later, to use this plugin with Buycraft. Under the package-name is a list of all the possible commands. When that package is rewarded, a random command from the list will be executed. In the commands, {name} will be replaced with the player-name, and {arg} with an argument you can later specify (for example an amount).

Step 2: Buycraft

After you've set up your config, it's time to set things up on the Buycraft-side. Log in to your Buycraft-account, and create a new package. Adjust all the settings to you liking, and add the following command to the commands-field (initial): 'buyrandom <package-name> {name} [arg]'. Replace <package-name> with the name of your package in the config (package1 or package2 in the example). You can leave {name} as it is. Buycraft will replace it with the player-name. If you want to, you can replace [arg] with an additional argument. If you do, {arg} in the commands in your config will be replaced with the argument you specify. After that, just save your package and you're good to go! If you want, you can test your package by using the Buycraft 'add payment'-button, or by using the buyrandom command in-game.

Permissions/commands

  • /buyrandom <package-name> <player-name> [arg] - Award a package to <player-name>. Permission: buyrandom.execute

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    55532
  • Created
    Apr 8, 2013
  • Last Released File
    Apr 8, 2013
  • Total Downloads
    735
  • License

Categories

Members

Recent Files