Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler
- public void onPlayerFish(PlayerFishEvent event)
- {
- Player p = event.getPlayer();
- Entity e = event.getCaught();
- if (!p.hasPermission("fisherman.use")) {
- return;
- }
- Location loc = e.getLocation();
- p.teleport(loc);
- p.sendMessage(ChatColor.RED + "You Have Been Caught By" + ChatColor.BLUE + p.getName());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement