Hello,
How can I remove the text "Admincount," from the command when players do /online? Here is a picture of how /online looks when I do it now. https://gyazo.com/7d55e371ce2d34bfe0f31168b8426c31
How can I remove this from /online?Solved
You'd have to edit the modify plugin directly on line 131.
Can you please inform me what I need to change in specific? I had edited the lines a bit so it might not match up. Also can you please let me know what file this lines is that needs to be changed?
Is this the line I need to delete possibly?
var adminCount = players.Connected.Count(p => p.IsAdmin && !p.HasPermission(permHide));
You'd remove the first Lang that has the AdminCount string.
This is all I see in the English (First language) in the plugin. I see nothing about admincount:
void LoadDefaultMessages()
{
// English
lang.RegisterMessages(new Dictionary<string, string>
{
["NobodyOnline"] = "No players are currently online",
["NotAllowed"] = "You are not allowed to use the '{0}' command",
["OnlyYou"] = "You are the only one online!",
["PlayerCount"] = "{0} player(s) online",
}, this);
Merged post
This is the only string I see that says admincount in the plugin:
var adminCount = players.Connected.Count(p => p.IsAdmin && !p.HasPermission(permHide));
var playerCount = players.Connected.Count(p => !p.IsAdmin && !p.HasPermission(permHide));
player.Reply($"{Lang("AdminCount", player.Id, adminCount)}, {Lang("PlayerCount", player.Id, playerCount)}");
}
#endregion
player.Reply($"{Lang("AdminCount", player.Id, adminCount)}, {Lang("PlayerCount", player.Id, playerCount)}");
to
player.Reply(Lang("PlayerCount", player.Id, playerCount));
Thank you. This resolved it~