Teleport help...

Discussion in 'Plugin Development' started by Bush, Oct 5, 2011.

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

    Bush

    Can some show me an example of making a teleport command example /tpto bush work in coding and in plugin.yml if i have /tpto <player> in the plugin.yml
     
  2. Offline

    Celeixen

    i am not going to post a whole source because if you've already made a plugin its pretty easy..
    All you need to do is:
    Code:
    public void Bushteleport(Player player1,Player player2){
    player1.setlocation(player2.getlocation());}
    
    Then for the plugin.yml:
    Code:
    name: dgdfgfg
    main: dfgfdg
    version: over 9000
    commands:
        teleport:
            description: Description
            usage: /<command> <Playername>
    If you need any more help just go here
     
Thread Status:
Not open for further replies.

Share This Page