So basically I have multiple worlds named Workyard, but each one is incremented with a number, so we have Workyard1, Workyard2 etc. Basically, I saw on T9K that whenever you do /j Cool (for example), you automatically join the last world with the name of cool, so for example if there's Cool1 Cool2 and Cool3, you join Cool3.
How would I do this on my server so people go to Workyard2 instead of it saying there's multiple worlds? If I have to code this myself, how would I go at doing that?
Worlds - /j
- DreamingInsane
- Owner
- Offline
- Posts: 1303
- Joined: May 24th, 2011, 12:05 am
- Location: California, US
Re: Worlds - /j
Tbh, All you have to do is /wmain Workyard2 or whatever one it is.
Or give a specific rank a main.
/WMain @rank world
Ex: /WMain @builder builder34
Or give a specific rank a main.
/WMain @rank world
Ex: /WMain @builder builder34
"Words have no power to impress the mind without the exquisite horror of their reality.."
~ Edgar Allan Poe
~ Edgar Allan Poe
- boblol0909
- SupOP
- Offline
- Posts: 314
- Joined: June 24th, 2011, 10:27 pm
Re: Worlds - /j
You would have to find the code where it autocompletes. I'll try to find it later, if frag doesnt help you by then.Hawkzy wrote:So basically I have multiple worlds named Workyard, but each one is incremented with a number, so we have Workyard1, Workyard2 etc. Basically, I saw on T9K that whenever you do /j Cool (for example), you automatically join the last world with the name of cool, so for example if there's Cool1 Cool2 and Cool3, you join Cool3.
How would I do this on my server so people go to Workyard2 instead of it saying there's multiple worlds? If I have to code this myself, how would I go at doing that?
Re: Worlds - /j
fragmer is out of town for a week, so don't expect help from him soon.
That auto-completion was most definitely written by the T9k devs, if you want to code it yourself you'll need some programming experience and the fCraft source.
If you've got all that the auto-completion for worlds can be found in fCraft.World.WorldManager.cs as:
That auto-completion was most definitely written by the T9k devs, if you want to code it yourself you'll need some programming experience and the fCraft source.
If you've got all that the auto-completion for worlds can be found in fCraft.World.WorldManager.cs as:
Code: Select all
public static World FindWorldOrPrintMatches()
A = {x ∈ P(U) | x ∉ x}
Mods:
- /Su - Allows players to temporarily become a different rank
- /Snap - Like /Line but only draws straight or diagonal lines.
- pre-0.630 skip/none block
Re: Worlds - /j
Not sure if it's a recent addition but I'm quite sure it's not.
If you typed /j cool it would send you nowhere and give you a list of available worlds. I get the same query with civilian worlds, you cant just use /j civi because there are more than 1 civilian worlds.
Although you gave me an idea for a feature request.
If you typed /j cool it would send you nowhere and give you a list of available worlds. I get the same query with civilian worlds, you cant just use /j civi because there are more than 1 civilian worlds.
Although you gave me an idea for a feature request.
"Excuse me, have you got a spare $10?".... Yeah I do. So would you if you had a job.