private void btnAdd_Click(object sender, EventArgs e) { string name = MetroPrompt.ShowPrompt("Ban player", "Enter the name of the player you'd like to ban"); if (string.IsNullOrEmpty(name)) { return; } PlayerActions.BanPlayer(name); RefreshList(); }
private void btnAdd_Click(object sender, EventArgs e) { string ip = MetroPrompt.ShowPrompt("Ban ip", "Enter the ip you'd like to ban"); if (string.IsNullOrEmpty(ip)) { return; } PlayerActions.BanIp(ip); RefreshList(); }
private void btnAdd_Click(object sender, EventArgs e) { string name = MetroPrompt.ShowPrompt("Whitelist player", "Enter the name of the player you'd like to whitelist"); if (string.IsNullOrEmpty(name)) { return; } PlayerActions.SetPlayerWhitelist(name, true); RefreshList(); }