I'm not sure if anyone else is having this issue, but I noticed the player count is not updating correctly when someone disconnects. I don't know the plugin well, but this is what I did to workaround the issue. I believe the problem is when OnPlayerDisconnected is called, the player count is not updated yet. I just replaced "UpdateField" with "UpdateFieldDisconnect" inside of "OnPlayerDisconnected" and created this function:
Code:private void UpdateFieldDisconnect(BasePlayer player, PanelTypes panelType) { List<StringPlus.ReplacementData> replacements = new List<StringPlus.ReplacementData>(); switch (panelType) { case PanelTypes.Active: replacements.Add(new StringPlus.ReplacementData(replacementPrefix + FieldTypes.PlayersActive.ToString().ToUpper() + replacementSufix, (activePlayerFill) ? (BasePlayer.activePlayerList.Count-1).ToString().PadLeft(ConVar.Server.maxplayers.ToString().Length, '0') : BasePlayer.activePlayerList.Count.ToString())); replacements.Add(new StringPlus.ReplacementData(replacementPrefix + FieldTypes.PlayerMax.ToString().ToUpper() + replacementSufix, ConVar.Server.maxplayers.ToString())); break; case PanelTypes.Sleeping: replacements.Add(new StringPlus.ReplacementData(replacementPrefix + FieldTypes.PlayersSleeping.ToString().ToUpper() + replacementSufix, (BasePlayer.sleepingPlayerList.Count+1).ToString())); break; case PanelTypes.Clock: replacements.Add(new StringPlus.ReplacementData(replacementPrefix + FieldTypes.Time.ToString().ToUpper() + replacementSufix, TIME)); break; } UpdateField(player, panelsData[(int)panelType], replacements.ToArray()); }

UiPlus
Adds various custom elements to the user interface
Total Downloads: 14,032 - First Release: Aug 20, 2016 - Last Update: Sep 3, 2017
- 5/5, 39 likes
-
-
Hi am i alone to have this problem?
It say we are 3 on server, and in real we are 2, i think the plugin not working good -
-
-
probably because of the plugin uiplus see a white stripe in the plug-in kill feed
Kill Feed | Page 23 | Oxide
[DOUBLEPOST=1473687298][/DOUBLEPOST] -
The plugin does not update online players. Even disconnect the number of players remains the same. If you are 30 and 29 is deconncete still have 30 players display. Please update
-
-
Any update on whether the panel becoming white will be fixed?
I'm finding it gets to the point where you can't even see the numbers at all -
People getting kicked when connecting to server while i run UIPlus since rust update, Disconnected Error : adduri
-
Plsss, help-me, Disconnected Error : adduri, fix thiss
(, i love this plugin
-
its to do with some letters in peoples names, plugin has stopped handling them correctly, like
✔ disconnects people with it in name -
When performing updates you might want change version number:
Screenshot
Awesome app love the UI. Keep it up!Last edited by a moderator: Sep 25, 2016 -
How I can fix this ?
Gyazo - bf5813749c0d0f5824a79573a86bcbc6.png
I need to restart some times the plugin to get the icon. Its annoying -
Good plugin! Keep it up!
-
Counter Online is not working very will, often, if Gamer leave, it shows ...
-
-
Bug when are 2 online and 1 disconnect. The counter stay online. need reconnect to refresh. Fix IT
-
-
Hi! Can anybody explane me how to fix that?
Thanks in advance!
--------------UPDATE--------------
No problem! All fixed by self!
There is usefully parameter in config file - _Active player counter fill.
Very usefull!!! Thanks!
But trouble with actual online/offline players is still here... (((Last edited by a moderator: Oct 9, 2016