mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-09 11:28:26 +00:00
Fixed NPE when using !top before rankings are loaded
This commit is contained in:
parent
ea670471d4
commit
7785053cc5
@ -589,9 +589,12 @@ public Action Command_Rank(int client, int args)
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Action Command_Top(int client, int args)
|
public Action Command_Top(int client, int args)
|
||||||
|
{
|
||||||
|
if(gH_Top100Menu != null)
|
||||||
{
|
{
|
||||||
gH_Top100Menu.SetTitle("%T (%d)\n ", "Top100", client, gI_RankedPlayers);
|
gH_Top100Menu.SetTitle("%T (%d)\n ", "Top100", client, gI_RankedPlayers);
|
||||||
gH_Top100Menu.Display(client, 60);
|
gH_Top100Menu.Display(client, 60);
|
||||||
|
}
|
||||||
|
|
||||||
return Plugin_Handled;
|
return Plugin_Handled;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user