Adding commands

Post here to get help with using or setting up fCraft
Post Reply
BloodlustXIII
Offline
Posts: 14
Joined: January 17th, 2012, 3:42 am

Adding commands

Post by BloodlustXIII »

Examples: /title and /afk.
I know it's possible but I don't really know how to do it. It probably involves coding but I know a fragment or two of that ;P
Got on an old friend's fCraft server and e has those commands. Let's just say I got jealous ;P

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

Re: Adding commands

Post by fragmer »

You can use /SetInfo to change the way players' names are displayed, which includes setting the title. For example, I could do

Code: Select all

/SetInfo fragmer displayedname &c[op]fragmer
to give myself an ugly red "[op]" badge.

/AFK command has been suggested, more than once, but I decided not to add it. Discussion

Please do NOT try modding fCraft if you dont have solid programming knowledge. It's a complicated bit of software. If you are feeling confident, use "Modding" section on this forum. Read the FAQ in that section.

BloodlustXIII
Offline
Posts: 14
Joined: January 17th, 2012, 3:42 am

Re: Adding commands

Post by BloodlustXIII »

Is there a way to change only the title color? Or is it stuck changing the whole thing name and title.

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

Re: Adding commands

Post by Hellenion »

You can change the colour at any point in the text, I suggest experimenting with /Colors a bit first.
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

BloodlustXIII
Offline
Posts: 14
Joined: January 17th, 2012, 3:42 am

Re: Adding commands

Post by BloodlustXIII »

so:

/SetInfo fragmer displayedname &c[op]&0fragmer

Would give a red title and black name? Is that the same way /colors works too?

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

Re: Adding commands

Post by fragmer »

BloodlustXIII wrote:/SetInfo fragmer displayedname &c[op]&0fragmer

Would give a red title and black name?
Correct.

BloodlustXIII
Offline
Posts: 14
Joined: January 17th, 2012, 3:42 am

Re: Adding commands

Post by BloodlustXIII »

Awesome thanks :D

Post Reply