Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Teleport block

Comments in 'Plugin Development' started by domybest, May 23, 2016.

  1. domybest
    Offline

    domybest New Member

    Joined:
    Dec 18, 2015
    Posts:
    7
    Minecraft User:
    Riceball_bro
    Hello everyone here;)
    Does anyone have a plugin that teleports players who stand on the target block ?
    (When the player's position is (x,y,z,level), teleport him or her to the position I set)
    If there is no plugins about it, can anyone teach me how to code it ?
    Sorry for my bad English.
  2. Jazzwhistle
    Offline

    Jazzwhistle Notable Member

    Joined:
    Dec 27, 2014
    Posts:
    364
    Minecraft User:
    Awzaw
    Hi, it sounds like you want a portal plugin, of which there are quite a few available here - I use essentialsTP which works great.

    If the goal is to code your own then you'll find all the code you need for that in the existing portal plugins... if it's your first plugin I'd recommend you start by looking at some of that code, then figure out how to use the relevant parts for your needs. Remember to keep performance in mind too - you shouldn't check players' coordinates on every PlayerMoveEvent, for example, if you can use PlayerInteractEvent instead.
    Last edited: May 23, 2016

Share This Page

Advertisement