NewCraftRank SitesA free website and storeMake yours ›
1.10.41CraftRank Launcher is out Download ›AshlarFree server software built on Paper, with DDoS and backdoor protection See Ashlar ›Server ownersYour own launcher with your name, logo and one click onto your server See themes ›
Docs / Website and store

Delivery in game

2 min read

The CraftRank plugin you use for vote rewards also delivers store purchases. It fetches the commands of each paid order and runs them on your console.

Set it up

  1. Get the plugin and your API key on the Plugin & API page of your server. See The CraftRank plugin.
  2. Use version 1.7.0 or newer. Older versions can't deliver store purchases.
  3. Put the API key in its config.yml and restart the server.
  4. Open Settings → Delivery in Website & store. It should say Connected with the version and when the plugin was last seen.
  5. Press Send a test command. Your console should show CraftRank Sites delivery works within a minute.

Store delivery is on by default. The plugin checks for new purchases every 20 seconds; change it in its config.yml:

store:
  enabled: true
  check-every-seconds: 20

Commands that wait for the player

Commands marked Only when online (or starting with *) wait until the player is on the server. They run on the plugin's next check after the player joins. Other commands run on the next check, even if the player is offline. An order shows Delivered when all its commands ran.

Global commands

To run something for every purchase, such as a thank-you message, open your store admin and go to General → Global commands. They run once per order, after the packages' own commands. Use {player}, {order} and {package}; for an order with several packages, {package} lists them all.

The delivery log

Delivery lists the latest commands with their status: Waiting, Run or Cancelled. Press Cancel to stop a waiting command, or Run again to send one again.

When something is not delivered