public async void SaveGrid() { if (Context.Player == null) { Context.Respond("This is a player only command!"); return; } PlayerChecks User = new PlayerChecks(Context); await HangarCommandSystem.RunTaskAsync(() => User.SaveGrid(), Context); }
public void SaveGrid() { PlayerChecks User = new PlayerChecks(Context); HangarCommandSystem.RunTask(delegate { User.SaveGrid(); }, Context.Player?.SteamUserId); }