diff --git a/Modules/CaptainsModule/Commands/PickingCommands.as b/Modules/CaptainsModule/Commands/PickingCommands.as index d933f56b..7c3bfb4c 100644 --- a/Modules/CaptainsModule/Commands/PickingCommands.as +++ b/Modules/CaptainsModule/Commands/PickingCommands.as @@ -69,6 +69,13 @@ class AppointCommand : ChatCommand return; } + // if admin accidentally wrote the same player's name twice + if (blue_leader.getUsername() == red_leader.getUsername() || red_leader.getUsername() == blue_leader.getUsername()) + { + error("One player cannot be a leader in two teams at the same time!"); + return; + } + rules.set_string("team_0_leader", blue_leader.getUsername()); rules.set_string("team_1_leader", red_leader.getUsername()); diff --git a/Rules/CommonScripts/ChatCommands.cfg b/Rules/CommonScripts/ChatCommands.cfg index 3b587acd..6d99566e 100644 --- a/Rules/CommonScripts/ChatCommands.cfg +++ b/Rules/CommonScripts/ChatCommands.cfg @@ -43,9 +43,6 @@ commands = togglechclass; 1; 0; bindings; 0; 0; mutevoice; 1; 0; - #mutetags; 0; 0; - #unmutetags; 0; 0; - togglesounds; 0; 0; #sharks; 0; 1; #bisons; 0; 1;