Need someone to add a teleport option to a plugin

Discussion in 'Plugin Development' started by Reteckz, Aug 4, 2012.

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

    Reteckz

    Hello!

    A few days ago someone created a plugin for me, but he's too busy at the moment to add the following, so could someone please do this for me?

    Here it is:
    The plugin lets you join an ice hockey game or leave by clicking on signs.
    But I would like to have it so that when you click the join sign, it teleports you to the leave sign, and when you click the leave sign it teleports you to the join sign.

    If you want to do this and dont get it exactly just send me a message ;)

    Thank you guys in advantage!
     
  2. Offline

    ZeusAllMighty11

    Ok, so basically, it would be something like:


    @EventHandler
    public void signTele(PlayerInteractEvent e){
    Player clicker = e.getPlayer();

    if(e.getAction()==RIGHT_CLICK_BLOCK){
    if e.getRightClicked()==Material.SIGN {
    if sign.contains("your text"){ // not really how that is, but you can fix it and figure that out
    clicker.teleport(location);
    }
    }
    }
    }
     
  3. Offline

    davejavu

    This should be in "plugin requests" not development.
     
  4. Offline

    Reteckz

    rlly need this!
     
Thread Status:
Not open for further replies.

Share This Page