/sinfo(serverinfo)

For all mod-related questions and custom code.
Post Reply
User avatar
Loading...
Offline
Posts: 41
Joined: December 21st, 2011, 5:57 pm

/sinfo(serverinfo)

Post 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

User avatar
Hellenion
Offline
Posts: 220
Joined: October 20th, 2011, 9:20 am
Location: Subnet
Contact:

Re: /sinfo(serverinfo)

Post by Hellenion »

It is possible to do that, it won't be the most difficult mod.

I suggest reading this useful post.
A = {x ∈ P(U) | x ∉ x}
Mods:
  1. /Su - Allows players to temporarily become a different rank
  2. /Snap - Like /Line but only draws straight or diagonal lines.
  3. pre-0.630 skip/none block

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: /sinfo(serverinfo)

Post 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).

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: /sinfo(serverinfo)

Post by Ollieboy »

Your username trolled me. I was like, WHO THE HELL POSTED THIS AND WHY CAN'T I KNOW NOW?!
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
Loading...
Offline
Posts: 41
Joined: December 21st, 2011, 5:57 pm

Re: /sinfo(serverinfo)

Post by Loading... »

hehe thanks

Post Reply