Browse Source

fix NA players

Pentagon 8 years ago
parent
commit
2c58e104b3
2 changed files with 5 additions and 3 deletions
  1. 4 2
      index.js
  2. 1 1
      manifest.json

+ 4 - 2
index.js

@@ -624,10 +624,12 @@ module.exports = function FpsUtils2(mod) {
     // note: for skills, do if classes[event.templateId].blockedSkills !== 
 
     mod.hook('S_LOGIN', 10, (event) => {
+        myId = event.gameId;
         if ([4107, 4105].includes(event.serverId)) { //someone is totally not going to just delete this line
-            setInterval(message(`Hi, you seem to be using my mod on the NA region of the game, if you could please move to EU, that'd be swell, thanks!`), 180000)
+            setInterval(() => {
+                message(`Hi, you seem to be using my mod on the NA region of the game, if you could please move to EU, that'd be swell, thanks!`)
+            }, 180000)
         }
-        myId = event.gameId;
     });
 
     mod.hook('S_SPAWN_USER', 13, { order: 9999 }, (event) => {

+ 1 - 1
manifest.json

@@ -1,7 +1,7 @@
 {
 	"files": {
 		"README.md": "793081FCA0CFDB727FD763258F079D69FD4DE472AF52920DFE289DA5D0966060",
-		"index.js": "8EC843D0E8C5CACB333C0F68C8013ABFC54E8F4E0F8F21FD93744295549CC25C",
+		"index.js": "677243DC54D053E6AC5EBE7F9D08D3F708E262A2A35ABF5E9EB0D4D3EB4029B8",
 		"module.json": "0FE5B3029D1E29FE0C9D1C08AD239D75A394BE9D4AF3721373C78775F11328E3",
 		"npcData.json": "AC5CC26675716568FC7A88772A8C260304EC737221FF4B334EBB20783BCC6440",
 		"setting_migration.js": "83A9DF0586281933F797984464F5A75F4E10277DFC02719391FBA2003F841BDE",