Lose Inventory Under Conditions

A plugin for 1.12.2 that makes it so you only lose you inventory in a certain claim. If you are in the wilderness then you dont lose anything but if you are in the warzone then you lose everything. If someone can make this or link me one then I would be very thankful.