Results 1 to 1 of 1
  1. #1
    Caesar1928's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    45
    Reputation
    10
    Thanks
    14

    [Fab] /ip command

    Here's a simple IP command for fabs if you didn't already know how to do it
    Code:
            internal class IPCommand : Command
            {
                public IPCommand()
                    : base("ip", 6)
                {
                }
    
                protected override bool Process(Player player, RealmTime time, string[] args)
                {
                    var plr = player.Manager.FindPlayer(args[0]);
                    var sb = new StringBuilder(plr.Name + "'s IP: ");
                    sb.AppendFormat("{0}",
                        plr.Client.Socket.RemoteEndPoint);
                    player.SendInfo(sb.ToString());
                    return true;
                }
            }

  2. The Following 2 Users Say Thank You to Caesar1928 For This Useful Post:

    bog624 (03-18-2017),WcCrusher (01-12-2016)

Similar Threads

  1. [Fab] PetMax command!
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 8
    Last Post: 01-05-2017, 02:08 PM
  2. [Fab] Tag + Gift Command
    By R1S3 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 18
    Last Post: 07-22-2016, 06:57 AM
  3. [Fab] Simple calculator command
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 7
    Last Post: 11-09-2015, 09:31 AM
  4. [Fab] Simple /kickall command
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 8
    Last Post: 11-07-2015, 02:11 PM
  5. [Fab] Gamble command (rolls number 1-100)
    By Caesar1928 in forum Realm of the Mad God Private Servers Tutorials/Source Code
    Replies: 6
    Last Post: 10-31-2015, 03:27 PM

Tags for this Thread