diff --git a/css/terminal.css b/css/terminal.css index df553615d..423fb1469 100644 --- a/css/terminal.css +++ b/css/terminal.css @@ -8,6 +8,7 @@ padding-top: 10px; padding-left: 10px; height: auto; + width: 100%; font-size: 16px; } @@ -19,7 +20,7 @@ .terminal-input { display: table-cell; - width: auto; + width: 90%; padding: 0px !important; margin: 0px !important; border: 0px; diff --git a/src/Server.js b/src/Server.js index b1f584643..debd7486d 100644 --- a/src/Server.js +++ b/src/Server.js @@ -360,6 +360,8 @@ ForeignServers = { /* Create a randomized network of all foreign servers */ createNetwork: function() { + console.log("createNetwork() called"); + //Groupings for creating a randomized network var NetworkGroup1 = [ForeignServers.IronGym, ForeignServers.FoodNStuff, ForeignServers.SigmaCosmetics, ForeignServers.JoesGuns, ForeignServers.HongFangTeaHouse, ForeignServers.HaraKiriSushiBar]; var NetworkGroup2 = [ForeignServers.MaxHardware, ForeignServers.NectarNightclub, ForeignServers.Zer0Nightclub]; diff --git a/src/Terminal.js b/src/Terminal.js index 4aff97dd1..58df8dc0b 100644 --- a/src/Terminal.js +++ b/src/Terminal.js @@ -24,7 +24,7 @@ $(document).keyup(function(event) { var Terminal = { executeCommand: function(command) { - var commandArray = command.split(); + var commandArray = command.split(" "); if (commandArray.length == 0) { return; @@ -51,15 +51,15 @@ var Terminal = { var ip = commandArray[1]; for (var i = 0; i < Player.currentServer.serversOnNetwork.length; i++) { - if (Player.currentServer.serversOnNetwork[i].ip == ip) { + if (Player.currentServer.serversOnNetwork[i].ip == ip || Player.currentServer.serversOnNetwork[i].hostname == ip) { Player.currentServer.isConnectedTo = false; Player.currentServer = Player.currentServer.serversOnNetwork[i]; - post("Connect to " + ip); + post("Connected to " + ip); return; } } - post("IP not found"); + post("Host not found"); break; case "df": console.log("df terminal command called");