Jump to content

LurKau

Member
  • Posts

    4
  • Joined

  • Last visited

Everything posted by LurKau

  1. LurKau

    Online Counter

    I changed a few things that I think would benefit an update in the source code. What Changed Made the UI text configurable via format strings Added FormatCountText(int count) so "Text Count" in config can be something like "{0}/100" or "Online: {0}" Added permission-driven behavior onlinecounter.noui → player won’t see the UI onlinecounter.dontcountme → player won’t be included in the online count Introduced ShouldShowUI() / ShouldCountOnline() helpers to keep this logic clean. Improved counting + UI refresh flow Recounts on startup (`CountOnlinePlayers()`) Adjusts `_onlineCount` on connect/disconnect with safety (Mathf.Max(0, ...)) Uses `NextTick(UpdateUIForAllPlayers)` on disconnect to avoid timing issues Rebuilds the UI for all active players via UpdateUIForAllPlayers() / ShowUI() OnlineCounter.cs
  2. LurKau

    Better lang avaliability

    I’m more so saying to just add the ability to configure the string in the config file. I mean lang as purely strings from the plugin in capacity.
  3. LurKau

    Better lang avaliability

    It would be great if the vending text was added as lang options. Adding all of these little things into the lang makes life just seamless private void VendingUpdate(BasePlayer player) { if (vending && isEventActive) { vending.markerShopName = Configuration.markerName; if (Configuration.markerTime) if (duration > 0) vending.markerShopName += "(" + (int)duration / 60 + "m" + duration % 60 + "s)"; else vending.markerShopName += "(the event has ended)"; if (player != null && Configuration.markerOwnerName) vending.markerShopName += "(" + eventOwner.displayName + ")"; vending.SendNetworkUpdate(); } }

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.5m
Total downloads
Customers
11.2k
Customers served
Files Sold
160.8k
Total sales
Payments
3.5m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.