Chochu 1 Share Posted January 14, 2017 Currently i have using function that scan local player is check their name against a premade list of known mod. Is there a better way of doing this? for(int c = 0; c < modlist.size(); c++){ if(getPlayers().closest(modlist.get(c)) != null) return true; } return false; Link to comment Share on other sites More sharing options...
Chochu 1 Author Share Posted January 14, 2017 Idk maybe if(!getPlayers().all(f -> f != null && f.getName().contains("Mod").isEmpty()){} Hmm,maybe it will work. Now i got to find a mod and test it out. Link to comment Share on other sites More sharing options...
Hashtag 8670 Share Posted January 14, 2017 Do all mods have the word mod in their names? Link to comment Share on other sites More sharing options...
Stormscythe 263 Share Posted January 14, 2017 Do all mods have the word mod in their names? Pretty sure they do Link to comment Share on other sites More sharing options...
Cardozz 46 Share Posted January 14, 2017 Currently i have using function that scan local player is check their name against a premade list of known mod. Is there a better way of doing this? for(int c = 0; c < modlist.size(); c++){ if(getPlayers().closest(modlist.get(c)) != null) return true; } return false; Not sure if this would work in any way. Mostly when they track bots they are invisible. Could be that their name still exists but i wouldnt be surprised if they have a method to hide their presence completely Link to comment Share on other sites More sharing options...
Banker 175 Share Posted January 14, 2017 Do all mods have the word mod in their names? Pretty sure they do Actual JMods do, but the player mods dont, so there would need to be a way, maybe with widgets to try detect the White-Mod-Icon for the player? Link to comment Share on other sites More sharing options...
Scrivus 172 Share Posted January 14, 2017 If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that? Link to comment Share on other sites More sharing options...
Chochu 1 Author Share Posted January 14, 2017 If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that? hmm, so i get the player name it should have <icon=2>Against or something. that would work i will test it out and report back Link to comment Share on other sites More sharing options...
Chochu 1 Author Share Posted January 16, 2017 Idk maybe if(!getPlayers().all(f -> f != null && f.getName().contains("Mod").isEmpty()){} This only work for Mod, but not player mod. If you get the username of the person it should give back <icon=1> in front of it if it's a jmod and I think <icon=2> if it's a pmod. Maybe something you can do with that? I was able to join a cc with a player mod in it and debug the clan chat. When i get the player name, it contain <img=0>. Havent test it yet, but im sure it should work Link to comment Share on other sites More sharing options...
Scrivus 172 Share Posted January 16, 2017 This only work for Mod, but not player mod. I was able to join a cc with a player mod in it and debug the clan chat. When i get the player name, it contain <img=0>. Havent test it yet, but im sure it should work Yeah that's what I meant, Just wrote it out of memory, but you get the idea =D Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.