package com.Acrobot.ChestShop.Plugins;
import com.sk89q.worldguard.protection.flags.Flags;
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 = Flags.register(new StateFlag("allow-shop", false));
        } catch (FlagConflictException | IllegalStateException e) {
            enableShop = (StateFlag) Flags.get("allow-shop");
        }
        ENABLE_SHOP = enableShop;
    }
}
@@ -32,16 +32,56 @@
 lugins;%0A
+import com.sk89q.worldguard.WorldGuard;%0A
 import c
@@ -453,23 +453,8 @@
 p = 
-Flags.register(
 new 
@@ -483,16 +483,92 @@
 , false)
+;%0A            WorldGuard.getInstance().getFlagRegistry().register(enableShop
 );%0A     

Use registry to register WorldGuard flags