Hi
I have 20+ players inside my server, so i cant see all the steamids/nicknames when checking F2.
Anyway to access this information?
regards
Get all players/IDs connected?
- 1
- 2
Via uMod, you can use Players.Connected and loop through that.
How can i do it?
Can you explain more precisely?
I'll get you an example when I get on my desktop.
Thanks ;)
Basically i want to be capable of seeing the players steamid and ip so i can easly ban them using both ways.
RustyRootThanks ;)
Basically i want to be capable of seeing the players steamid and ip so i can easly ban them using both ways.
Isnt that plugin for oxide?
Wulf gave me a handy plugin yesteday
just name the file ValheimDev.cs and place it in plugin folder.
It creates a new file in ../umod/logs/ which contains the charactername and steamid when a player joins the server.
i am using a watchdog service with entr to track file modification and then entr trigger a shell script which post the last line as webhook to my discord. https://github.com/ChaoticWeg/discord.sh
have fun
using uMod.Common;
namespace uMod.Plugins
{
[Info("Valheim Dev", "Wulf", "0.0.2")]
[Description("Development testing plugin, yah")]
[Log("default")]
[Log("playerjoin", "playerjoin.log")]
public class ValheimDev : Plugin
{
private bool CanPlayerLogin(string playerName, string playerId, string playerIp)
{
Logger.Info($"{playerName} SteamID:{playerId} attempting to join");
return true;
}
}
} Thank you mate**
if you interested drop me a line in discord i can share watchdog script + service files
for free?
There is a problem.
I added "PlayerIP:{playerIp}" to the plugin but it is not showing the user ip, it shows:
"PlayerIP: 0 .0 .0 .0 attempting to join"
yep ip down not work :/
@Wulf, anyway to solve the playerip problem?
As soon as I find a way to get that info from the game.RustyRoot@Wulf, anyway to solve the playerip problem?
Thanks ;)
Merged post
@Wulf
"[uMod] 10:57 PM [Info]"
Just a question, how can i edit [uMod] text?
I want to edit to my server name.
- 1
- 2