Need a push in the right direction

Discussion in 'Plugin Development' started by NotDeadYet, Jul 27, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    NotDeadYet

    Okay, so I have this amazing plugin idea that I would like to attempt before I beg for someone to make it properly. I want to make a plugin called 'Jumper' that lets people follow you when you teleport away. In our faction server, people always seem to get away by teleporting home, to spawn, or to other people. Yes, i know we could tweak this in the config to put a delay, but it only puts a delay on the spawn and player teleportation; the faction teleportation is instant and you cannot stop it. Anyway... I would like to create plugin, so when someone teleports, it leaves a 'portal' open for 5 seconds for anyone to follow you. I know java pretty well, I have taken a couple of courses on it, but when I attempted to start this plugin, I had no idea what to do first. I know how to toggle the plugin on and off, but how would I start the main body of this idea? I don't claim to know anything about the bukkit API, so any help at all would be great :)
    Thanks in advance
    -NDY
     
  2. Offline

    Trc202

    Not really a "push" per say but if you wish combat tag can stop people from using commands when they are in combat.
     
  3. Offline

    xXxAdmanxXx

    This COULD be possible to the best of my knowledge, just get the coordinates of where he is before and after he warps, then spawn a portal block there for graphical reasons and check if a player is in the same block, if he is warp him to the coordinates of where the person warped too.

    I personally, only know how to do half of what I said but I know its possible. It shouldn't be that hard to find the functions on the Bukkit Docs.

    ~Ad-man
     
  4. Offline

    NotDeadYet

    I realize i can probable stop them from teleporting, but this would be so much cooler. I guess what i am asking is what commands should i look for? Should i read text and say if someone uses /tp then get the before and after. I mean, how do i detect the 3-5 different kinds of teleportation? What listener would i use?
     
  5. Offline

    Trc202

    OnPlayerTeleport event is what you would use. The main problem I see with this is players abusing the system in order to get tp's to places they are not allowed.
     
Thread Status:
Not open for further replies.

Share This Page