It is currently July 23rd, 2018, 11:55 am


All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Get wom direct link
PostPosted: September 29th, 2012, 10:30 pm 
SupOP

Joined: June 24th, 2011, 10:27 pm
Posts: 314
Command to give players their wom direct link.

Show
Code:
static readonly CommandDescriptor CdWomDirect = new CommandDescriptor
        {
            Name = "getwom",
            Aliases = new[] { "getlink", "getdirect" },
            Category = CommandCategory.Info,
            UsableByFrozenPlayers = true,
            Help = "Gets your wom direct connect link.",
            Handler = WomDirectHandler
        };

        internal static void WomDirectHandler(Player player, Command cmd) {
            StringBuilder sb = new StringBuilder();
            sb.AppendFormat("mc://{0}:{1}/{2}/", Server.ExternalIP, Server.Port, player.Name);
            foreach (byte b in System.Security.Cryptography.MD5.Create().ComputeHash(Encoding.ASCII.GetBytes(Heartbeat.Salt + player.Name))) {
                sb.AppendFormat("{0:x2}", b);
            }
            player.Message("Your WOM direct connect link:");
            player.Message(sb.ToString());
        }


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: September 30th, 2012, 12:52 pm 
User avatar

Joined: October 20th, 2011, 9:20 am
Posts: 220
Location: Subnet
This is, of course, very secure.

So the link appears as a server message to a player, then what? You can't copypaste from minecraft.

_________________
A = {x ∈ P(U) | x ∉ x}

Show
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


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: September 30th, 2012, 7:17 pm 
SupOP

Joined: June 24th, 2011, 10:27 pm
Posts: 314
Type it?


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: September 30th, 2012, 9:15 pm 

Joined: May 26th, 2011, 2:15 pm
Posts: 279
Useful for the server owner, who can easily get the Direct URL in his console.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: October 1st, 2012, 8:25 am 

Joined: August 21st, 2011, 6:31 am
Posts: 280
Location: United Kingdom
What? The console already has a url in the servergui. (Not mc:// but blah)

_________________
You cannot use certain BBCodes: [img].


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: October 1st, 2012, 5:43 pm 

Joined: May 26th, 2011, 2:15 pm
Posts: 279
Jonty800 wrote:
(Not mc:// but blah)

Exactly. I was talking about the WoM Direct link.


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Get wom direct link
PostPosted: October 3rd, 2012, 12:47 am 
User avatar

Joined: May 28th, 2012, 12:03 am
Posts: 25
If I'm having issues with MC.net and wom, I do this (as I am on 127.0.0.1)

mc://127.0.0.1/OfficerFlake/blahblahblah

you bypass the test as you are on localhost (though, this won't work with strict authentication testing)

_________________
=== MeinKraft 24/7 ===
Server Owner & Code Developer


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net