Posted November 13, 20168 yr comment_6389 Ok so I am trying to change the spawn location based off of a mode that players can pick when they first log on In Config.java: I copied the RESPAWN_X and _Y and created a new one called RESPAWN_1 and _2. the mode is classified as c.hardMode Quote public static final int RESPAWN_X = 2981; public static final int RESPAWN_Y = 9875; public static final int RESPAWN_1 = 2196; public static final int RESPAWN_2 = 4961; Then I opened PlayerAsistant.java and found the respawn ruling for basic player death, and I copied and added the ruling. Quote } else if (c.duelStatus <= 4) { // if we are not in a duel repawn to movePlayer(Config.RESPAWN_X, Config.RESPAWN_Y, 0); c.isSkulled = false; c.skullTimer = 0; c.attackedPlayers.clear(); } else if (c.duelStatus <= 4 && (c.hardMode = true)) { // if we are not in a duel repawn to movePlayer(Config.RESPAWN_1, Config.RESPAWN_2, 20); c.isSkulled = false; c.skullTimer = 0; c.attackedPlayers.clear(); } However, this is not working. The c.hardMode still spawns in the same location as a regular death would spawn. Does anyone know how to fix or make this work? Edited November 13, 20168 yr by Slatum
January 11, 20178 yr comment_8046 else if (c.duelStatus <= 4 && (c.hardMode = true)) { // if we are not in a duel repawn to Did that compile? Lol never seen that in my life Change first else if (c.duelStatus <= 4 && c.hardMode == false) and second statement else if (c.duelStatus <= 4 && c.hardMode)
Create an account or sign in to comment