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.
1) EntityDamageEntityEvent 2) world.getSpawnLocation() 3) Code: plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), "command");
Java docs are your best friend... http://jd.bukkit.org/doxygen/df/d06...t_1_1entity_1_1EntityDamageByEntityEvent.html an event is an event, if you can't assemble a functional event from the above information then you need to take a step back and do some research on the Bukkit event system: http://wiki.bukkit.org/Introduction_to_the_New_Event_System
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!