#-###############################-# # # # AntiAutoFish # # (old) # #-###############################-# options: #config time: 0.05 second notify: true kick: true ban: false ban-time: 1 day action-amount: 3 #messages notify-message: "&8[&cAntiAutoFish&8] &cGracz &7%{_p}% &cużywa &7AutoFish&c!" kick-message: "&8[&cAntiAutoFish&8]%nl%&cWykryto &7AutoFish&c!" ban-message: "&8[&cAntiAutoFish&8]%nl%&cZostałeś zbanowany za &7AutoFish&c!" import: org.bukkit.event.player.PlayerFishEvent on PlayerFishEvent: set {_p} to event.getPlayer() set {_state} to "%event.getState()%" if {_state} is "BITE": set {bitetime::%{_p}%} to now stop if {_state} is "CAUGHT_FISH": if difference between {bitetime::%{_p}%} and now >= {@time}: clear {bitetime::%{_p}%} stop add 1 to {wykrycia::%{_p}%} if {wykrycia::%{_p}%} < {@action-amount}: stop clear {wykrycia::%{_p}%} send {@notify-message} to all players where [input has permission "antiautofish.notify"] if {@notify} is true kick {_p} due to {@kick-message} if {@kick} is true ban {_p} due to {@ban-message} for {@ban-time} if {@ban} is true