mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-10 11:58:27 +00:00
Fixed NPE when using !top before rankings are loaded
This commit is contained in:
parent
ea670471d4
commit
7785053cc5
@ -590,8 +590,11 @@ 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