/* * [LangOption] * public readonly string KEY = VALUE; */ public override void OnEnable() { FriendlyFireAutobanPlugin.instance = this; if (this.outall) { this.PrintConfigs(); } }
public WhitelistCommand(FriendlyFireAutobanPlugin plugin) { this.plugin = plugin; }
public ToggleCommand(FriendlyFireAutobanPlugin plugin) { this.plugin = plugin; }
public CallCommandHandler(Plugin plugin) { this.plugin = (FriendlyFireAutobanPlugin)plugin; }
public string GetRoleDisplay() { string retval = "("; switch (KillerTeamRole.Role) { case Smod2.API.RoleType.CLASSD: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_dclass"); break; case Smod2.API.RoleType.SCIENTIST: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_scientist"); break; case Smod2.API.RoleType.FACILITY_GUARD: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_guard"); break; case Smod2.API.RoleType.NTF_CADET: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_cadet"); break; case Smod2.API.RoleType.NTF_LIEUTENANT: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_lieutenant"); break; case Smod2.API.RoleType.NTF_COMMANDER: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_commander"); break; case Smod2.API.RoleType.NTF_SCIENTIST: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_ntf_scientist"); break; case Smod2.API.RoleType.CHAOS_INSURGENCY: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_chaos"); break; case Smod2.API.RoleType.TUTORIAL: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_tutorial"); break; } retval += " " + FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_separator") + " "; if (VictimDisarmed) { retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_disarmed"); } switch (VictimTeamRole.Role) { case Smod2.API.RoleType.CLASSD: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_dclass"); break; case Smod2.API.RoleType.SCIENTIST: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_scientist"); break; case Smod2.API.RoleType.FACILITY_GUARD: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_guard"); break; case Smod2.API.RoleType.NTF_CADET: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_cadet"); break; case Smod2.API.RoleType.NTF_LIEUTENANT: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_lieutenant"); break; case Smod2.API.RoleType.NTF_COMMANDER: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_commander"); break; case Smod2.API.RoleType.NTF_SCIENTIST: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_ntf_scientist"); break; case Smod2.API.RoleType.CHAOS_INSURGENCY: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_chaos"); break; case Smod2.API.RoleType.TUTORIAL: retval += FriendlyFireAutobanPlugin.GetInstance().GetTranslation("role_tutorial"); break; } retval += ")"; return(retval); }