undef

Discussion in 'Plugin Development' started by Roan1, Mar 14, 2012.

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

    Roan1

    1. Player1 attack player2. How to get coordinates both players?
    2. How to get spawnpoint coordinates?
    3. How to run console command?
    I'm just started writing plugins, sorry for this questions.
     
  2. Offline

    Father Of Time

    1) EntityDamageEntityEvent
    2) world.getSpawnLocation()
    3)
    Code:
    plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), "command");
     
    Roan1 likes this.
  3. Offline

    Roan1

    EntityDamageEntityEvent? So, write me an example, please. Which event I must use?
     
  4. Offline

    Father Of Time

    Roan1 likes this.
  5. Offline

    Roan1

    Hmm, thanks.
     
  6. Offline

    Father Of Time

    My pleasure, if you put together a sample that simply won't work right return and post your sample code, I would be more than happy to assist you with debugging any errors.

    Good luck with your project Roan1!
     
  7. Offline

    Roan1

    Thank you;)
     
Thread Status:
Not open for further replies.

Share This Page