MantisBT - Soldat Dedicated Server
View Issue Details
0000604Soldat Dedicated ServerScripting Corepublic2015-01-11 14:272015-01-14 10:43
JotEmI 
ExHunter 
normalminoralways
resolvedfixed 
2.7.8 
 
0000604: SC3 Game.Password shows admin password instead of game password
As in the title, property Game.Password returns Admin_Password from soldat.ini instead of Game_Password.
function OnAdminCommand(Player: TActivePlayer; Command: string): boolean;
var
    txt: string;
begin
    txt:=lowercase(Command);
    Result:=false;
    if(txt='/showpass')then Player.WriteConsole('[*]Password: '+Game.Password,$FFFFFFFF);
end;

begin
    Game.OnAdminCommand:=@OnAdminCommand;
end.
No tags attached.
Issue History
2015-01-11 14:27JotEmINew Issue
2015-01-14 10:43ExHunterNote Added: 0002383
2015-01-14 10:43ExHunterStatusnew => resolved
2015-01-14 10:43ExHunterResolutionopen => fixed
2015-01-14 10:43ExHunterAssigned To => ExHunter

Notes
(0002383)
ExHunter   
2015-01-14 10:43   
Fixed (Game.Password was read only, too. It's now Read+Write)

Also added Game.AdminPassword property.