Blocksmith logo
NextCredits

Commands & Permissions

Information

[] = Optional
<> = Required

The main command is /nextcredits with the aliases nextcredit, credits and credit, and the shop has its own /shop command. Both of them, including their aliases, can be renamed in config.yml.

command: "nextcredits"
aliases: [ "nextcredit", "credits", "credit" ]
command-shop: "shop"
shop-aliases: [ "shop" ]

Player Commands

CommandDescriptionPermission
nextcreditsShows the help messages
nextcredits helpShows the help messages
nextcredits balanceShows your own credits balance
nextcredits shopOpen up the shop menu
nextcredits pay <player> <amount>Transfer your credits to another playernextcredits.pay
shopOpen up the shop menu

Admin Commands

CommandDescriptionPermission
nextcredits balance <player>Shows another player's balancenextcredits.admin
nextcredits shop <player>Open up the shop menu for another playernextcredits.admin
nextcredits give <player> <amount>Give credits to playernextcredits.admin
nextcredits take <player> <amount>Take credits from playernextcredits.admin
nextcredits remove <player> <amount>Alias of the take commandnextcredits.admin
nextcredits set <player> <amount>Set the player's credits balancenextcredits.admin
nextcredits discount <type> <target> <percentage> <duration>Start a discount campaign for the shopnextcredits.admin
nextcredits stopdiscount <type> <target>Stop an on-going discount campaignnextcredits.admin
nextcredits convert <type>Convert data from another plugin or another databasenextcredits.admin
nextcredits deleteuser <uuid>Delete a player's data from the databasenextcredits.admin
nextcredits reloadReload the configurationnextcredits.admin

Information

Products can also have their own permission, which is set per product with the shop-options.permission option. Players without it can't purchase that product.

Command shortcut

By default /nextcredits shows the help message. If you'd rather have it jump straight to the balance message or the shop menu, enable the shortcut in config.yml.

command-shortcut:
  # Should we enable the command shortcut?
  enabled: true
  # Available commands: balance, shop
  command: "balance"

Discount command

The discount command takes a type, a target, a percentage and a duration in seconds.

TypeTargetDescription
productA product id, or allDiscount a single product
categoryA category name, or allDiscount every product in that category
allallDiscount every product in every shop
/nextcredits discount product vote_key 25 3600
/nextcredits discount category crates 50 1800
/nextcredits discount all all 10 600

Stop it early with the same type and target:

/nextcredits stopdiscount product vote_key

Convert command

TypeDescription
rivalcreditsImport all balances from RivalCredits
sqlite_to_mysqlMove your data from SQLite to MySQL
mysql_to_sqliteMove your data from MySQL to SQLite
Always take a backup of your database before running a conversion, and make sure the target database is configured in config.yml first.
If you need any help please join our Discord Server.