Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FactionType.Peaceful -> {
- val use = Flags.USE as? Flag<Any>?: return flags
- val pvp = Flags.PVP as? Flag<Any>?: return flags
- val potion = Flags.POTION_SPLASH as? Flag<Any>?: return flags
- val tnt = Flags.TNT as? Flag<Any>?: return flags
- val wither = Flags.WITHER_DAMAGE as? Flag<Any>?: return flags
- val dragon = Flags.ENDERDRAGON_BLOCK_DAMAGE as? Flag<Any>?: return flags
- val itemFrame = Flags.ENTITY_ITEM_FRAME_DESTROY as? Flag<Any>?: return flags
- val lighter = Flags.LIGHTER as? Flag<Any>?: return flags
- val mobDamage = Flags.MOB_DAMAGE as? Flag<Any>?: return flags
- flags[use] = StateFlag.State.DENY
- flags[pvp] = StateFlag.State.DENY
- flags[potion] = StateFlag.State.DENY
- flags[tnt] = StateFlag.State.DENY
- flags[wither] = StateFlag.State.DENY
- flags[dragon] = StateFlag.State.DENY
- flags[itemFrame] = StateFlag.State.DENY
- flags[lighter] = StateFlag.State.DENY
- flags[mobDamage] = StateFlag.State.DENY
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement