06-27-2013, 04:28 AM
(06-27-2013, 04:25 AM)STR_Warrior Wrote: uhm lets say I use the command "/gotoworld NewWorld"Ok, but I don't want this. I want that if a player types /gotoworld creative
then at line 12 it is if "NewWorld" equals nil (since creative isn't anything) then set the gamemode to 1.
what you could try is use "/gotoworld NewWorld creative"
then change the Split[2] at line 12 and 17 to Split[3] and the creative/world to "creative"/"world" also at line 2 the 2 should then be replaced by a 3 or change it to if( #Split ~= 2 or #Split ~= 3 ) then
it's teleported to a world named creative and his gamemode change to 1.
And the same with /gotoworld world (goto the world world and set gamemode to 0.