Project Zomboid

Project Zomboid

Player Connection Message
45 Comments
Fabi 7 Mar, 2024 @ 7:07am 
Hello, could I send the Brazilian Portuguese translation for your mod?
Vasher 27 Feb, 2024 @ 4:24am 
The mod say when "player1 killed player2" ? or say player1 has died ?
Nark0t1k 26 Jan, 2024 @ 3:27pm 
Didn't hide when admin hide is true :/
Lil Boogie 30 Sep, 2023 @ 9:28am 
Love your mod man, cept uh it doesnt hide when admin connects haha
mthoms 23 Sep, 2023 @ 1:59am 
Hi @KONIJIMA - Very thankful for many of the mods my server uses from your workshop!

I'd like to second TTV's request to write the messages to /all chat stream so that the discord integration can pick it up - would be really nice to see in the discord ingame chat channel when people die/join/etc... Currently we use the ServerMessages mod which posts join and leaving of server to the discord chat (but doesn't have the death post there)...

Would switch directly over to this mod if it could post the info to the /all chat
JuhnWeak 4 Sep, 2023 @ 8:23am 
why do i ticked on Hide Admin then it's still announce when i log in?
Mini Evilness 9 Jul, 2023 @ 5:04am 
Thank you, my other server messages was not working anymore :(.
Eternity 24 Jun, 2023 @ 6:30am 
Suggestion:

- Would it be possible to add an option that only the staff/moderator/admin can see the connection messages?
KONIJIMA  [author] 22 Jun, 2023 @ 8:18pm 
@TTV/q587p well pz already have a player death announcement. So the mod add one is not that usefull, but I will add new options eventually. My other mod Player Death Message is doing that already. Just enable what you need. The server option doesn't effect the mod in anyway. So you would get double messages if you enabled both.
Kyjivan BookDragon 22 Jun, 2023 @ 7:44am 
To get translated message about death in pzserver.ini this option must be false?

# If checked, every time a player dies a global message will be displayed in the chat
AnnounceDeath=true
Kyjivan BookDragon 20 Jun, 2023 @ 8:12pm 
Suggestions:

1) add the option (?) to write connection/death messages to the /all stream so that integration with Discord works;

2) Is it possible to make the death notification more detailed? Like giving some statistics, how long the character lived, how many he/she killed, weapons, etc.
KONIJIMA  [author] 20 Jun, 2023 @ 7:36pm 
Update: 20 Jun @ 10:35pm
- Fix error line 56.
- Attempt to fix language encoding.
- Added ES, RU, UA languages.
Nandi 20 Jun, 2023 @ 3:57am 
@KONIJIMA - disabled it , no disconnects. It's annoying as I really like this mod :(
KONIJIMA  [author] 19 Jun, 2023 @ 10:34am 
@crayven_ady i supose you could try without the mod and see if that happens still I don't see how this mod would disconnect players tho.
Nandi 19 Jun, 2023 @ 6:44am 
@KONIJIMA no error - they just get randomly dc after I updated the mod. Something must have broken as this is the only mod that changed. :(
RedLink-kam 19 Jun, 2023 @ 5:27am 
@KONIJIMA It would be nice if your mod also implemented this.
KONIJIMA  [author] 19 Jun, 2023 @ 5:23am 
@RedLink-kam that mod send a player message. It is not the same as sending a custom message. Tho I will have a look and see what I can do.
RedLink-kam 19 Jun, 2023 @ 4:54am 
you're not quite right. for example, this mod sends messages to the discord about the entry / exit of players from the game chat. - 2759895539
KONIJIMA  [author] 19 Jun, 2023 @ 4:24am 
This mod doesn't support discord integration because Project Zomboid doesn't allow sending custom chat message this way. The only way that it would be possible is to that the message is sent by a player itself, in which case case cannot be customized.
KONIJIMA  [author] 19 Jun, 2023 @ 4:19am 
I am currently testing everything on a dedicated server, and so far, it is functioning correctly without any errors. However, I encourage all of you to please share any errors you encounter, so we can address them promptly and move forward.
RedLink-kam 19 Jun, 2023 @ 1:36am 
does this mod display messages through discord integration?
ornox 18 Jun, 2023 @ 10:58pm 
Same issue as below, man, a lot of people use this mod on stable running dedicated servers... can we at least get the old version for stability? Jesus.
Nandi 18 Jun, 2023 @ 10:39pm 
Last update fucked it. Now players are getting disconnected like crazy and the mod causes 20-30 errors everytime someone logs or delogs. :(
KONIJIMA  [author] 18 Jun, 2023 @ 6:22pm 
Update: 18 Jun @ 8:56pm
- Fix server error trying to call nil (should fix the PlayerDied message not showing).
- Added prints to the server log.
- Merged Italian translation branch from Eternity841
Eternity 18 Jun, 2023 @ 4:59pm 
Done, you should see it. Thank you!
KONIJIMA  [author] 18 Jun, 2023 @ 4:37pm 
@{9GU}Eternity you can fork the Github repository, and your translations, commit and create a pull request.
Eternity 18 Jun, 2023 @ 4:35pm 
Hello! I have translated your mod into Italian language. How can I send you the files?
KONIJIMA  [author] 18 Jun, 2023 @ 4:35pm 
Update: 18 Jun @ 7:34pm
- Cleanup and fixes.
- Added timestamp to JSONL objects.
Grumpy 18 Jun, 2023 @ 3:28pm 
Hello!

I sent you the information of the error we've been receiving on our dedicated server, since your most recent update, on your github. Full error has been posted in there.

Thank you.
pompous 18 Jun, 2023 @ 12:23pm 
`attempted index: getUsername of non-table: null
function: doDisconnect -- file: utils.lua line # 38 | MOD: Player Connection Message
function: onServerCommand -- file: MainClient.lua line # 15 | MOD: Player Connection Message
java.lang.RuntimeException: attempted index: getUsername of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
zombie.network.PacketTypes$PacketType.onMainLoopHandlePacketInternal(PacketTypes.java:1028)
at zombie.network.GameClient.mainLoopHandlePacketInternal(GameClient.java:644)
zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
pompous 18 Jun, 2023 @ 12:21pm 
this is triggering error after error on my server console.

Callframe at: get
function: OnTick -- file: MainServer.lua line # 50 | MOD: Player Connection Message

ERROR: General , 1687116063021> 269,677,029> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor36.invoke.
ERROR: General , 1687116063021> 269,677,030> DebugLogStream.printException> Stack trace:
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
Caused by: java.lang.IndexOutOfBoundsException: Index 8 out of bounds for length 8
at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)
KONIJIMA  [author] 18 Jun, 2023 @ 11:18am 
This is a complete rewrite so any feedback is appreciated.
I added most requested feature and a log file `PlayerConnectionMessage.jsonl`
If you know how to make a discord bot, you can read lines from that file for post events on discord.
KONIJIMA  [author] 18 Jun, 2023 @ 11:07am 
Mod has been updated.

Update: 18 Jun @ 2:05pm
Player Connection Message enhances your server by providing comprehensive announcements for player-related events.

Stay informed about who joins or leaves the server, as well as when players meet their demise or score kills.

The mod also logs these events in JSONL format for convenient analysis.
File can be found on the server at this path:

lua/PlayerConnectionMessage.jsonl

With customizable sandbox settings,
- Hide connection messages for admins, moderators, and staff.
- Hide death and/or kill messages.
- Customize the message colors to suit your preferences.
Haek 2 Jun, 2023 @ 1:47am 
Hi! Awesome mod! Question what is the meaning of the colors?
Madforce2k 27 Oct, 2022 @ 9:08pm 
Is there any way that this can integrate with the discord integration? So you can see join/leave as well as normal chat?
buffy 24 Aug, 2022 @ 2:52am 
Could maybe remove the word 'is' for grammar <3
TIFFANY 14 Aug, 2022 @ 5:47am 
Sorry for repeating. I have been able to turn off the display when logging in, but the display is still there when logging out.
AndyLoco 28 Jul, 2022 @ 9:04pm 
Hey KONIJIMA Im having a problem and maybe you can help me, my mod settings in the sandbox option are resetting everytime I restart the server and its really frustating, do you know why this could be or how to fix it ?
KONIJIMA  [author] 28 Jul, 2022 @ 8:14pm 
@ZR sure that couldn't hurt
Z 28 Jul, 2022 @ 8:11pm 
Hi, can you please add the option to turn of "disconnected" notification?
AndyLoco 28 Jul, 2022 @ 4:08pm 
Thanks friend ! I will :steamthumbsup:
KONIJIMA  [author] 28 Jul, 2022 @ 3:52pm 
@Gas.Pimienta sure go ahead but follow the thread so that you keep up-to-date with the future updates.
AndyLoco 28 Jul, 2022 @ 2:42pm 
Permission Request:
Hi, @KONIJIMA ! I would like to ask your permission to use your mods in our server modpack. I will give you full credit for your mod in every media I can. If you allow us to do this our community would be very grateful. Thank you !
KONIJIMA  [author] 23 Jul, 2022 @ 12:58pm 
@TIFFANY thanks for letting me know I'll try to fix that soon.
TIFFANY 23 Jul, 2022 @ 7:02am 
Even if Hide Admin is checked, the administrator's login will be notified via chat.