PlayerCounter
PlayerCounter adds a discrete player counter to the top left corner(by default) of the HUD, letting you and your players keep track of how many people are on the server currently.
oxidemod.org
PlayerCounter adds a discrete player counter to the top left corner(by default) of the HUD, letting you and your players keep track of how many people are on the server currently.
Usage
By default all players can see the player counter and toggle it with /playercounter. However if you wish to use permissions to set who can and can not see/toggle the player counter you need to open the config file and set usePermissions to true. Note: Admins can always see/toggle the player counter.
If you decide to use permissions, type the following into the server console to grant the permission to let the the default group see the player counter:
Code
grant group default playercounter.displayIf your players still cannot see it, tell them to go into the game's options and set Show Branding to OFF
If you also want your players to be able to toggle the counter on and off using a command type the following:
Code
grant group default playercounter.togglePermissions
Code
Code:
playercounter.display - Allows the player counter to be shown on the HUD
playercounter.toggle - Allows the player counter to be toggled using /playercounter and its position to be changed via /playercounter left/middle/right
Code
Code:
/playercounter - Toggles the player counter on or off. Persists through restarts/reloads.
/playercounter left/middle/right - Repositions the player counter to the left, middle or right part of the screen. The position is unique per player and persists through restarts/reloads
You can also change the actual text of the player counter by delving into the .lang file. Check out the FAQ for a mini-tutorial.
Code
Code:
color = "1 1 1 0.5" - Red Green Blue Alpha(opacity). All numbers range from 0 to 1. Default color is white "1 1 1" with a 50% opacity "0.5"
defaultPosition = "left" - The default position of the player counter. right/left/middle. This option is not retroactive, meaning that it will only apply to new users, not the ones currently on the server. If you want this to apply to the current users as well. 1. unload the plugin. 2. change the default position in the config. 3. delete the plugins data file. 4. load the plugin
fontsize = 18 - The size of the font the plugin uses for the counter.
serverIconID = "00000000000000000" - Set this to the ID of a player whose profile picture you would like the plugin to use when sending messages.
showSleepers = false - Set to true to show the amount of sleepers currently on the server next to the current player count.
usePermissions = false - Set this to true to allow the use of permissions
Original publisher cover.
Archived release
Bamabo’sPlayerCounter.cs, version 1.5.2. Compatibility with current Rust servers has not been tested.Gallery
