#Fabric 1.20.1 Multiplayer Mod

60 messages · Page 1 of 1 (latest)

manic crow
#

Hello, I was wondering if anyone could make a mod where there is a config and you can type the join message and first join message of any server and the player automatically greets the player. For example:

I set the join message in mod config to "&b(player name) &ajoined the server!" and it checks if any plugin sends that message in chat and extracts the name of the player who joined from the join message and makes player say in chat "Welcome (player name)". I request someone to make this and I would really appreciate anyone who makes this. Thanks.

PS: I don't really need the config thing, I need it for a server who gives rewards for welcoming new joined people. The join message for the server I am talking about is "&8[&a+&8] &a(PLAYER_NAME)". I really appreciate if someone could make a mod to extract the player name from the join message "&8[&a+&8] &a(PLAYER_NAME)" and make me send "Welcome (PLAYER_NAME)"

Please someone make this

loud cosmos
#

Should be easy, lemme give it a go

loud cosmos
loud cosmos
#

It's probably very sketchy to download a random jar but I cba to upload it anywhere else tbh

#

I can also send the source code directly

#

But I don't want it on my github

#

The mod has a config you can access via modmenu or /welcomer config

#

You can change the format it's listening for there, the default is \[\+] (.*) which should probably have been \[\+] (.+)

#

There's also a response format, the %s will be replaced with the captured group (which is the inside of the parantheses in the listening format)

loud cosmos
#

It has its special rules and syntax

#

If you don't know how to set up a regex string to match what you want, ask someone here or some llm

#

There's also an auto response option with a delay (in ms from the time the message was received)

deft jolt
loud cosmos
#

Additionally, I've added a keybind that you can press to respond to the last welcome message that was received

#

If auto respond is disabled or the message somehow didn't go through, you can still use this

#

It defaults to G

loud cosmos
#

So those &8 &a character groups will be removed from the message before trying to match the pattern to it

#

Beware that not all text color/style uses those character groups, that's a very old way of doing them and most modern servers will send styled text directly

#

So you can't match against those even if you wish to do so

#

So I'd recommend keeping that option on

#

Oh and for some reason I left the default delay value at 0 ms, idk why

#

I'd recommend increasing that

#

I also thought of adding a randomize delay option but the configuration for it got messy so I decided not to

#

If that's valuable for you I could readd it and let you configure it using the json

#

Ok that's enough rambling

#

Oh, as for dependencies

#

If you're missing any, you should get a crash message saying which ones are required

#

It's fabric api, yacl and fabric language kotlin

#

With modmenu being optional

#

Ok bye

manic crow
#

I really really appreciate it

#

But it keeps crashing my game

#

java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'welcomer' at 'me.rime.welcomer.Welcomer'!

loud cosmos
#

Thing failed doesn't tell me much

loud cosmos
#

You have to use java 21

manic crow
#

It works

loud cosmos
#

Nice

#

Lmk if you ever need the source code

#

Or an update

manic crow
#

I really really appreciate it lol

#

I tryed to make it myself for so long

loud cosmos
#

The main issue was that my mod generator somehow broke

manic crow
#

Ah that sucks

#

Alr gtg have a good day

loud cosmos
#

(I have a template mod that I run a rust application on to generate other mods)

#

You too