[Release] serverMessage in world.properties - OdinMS

Newbie Spellweaver
Joined
Jul 16, 2008
Messages
94
Reaction score
16
It's being a while since I joined this community and never posted anything useful, now is the time for me to give something back to you all.

The only way so far to change the default server message is to go and edit the file and compile your source or by using the !servermessage command. This is a little mod i did to make editable from the world.properties file. For this is use SeanPack v5.9 but am sure it would work with any repack.

Open File: net.sf.odinms.net.channel.ChannelServer.java:

Around line 91 you will find:

Code:
private String serverMessage = "SeanPack V.5.9 beta. Enjoy~";

Change it to:
Code:
private String serverMessage;

Around line 157 and find:

Code:
moreThanOne = Boolean.parseBoolean(props.getProperty("net.sf.odinms.world.morethanone", "false"));

After that line add:

Code:
serverMessage = props.getProperty("net.sf.odinms.world.serverMessage");

Around line 184 find:
Code:
mesoRate = Integer.parseInt(props.getProperty("net.sf.odinms.world.meso"));

After that line add:

Code:
serverMessage = props.getProperty("net.sf.odinms.world.serverMessage");

Save and compile your source.

Open the file world.properties and add this line:
Code:
#change the server message servermessage
net.sf.odinms.world.serverMessage=Change me

Save and run server.

NOTE:I never register on odinms.de because when I found out about it the site had already being close down or for that matter I didn't event know that this had being done before. I started using OdinMS about a month ago when I register on this site.
 
Last edited:
do we have to compile?

I think you have to compile first time since you are editing channelserver.java the first time which is a source. But after that I think you don't have to when you edit just world.properties. I think you just have to change the message in it before you launch after that..

EDIT: AHH iMurad beat me to it.. ahh but yea.. =p
 
Oh crap, yea, you have to compile after setting it up. Thanks for mentioning that dark :P
 
!servermessage o-o no need for that lolz we need a remote control command thing like titans rofl
 
!servermessage o-o no need for that lolz we need a remote control command thing like titans rofl

no.. !servermessage resets soon as you pull down the server if I recall correctly. Unless they patched it to work better.. then yea.. that's how i remember it O_o
Plus people taht log in after you do !servermessage don't get the new servermessage i believe.. or do they.. but I'm pretty sure it resets after you pull down servers if you do !servermessage
 
You didn't even give credits to the person on odinms.de...
GG...
I hate people like you. Taking this script and releasing it as your own is like stealing >_>
People like you deserve to die slow painful deaths.
I can tell your life story already.
Once upon a time...A 1 poster came to ragezone and released something he didn't make as his own and didn't give credits~!
A day later he went swimming and he got eaten by a shark :)

Alright, I knew it was taken from odinms.de
@zactanaz
Give credits to the one that actually released this.
 
Back