rcon say banner


(PowerWing) #1

I made a little banner using Java and rcon.

at the moment the program requires you to edit the source file to insert your server IP, port and rcon password. These edits are to be made in Banner.java just replace the YOURHERE messages. IP and password have to be within quotes (which are already present). port is bare.

(a little bit of coding knowledge is required I admit.)

Afterwards you can compile using

javac *.java

and to run it just use

java Banner [bannerFile]

where bannerFile is a txt file that has 1 banner message on each line.
To stop the code just close the window in which java is running or press ctrl+c to cancel it.

an example bannerfile

Welcome to our awesome Brink server.
Play fair.
Work together.
Keep moving.

this file has 4 different messages that it will loop through. You can also use color codes in the banner messages using ^0 - ^9 or any letter.

source files can be downloaded from http://www.ewit.nl/banner.zip

I would appreciate it if no one stole my code and claimed credit.

For more questions just post.

As for any warranty it is all on a use at your own risk basis. I do not claim responsibility when your server crashes or people leave because they hate the Commander: texts.

So far it has run stable for 3 days without crashing itself or the server so I guess it works.

Ps. I’m secretly hoping that the announced update will make this obsolete just as fast.


(Mustang) #2

Bit of info for you
Instead of using “say” try using “addChatLine”


(PowerWing) #3

addchatline doesn’t produce a visible effect for me. Not sure if it should but Whenever I send that it doesn’t show anything on my screen.

Addchatline only works on the client it is run on, in my experiences at least. and is therefore not fit since this is done from a remote machine.


(Mustang) #4

That’s interesting to know
I imagined if the server was the source all clients would see it
Not had a chance to test it myself however