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

Solved Slapper transferring

Discussion in 'Plugin Help' started by Saluki, Oct 18, 2019.

  1. Saluki

    Saluki Creeper

    Messages:
    5
    GitHub:
    isaluki
    Hello,

    Could someone let me know how to make Slapper's NPC command system work with the transferserver command? I have tried a few combinations and cannot make it work. I would appreciate any help anyone could give me here.
     
  2. SleepSpace9

    SleepSpace9 Slime

    Messages:
    78
    GitHub:
    sleepspace9
    As far as I remember this should work:
    /slapper edit <Slapper id> addcommand rca {player} transferserver <server ip> <server port>

    Example if the ID of your Slapper is 123:

    /slapper edit 123 addcommand rca {player} transferserver sw.lbsg.net
    (you can omit the server port if it's the default port 19132)


    The "rca" command will execute the "transferserver" command behalf the player who hit the Slapper entity, as "{player}" is automatically replaced by the player's name at runtime.
     
  3. Saluki

    Saluki Creeper

    Messages:
    5
    GitHub:
    isaluki
    Epic, thanks! I'll try this out later.
     
  4. Saluki

    Saluki Creeper

    Messages:
    5
    GitHub:
    isaluki
    Yep - works fine! (Tip for others: make sure you use a new NPC, even removing the command from the old one doesn't seem to make it work).
     
  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.