1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

check which IP a player connects with

Discussion in 'Development' started by Zuruki, Apr 22, 2017.

  1. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    So, what I wanted to do is:
    we bought a new domain and want all players to connect with our new one.
    if someone joins with the old one, I want it to kick them and say'connect with the new IP - play.blahblah.net'

    is this possible ? how can I do this?
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    UNLESS the IP of the new domain and the old domain pointing towards is different, you cant tell
     
    Zuruki likes this.
  3. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    Goddamn it...
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you can ask player to enter the domain they connected with but that's just counter intuitive
     
  5. Zuruki

    Zuruki Baby Zombie

    Messages:
    118
    GitHub:
    zuruki
    yeah. guess I'll have to redirect our old domain.
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Bukkit for MCPC has this feature, but I don't think thats possible in MCPE...
     
    Zuruki likes this.
  7. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    Yes that's what i meant, but according to some other people claims they will only show the IP not the hostname
    afaik that is, but worth a try after all this updates maybe...
     
  9. Miste

    Miste Baby Zombie

    Messages:
    109
    GitHub:
    Misteboss
    Instead of kick them you can transfer them on PlayerPreLoginEvent it's easier ^^
     
  10. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    It's on the same server, so it's pointless to transfer them. He just wants to force players to change the hostname they use.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.