The vehicle destroy event is not firing in Skript when a minecart is destroyed by a player, by any means (fist/sword)
Example code
on vehicle destroy:
player has permission "gamealition.group.default" or "gamealition.group.newbie"
# For newbie rank, only cancel if outside resource world
if player has permission "gamealition.group.newbie":
player's world is "resource" or "resource_nether" or "resource_the_end"
exit trigger
cancel the event
execute console command "/approve-error %player% Can't destroy that!"
The
vehicle destroy
event is not firing in Skript when a minecart is destroyed by a player, by any means (fist/sword)Example code