Chochu 1 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;
Chochu 1 Author 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.
Stormscythe 263 Posted January 14, 2017 Do all mods have the word mod in their names? Pretty sure they do
Cardozz 46 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
Banker 175 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?
Scrivus 172 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?
Chochu 1 Author 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
Chochu 1 Author 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
Scrivus 172 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.