1. These forums are being retired. Please ask all questions and help threads and any other type of discussions on GitHub. During this time, new threads and user registrations have been disabled.

Receive Items When Ranking Up

Discussion in 'SEconomy' started by BStorm, May 28, 2016.

  1. BStorm

    BStorm Level 1

    Jan 17, 2016
    How would I go about making it so that when you rank up to a rank, you receive items?

    What would I add to my .js file?

    Any help would be appreciated, thanks.
  2. EisaGaming

    EisaGaming Level 1

    Jul 23, 2016
    you can use at Confing.js open it and its say a message with what open it Cilck Select a program installled and then Open it with your Notepad++ Or Note
  3. halfgamerz

    halfgamerz Level 4

    May 23, 2016
    just wanted to mentioned that if a player types the command to rank up like the following /rank 91 the server will skip all other ranks and move that player to 91. This problem was brought to my attention from one of my beta players. The only solution I was able to find for this, was to create a random 8 digit number for the "name" below is an example.

    "level1": {
    "name": "89465160",
    "parentgroup": undefined,
    "group": "1",
    "levelupcommands": [
    "/play levelup",
    "/bc Alright! Level 1 reached. You can now ride our Bunny and Turtle!",
    "/i 2428 1",
    "/i 2491 1",

    you will also need to change the following

    if (nextrankingList.length > 1) {
    msg(player, "You are a " + rank.name + ". Now you must pick a class:");


    if (nextrankingList.length > 1) {
    msg(player, "You are on rank " + rank.group + ". Now you must choose a class:");

    the reason for this change is so that when a player does rank up, the server will display the "group" number which is basically the level not the "name" which is where the 8 digit random numbers will be placed.