Separate names with a comma.
Comments in 'Plugin Development' started by Killman2, Jun 30, 2014.
How do you get the coordinates of a block in the new API?
Like $event->getBlock()->getX(); ?
I think that's correct, but I may be wrong. If you're looking for a bit more complex stuff with coordinates, you can check out this. Also, if you're trying to get the coordinates of an entity, you'd have to do $event->getEntity()->getX(); and the like.
I am just making a port of "WorldGuard" from PC. And in my plugin, to select the positions you use the wooden axe, not commands like /pos1 , /pos2 and etc…in those commands, you just get the coordinates of the sender, that's easy, but in this case I need to get the coords of the block.
make it iron sword bcz people in creative would have to switch gamemodes
No, because I already added the commands /rg pos1, /rg pos2, for people in creative mode
Oh, so I was right then. Thanks
Refer to my worldeditor plugin for reference.