Slatum 43 Posted November 13, 2016 Report Share Posted November 13, 2016 (edited) 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, 2016 by Slatum Link to comment Share on other sites More sharing options...
Sanity 436 Posted November 13, 2016 Report Share Posted November 13, 2016 Try just getting your coords up then search it in the files. Link to comment Share on other sites More sharing options...
digdig18 0 Posted January 11, 2017 Report Share Posted January 11, 2017 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) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now