Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onBlockFromTo(BlockFromToEvent event) {
- Block to = event.getToBlock();
- int y = to.getY();
- int x = to.getX();
- if (to.getType() == Material.LAVA || to.getType() == Material.STATIONARY_LAVA ) {
- if (x > 0 && y < 76){
- Bukkit.getServer().broadcastMessage("Red Team Has Won!");
- }
- else if (x < 0 && y < 76){
- Bukkit.getServer().broadcastMessage("Blue Team Has Won!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement