My game crash (Changing a var in Liquidscript)

Avatar

By E404NNF 22 January 2019 19:27

Member · 30 comments

when i try to change a var in Liquidscript using Commandmanager my game crash why?
Execute section:

    this.execute = function(args) {
        if (args.length > 1) {
            switch (args[1]) {
                case 'bypass':
                    if (args.length > 2) {
					    switch (arg[2]){
							case 'Vanilla': #if the arg 2 is Vanilla
							bypass = "Vanilla"
							chat.print('§fChanged to §a§lVanilla §f!');
							case 'Cubecraft': #if the arg 2 is Cubecraft
							bypass = "Cubecraft"
							chat.print('§fChanged to §a§lCubecraft §f!');
							case 'Spartan': #if the arg 2 is Spartan
							bypass = "Spartan"
							chat.print('§fChanged to §a§lSpartan §f!');
							chat.print('To bypass it you need to get hitted by a player'); 
                    }
					} else {
                        chat.print('§a§lVanilla, Cubecraft, Spartan');
                    }
                  
    }
	}
}
}

Like where is Liquidbounce 1.13 and 1.14?

Avatar

By E404NNF 22 January 2019 22:43

Member · 30 comments

Just found the answer lol
i was really stupid and typed arg and not args oof


Like where is Liquidbounce 1.13 and 1.14?