mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +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)
|
||||
{
|
||||
gH_Top100Menu.SetTitle("%T (%d)\n ", "Top100", client, gI_RankedPlayers);
|
||||
gH_Top100Menu.Display(client, 60);
|
||||
if(gH_Top100Menu != null)
|
||||
{
|
||||
gH_Top100Menu.SetTitle("%T (%d)\n ", "Top100", client, gI_RankedPlayers);
|
||||
gH_Top100Menu.Display(client, 60);
|
||||
}
|
||||
|
||||
return Plugin_Handled;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user