I tried create plugin with active admins.
But i don't have skill do this.
I try connect permission with plugin and error.
Solved Need help making /admins plugin
Discussion in 'Hurtworld Development' started by BioSeek, Mar 23, 2016.
-
Can you elaborate on your issue and if possible post the compiler log?
-
Maybe you can look at this :
Code:var adminlist = new List<string> {string.Empty}; foreach (var pair in GameManager.Instance.GetSessions()) { var cplayer = pair.Value; if (!cplayer.IsLoaded) continue; if (adminlist[adminlist.Count - 1].Length + cplayer.Name.Length > maxchar) adminlist.Add(string.Empty); if(cplayer.IsAdmin){ if (adminlist[adminlist.Count - 1] != string.Empty) adminlist[adminlist.Count - 1] += ", "; adminlist[adminlist.Count - 1] += $"<color={#COLORHEXCODE}>{cplayer.Name}</color>"; } i=i+1; } foreach(var msg in adminlist) hurt.SendChatMessage(session, msg); i=0;//Credits to RENEB
If you need full code you can contact me. -
See plugin Players List.
-
CLOSE THEMA