mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-06-26 06:14:44 +02:00
22 lines
735 B
Java
22 lines
735 B
Java
package com.Acrobot.ChestShop.Plugins;
|
|
import com.sk89q.worldguard.WorldGuard;
|
|
import com.sk89q.worldguard.protection.flags.StateFlag;
|
|
import com.sk89q.worldguard.protection.flags.registry.FlagConflictException;
|
|
|
|
/**
|
|
* @author Brokkonaut
|
|
*/
|
|
public class WorldGuardFlags {
|
|
public static final StateFlag ENABLE_SHOP;
|
|
|
|
static {
|
|
StateFlag enableShop;
|
|
try {
|
|
enableShop = new StateFlag("allow-shop", false);
|
|
WorldGuard.getInstance().getFlagRegistry().register(enableShop);
|
|
} catch (FlagConflictException | IllegalStateException e) {
|
|
enableShop = (StateFlag) WorldGuard.getInstance().getFlagRegistry().get("allow-shop");
|
|
}
|
|
ENABLE_SHOP = enableShop;
|
|
}
|
|
} |