on fishing:
set {_player} to player
if held item of {_player} is a fishing rod:
wait 10 minutes
if held item of {_player} is a fishing rod:
open chest inventory with 3 rows named "Anti Auto Fishing" to {_player}
set slot 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26 of player's current inventory to red stained glass pane named "&f"
set slot 13 of player's current inventory to green stained glass pane named "&2click here"
wait 15 seconds
if player is viewing chest with name "Anti Auto Fishing":
kick {_player} due to "auto fishing isn't allowed on the server"
else:
# Do nothing if the player is no longer holding a fishing rod
else:
cancel event
on inventory click on slot 13 of chest:
close inventory for player
exit
on inventory close:
kick {_player} due to "auto fishing isn't allowed on the server"