Can you ban an xbox player if they are not currently on the server?

I run a public server and I've been having a problem recently banning griefers who play from xbox. Luckily, the vast majority of griefers play from Steam for whatever reason. However,
for xbox players, Valheim doesn't seem to be able to ban these players unless I catch them while they are still online.

For example, Xbox_XXXXXXXXXXXX character name "ZZZ" represents a player who has been griefing the server

Yet, if I ban Xbox_XXXXXXXXXXXX, XXXXXXXXXXXX, and ZZZ...

The player still shows up and steals stuff.

It appears the only way to ban an xbox player is to ban them by character name while they are currently logged onto the server.

Has anybody else been having these problems?
11:13 am, April 30, 2023
Gullunardo 0 comments 0 likes

JPValheim replied to Can you ban an xbox player if they are not currently on the server? April 30, 2023 @ 10:40:38 am PDT

Ah, hello Burn... The way you describe is typically how I ban people. I just manually add their names to the banlist. Unfortunately, I have yet to be able to successfully ban an xbox player who is offline. No matter what I add to the list the only thing that ends up saving successfully and working is a steam64 ID.

It sounds like I need to find an xbox player who is currently on the server and then ban them while in-game, then save. Then I can look at what happens to the text file and how the game stores the xbox ID. So far, everything I have tried related to xbox players just gets wiped. I.E. the game thinks that the format is invalid and deletes it on server save.

Theoretically if I ban an online xbox player then save the server, the server will convert the character name into the format it uses for xbox accounts. This should reveal how to format the xbox account ID to make the ban actually work.

I'll update this once I test it out on some poor innocent xbox player :(
8:13 pm, April 30, 2023
0 comments 0 likes

seven replied to Can you ban an xbox player if they are not currently on the server? April 30, 2023 @ 11:20:39 am PDT

You could ask your players for a volunteer.
8:13 pm, April 30, 2023
0 comments 0 likes

Gullunardo replied to Can you ban an xbox player if they are not currently on the server? April 30, 2023 @ 9:42:32 am PDT

Wow, what a small world. I recognize your account. You are one of those players who terrain hacks servers and destroys everything near the start zone, yet here you are helping me? What an odd world. I'm happy to unban you from my public server but you keep attacking it jajaja. I'm not mad at you but I will point out how odd it is for me to see your profile name after banning and unbanning you on 3 separate occasions. You seem to have a regular habit of finding servers to destroy on weekends jajaja

Anyway back to the topic at hand - . The way you describe is typically how I ban people, I just manually add their names to the banlist on the server. Unfortauntely, I have yet to be able to successfully ban an xbox player. No matter what I add to the list the only thing that gets saved successfully are steam64 IDs. (which is how I recognize you lol)

It sounds like I need to find an xbox player on the server; ban them by character name; and then see what happens to the text file after. So far, everything I do related to xbox players just gets wiped. I,E, the game thinks the format is invalid and deleted the line.

It sounds like I need to run a test to determine the format of the ID the game uses to ban an xbox player. If I ban an online xbox player then save the server; theoretically the server will convert the character name into the account's identifier, which will reveal how to format the xbox account ID to make the ban actually work. I just haven't had the heart to ban an innocent player to determine this jaja
5:13 pm, April 30, 2023
0 comments 0 likes

burn replied to Can you ban an xbox player if they are not currently on the server? April 30, 2023 @ 6:21:03 am PDT

you could try manually editting and re-saving the "bannedlist.txt" file in your server's main directory, (as opposed to trying to ban them from within the game). place the ID on the list, save the file. restart the server and check the bannedlist.txt again to see if the ID is still there.
2:13 pm, April 30, 2023
0 comments 0 likes