Right click added file
PS: i forgot to commit this
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
package fr.nextstation.unmei.events
|
||||||
|
|
||||||
|
import org.bukkit.event.EventHandler
|
||||||
|
import org.bukkit.event.Listener
|
||||||
|
import org.bukkit.event.block.Action
|
||||||
|
import org.bukkit.event.player.PlayerInteractEvent
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
class PlayerEvents : Listener {
|
||||||
|
@EventHandler
|
||||||
|
fun rightClick (event : PlayerInteractEvent){
|
||||||
|
if (event.action == Action.RIGHT_CLICK_BLOCK) {
|
||||||
|
event.player.teleport(event.player.location.add(0.0,10.0,0.0));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user