1. These forums are being retired. Please ask all questions and help threads and any other type of discussions on GitHub. During this time, new threads and user registrations have been disabled.

TeleportRequest

Discussion in 'Plugin Release Discussion' started by MarioE, Aug 10, 2012.

  1. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Description:
    • Adds teleport request commands, which teleports players if the other person accepts it.
    Permissions:
    • tprequest.accept - Allows /tpaccept.
    • tprequest.autodeny - Allows /tpautodeny.
    • tprequest.deny - Allows /tpdeny.
    • tprequest.tpa - Allows /tpa.
    • tprequest.tpahere - Allows /tpahere.
    Commands:
    • /tpa <player> - Sends a teleport request to that player.
    • /tpaccept - Accepts a teleport request.
    • /tpahere <player> - Sends a teleport-here request to that player.
    • /tpautodeny - Toggles automatic teleport request denial.
    • /tpdeny - Denies a teleport request.
    Links:
    Config:
    • Interval - The number of seconds between the notification messages.
    • Timeout - The number of times the notification message should be sent.
     
    • Like Like x 3
  2. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    647
    What if a player has two or more requests at the same time? /tpaccept would accept them all?
     
  3. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Yes, although if someone does /tpahere <player> then another person does /tpa <player>, it would probably be a bit weird.

    EDIT: Only allows one pending request per player now (/tpaccept would just accept one request).
     
  4. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    Yay, a solution to people you don't want to give /tphere to :3

    Could you create a customizable config? Ex. Setting the time between "Player has requested to teleport to you."
     
  5. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    I was going to write a config description, but I forgot to. It's in tshock\tpconfig.json.
     
  6. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    This is pretty cool on Colin's server... Might have to get it
     
  7. popstarfreas

    Plugin Developer

    Joined:
    Feb 27, 2012
    Messages:
    357
    how about be able to ban a certain player from trying to tp to you?
    Also how about being able to add someone you trust so that if they tpa to you you dont need to accept?
    Just like to inform you that when it says "Invalid syntax" it comes up
    proper syntax :
    /tpr
    /tphr
    must of changed it and forgot to change that too
     
    • Like Like x 1
  8. DankBud

    DankBud Level 8

    Joined:
    Jul 23, 2011
    Messages:
    228
    Great plugin! Request. <3
    /tpo - Staff tp, does not send a request
    /tpha - Send a tp here request to everyone, with a defined reason. E.g /tpha "Event Starting"
     
  9. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    647
    If you're staff, couldn't you just /tp to the player? No need to have this plugin do it. Unless, that is, you want a completely silent tp. /tp will tell the player that you tp'd to them.
     
  10. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    The permission "tphide" removes the "Player teleported to you" message.
     
  11. chafoux

    chafoux Level 1

    Joined:
    Sep 16, 2012
    Messages:
    5
    Thank's !Awesome plugin !
    On minecraft there is a plugin with the same command, this is great, its like I'm not lost ;)
     
  12. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    Love this plugin, been using it for a while.. have a problem though. I'm getting this error on startup :\

    System.NullReferenceException: Object reference not set to an instance of an object.
    at TeleportRequest.TeleportRequest.OnInitialize()
    at System.Action.Invoke()
    at Hooks.GameHooks.OnInitialize(Boolean pre)
    at Terraria.Main.DedServ()
    at Terraria.ProgramServer.Main(String[] args)

    Any idea what's causing it? I'm sure I'll have to just replace a file with a fresh one.. but I don't know which file the problem is stored in. Thanks for any help.
     
  13. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    Is the config file valid?
     
  14. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    I'm not quite sure what you mean (the normal Tshock config.json? Not like a separate config I'm not aware of o-o?).. The config file works and hasn't been modified or anything.. The crash just suddenly happened and then I couldn't start the server up until I removed the DLL from the folder.
     
  15. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    386
    The "tpconfig.json" file in the tshock folder.
     
  16. Antagonist

    Antagonist Level 6

    Joined:
    Sep 15, 2012
    Messages:
    149
    OH wow.. it was blank. No idea why, either I accidentally cleared it or somehow it got cleared, maybe the crash cleared it? I deleted it and it's fixed now. Thank you very much! Love your plugins by the way Mario ;)
     
  17. Wolfe

    Wolfe Level 9

    Joined:
    Jan 3, 2012
    Messages:
    386
    I forgot to tell you, typing /tpa returns a message that tells you the syntax is /tpr.
     
  18. luke99

    luke99 Level 0

    Joined:
    Aug 28, 2013
    Messages:
    3
    Why only superadmin can use these commands?
    I tried to add these commands in another group (with sqlite manager or the tshock command /modgroup add <group name> tpa), but I have always the same massage: 'you do not have access to this command'
    Someone can help me? Thanks ;)

    p.s.
    I use tshock 4.0
     
  19. DarkOS

    DarkOS tShock supporter and programming hack.

    Joined:
    Aug 17, 2011
    Messages:
    849
    Tpa isn't the permission. Check OP.
     
  20. luke99

    luke99 Level 0

    Joined:
    Aug 28, 2013
    Messages:
    3
    OP? Sorry, I didn't understand.