Page 1 of 1

/sinfo(serverinfo)

Posted: December 21st, 2011, 6:05 pm
by Loading...
I don´t like it that all players can see /sinfo :hmm:
can i modding it with a code ..? :?

that only Owner can see server info :D

Re: /sinfo(serverinfo)

Posted: December 21st, 2011, 7:01 pm
by Hellenion
It is possible to do that, it won't be the most difficult mod.

I suggest reading this useful post.

Re: /sinfo(serverinfo)

Posted: December 21st, 2011, 8:23 pm
by fragmer
Tying it to an existing permission is easy. Find the /SInfo command descriptor (fCraft/Commands/InfoCommands.cs, look for CdServerInfo). Add a line to the definition:

Code: Select all

Permissions = new[] { Permission.BlahBlahBlah }
(replace BlahBlahBlah with the permission that you want to use, e.g. ViewOthersInfo).

Re: /sinfo(serverinfo)

Posted: December 21st, 2011, 9:07 pm
by Ollieboy
Your username trolled me. I was like, WHO THE HELL POSTED THIS AND WHY CAN'T I KNOW NOW?!

Re: /sinfo(serverinfo)

Posted: December 25th, 2011, 10:23 am
by Loading...
hehe thanks