Create Program refactoring, added a notification for it when it comes up

This commit is contained in:
Daniel Xie
2017-05-05 11:52:48 -05:00
parent 66e4fa26a2
commit acc3b8cf89
7 changed files with 127 additions and 25 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
/* DarkWeb.js */
//Posts a "help" message if connected to DarkWeb
checkIfConnectedToDarkweb() {
checkIfConnectedToDarkweb = function() {
if (SpecialServerIps.hasOwnProperty("Darkweb Server")) {
var darkwebIp = SpecialServerIps["Darkweb Server"];
if (!isValidIPAddress(darkwebIp) {return;}
if (!isValidIPAddress(darkwebIp)) {return;}
if (darkwebIp == Player.getCurrentServer().ip) {
post("You are now connected to the dark web. From the dark web you can purchase illegal items. " +
"Use the 'buy -l' command to display a list of all the items you can buy. Use 'buy [item-name] " +