Browse Source

Update index.js

Pentagon 8 years ago
parent
commit
0dd1116b9a
1 changed files with 7 additions and 8 deletions
  1. 7 8
      index.js

+ 7 - 8
index.js

@@ -7,14 +7,7 @@ const fs = require('fs');
 
 module.exports = function FpsUtils2(dispatch) {
     //
-    let firstRun = false,
-            spawnedPlayers = {},
-            blacklisted = config.blacklistedNames,
-            mode = config.mode,
-            myId,
-            hiddenNpcs = {},
-            hiddenUsers = {};
-
+    let firstRun = false
     const command = Command(dispatch);
     try { //generate config
         config = require('./config.json');
@@ -312,6 +305,12 @@ module.exports = function FpsUtils2(dispatch) {
         saveConfig();
     }
 
+    let spawnedPlayers = {},
+            blacklisted = config.blacklistedNames,
+            mode = config.mode,
+            myId,
+            hiddenNpcs = {},
+            hiddenUsers = {};
 // ~~~ * Commands * ~~~
 
     command.add('fps', (cmd, arg, arg2) => {