Pentagon лет назад: 8
Родитель
Сommit
88bbf77386
1 измененных файлов с 7 добавлено и 4 удалено
  1. 7 4
      index.js

+ 7 - 4
index.js

@@ -6,15 +6,18 @@ const fs = require('fs');
 
 
 
 
 module.exports = function FpsUtils2(dispatch) {
 module.exports = function FpsUtils2(dispatch) {
-    //
-    let firstRun = false;
+    let firstRun = false,
+            myId,
+            spawnedPlayers = {},
+            hiddenUsers = {},
+            hiddenNpcs = {};
     const command = Command(dispatch);
     const command = Command(dispatch);
     try { //generate config
     try { //generate config
-        config = require('./config.json');
+        var config = require('./config.json');
     } catch (e) {
     } catch (e) {
         log("CONFIG FILE NOT FOUND, GENERATING ONE NOW");
         log("CONFIG FILE NOT FOUND, GENERATING ONE NOW");
         firstRun = true;
         firstRun = true;
-        config = {
+        var config = {
             "version": "1.011",
             "version": "1.011",
             "mode": "0",
             "mode": "0",
             "hideFirewworks": false,
             "hideFirewworks": false,