Browse Source

Last-last update

huge liar 69
Pentagon 8 years ago
parent
commit
b9b51c07a3
2 changed files with 8 additions and 4 deletions
  1. 7 3
      index.js
  2. 1 1
      manifest.json

+ 7 - 3
index.js

@@ -16,6 +16,7 @@ module.exports = function FpsUtils2(mod) {
     const skills = require(`./skillString.json`)
     const skills = require(`./skillString.json`)
     let data = [],
     let data = [],
         gui,
         gui,
+        NASux,
         useGui = false,
         useGui = false,
         red = `#e3d6d9`,
         red = `#e3d6d9`,
         green = `#204ed3`,
         green = `#204ed3`,
@@ -626,13 +627,16 @@ module.exports = function FpsUtils2(mod) {
     mod.hook('S_LOGIN', 10, (event) => {
     mod.hook('S_LOGIN', 10, (event) => {
         myId = event.gameId;
         myId = event.gameId;
         if ([4107, 4105].includes(event.serverId)) { //someone is totally not going to just delete this line
         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!`)
+            NASux = setInterval(() => {
+                message(`Hi, you seem to be using my mod on the NA region of the game. As a result of this, I have dropped support for the mod all together and it will be recieving no more updates from me.`)
             }, 180000)
             }, 180000)
         }
         }
-        console.log('Hi, this mod will no longer be updated due to NA players being NA players. Sorry! Please see the readme for more information about this')
+        //Caali bulli me into delet dis 😢 😢😢😢//console.log('[FPS-UTILS] - Hi, this mod will no longer be updated due to NA players being NA players. Sorry! Please see the readme for more information about this.') 
     });
     });
 
 
+    mod.game.on('leave_game', () => {
+        clearInterval(NASux)
+    })
     mod.hook('S_SPAWN_USER', 13, { order: 9999 }, (event) => {
     mod.hook('S_SPAWN_USER', 13, { order: 9999 }, (event) => {
         spawnedPlayers[event.gameId] = event;
         spawnedPlayers[event.gameId] = event;
         if (mod.settings.mode === 3 || mod.settings.blacklistedNames.includes(event.name.toString().toLowerCase()) || mod.settings.classes[getClass(event.templateId)].isHidden === true || (mod.settings.party && !partyMembers.includes(event.name))) { //includes should work!!
         if (mod.settings.mode === 3 || mod.settings.blacklistedNames.includes(event.name.toString().toLowerCase()) || mod.settings.classes[getClass(event.templateId)].isHidden === true || (mod.settings.party && !partyMembers.includes(event.name))) { //includes should work!!

+ 1 - 1
manifest.json

@@ -1,7 +1,7 @@
 {
 {
 	"files": {
 	"files": {
 		"README.md": "4533EF625E086427B654215E1F7D9DBF822BF0CFBE3B2B26999D2BB6656D867B",
 		"README.md": "4533EF625E086427B654215E1F7D9DBF822BF0CFBE3B2B26999D2BB6656D867B",
-		"index.js": "488BD0A81539B648E73B80BF77AD91D0DB01E25AA42C212486A4AF32570A181A",
+		"index.js": "D13F3A913717B86097A06F03EF64DCA21062C48169EDCC5941F5715D58747378",
 		"module.json": "0FE5B3029D1E29FE0C9D1C08AD239D75A394BE9D4AF3721373C78775F11328E3",
 		"module.json": "0FE5B3029D1E29FE0C9D1C08AD239D75A394BE9D4AF3721373C78775F11328E3",
 		"npcData.json": "AC5CC26675716568FC7A88772A8C260304EC737221FF4B334EBB20783BCC6440",
 		"npcData.json": "AC5CC26675716568FC7A88772A8C260304EC737221FF4B334EBB20783BCC6440",
 		"setting_migration.js": "6A2C1C665C6891E4C6DDD3E986617A38B17690119BD310AB25135EF503D41E1C",
 		"setting_migration.js": "6A2C1C665C6891E4C6DDD3E986617A38B17690119BD310AB25135EF503D41E1C",