This plugin is now up for free open source on spigot: https://www.spigotmc.org/resources/...-factions-fork-aka-optic-craft-copycat.44051/
Added features list:
VoidChest (will automatically sell items as they enter the voidchest allowing auto selling farms with hoppers)
AutoCannon Patch (to disable put maxNormCompSad and maxSand to 256)
Banners now have adjustable cool downs in between placing
You can add item entities to the config under itemEntitiesNotToBlowUp and tot will not blow up these entities when they are dropped on the ground
There is a max height players can fly now editable in config flyMaxHeight
Players will be removed from enemy and neutral territory if logged off for a certain amount of time editable in config removePlayerMillisFromLand
Config:
Text:
Added features list:
VoidChest (will automatically sell items as they enter the voidchest allowing auto selling farms with hoppers)
AutoCannon Patch (to disable put maxNormCompSad and maxSand to 256)
Banners now have adjustable cool downs in between placing
You can add item entities to the config under itemEntitiesNotToBlowUp and tot will not blow up these entities when they are dropped on the ground
There is a max height players can fly now editable in config flyMaxHeight
Players will be removed from enemy and neutral territory if logged off for a certain amount of time editable in config removePlayerMillisFromLand
Config:
Code:
"setLineMax": 20,
"claimChunkMaxDis": 15,
"flyAOERelationMin": "ALLY",
"flyMinLocationRealtion": "ALLY",
"flyAOEDistance": 50,
"flyMaxHeight": 260,
"flyCancelDistanceX": 30,
"flyCancelDistanceY": 255,
"flyCancelDistanceZ": 30,
"flyCancelMessage": "&cYour fly has been taken away!",
"flyEnableMessage": "&1You can fly!",
"playerQuitMessage": "%PLAYER% &3has quit",
"playerJoinMessage": "%PLAYER% &3has joined",
"warmup": 5,
"amountOfWarps": 5,
"costPerWarp": 50000,
"trustedCannotBreakBlocks": [
"MOB_SPAWNER",
"HOPPER",
"DISPENSER"
],
"trustedCannotPlaceBlocks": [
"TNT",
"DISPENSER"
],
"disableUntrustedTpAccept": true,
"teleportPlayerOnKickOrLeaveIfInOwnLand": true,
"removePlayerMillisFromLand": 900000,
"costForBanner": 100,
"messageForAssist": "&3You faction needs help use /f assist to help!",
"timeTillAssistTimeout": 60,
"wildCooldownSeconds": 3600,
"wildWarmupSeconds": 5,
"wildMaxX": 500,
"wildMaxY": 500,
"wildEnabledWorlds": {
"worlds": [
"ENABLED_WOLRDS_HERE",
"ANOTHER_ENABLED_WORLD"
]
},
"itemEntitiesNotToBlowUp": [
"MOB_SPAWNER",
"CHEST",
"BEACON",
"TRAPPED_CHEST",
"HOPPER"
],
"voidChestItemsSellPricePerItem": {
"AIR": 0.0,
"STONE": 0.0,
"GRASS": 0.0,
"DIRT": 0.0,
"COBBLESTONE": 0.0,
"WOOD": 0.0,
"SAPLING": 0.0,
"BEDROCK": 0.0,
"WATER": 0.0,
"STATIONARY_WATER": 0.0,
"LAVA": 0.0,
"STATIONARY_LAVA": 0.0,
"SAND": 0.0,
"GRAVEL": 0.0,
"GOLD_ORE": 0.0,
"IRON_ORE": 0.0,
"COAL_ORE": 0.0,
"LOG": 0.0,
"LEAVES": 0.0,
"SPONGE": 0.0,
"GLASS": 0.0,
"LAPIS_ORE": 0.0,
"LAPIS_BLOCK": 0.0,
"DISPENSER": 0.0,
"SANDSTONE": 0.0,
"NOTE_BLOCK": 0.0,
"BED_BLOCK": 0.0,
"POWERED_RAIL": 0.0,
"DETECTOR_RAIL": 0.0,
"PISTON_STICKY_BASE": 0.0,
"WEB": 0.0,
"LONG_GRASS": 0.0,
"DEAD_BUSH": 0.0,
"PISTON_BASE": 0.0,
"PISTON_EXTENSION": 0.0,
"WOOL": 0.0,
"PISTON_MOVING_PIECE": 0.0,
"YELLOW_FLOWER": 0.0,
"RED_ROSE": 0.0,
"BROWN_MUSHROOM": 0.0,
"RED_MUSHROOM": 0.0,
"GOLD_BLOCK": 0.0,
"IRON_BLOCK": 0.0,
"DOUBLE_STEP": 0.0,
"STEP": 0.0,
"BRICK": 0.0,
"TNT": 0.0,
"BOOKSHELF": 0.0,
"MOSSY_COBBLESTONE": 0.0,
"OBSIDIAN": 0.0,
"TORCH": 0.0,
"FIRE": 0.0,
"MOB_SPAWNER": 0.0,
"WOOD_STAIRS": 0.0,
"CHEST": 0.0,
"REDSTONE_WIRE": 0.0,
"DIAMOND_ORE": 0.0,
"DIAMOND_BLOCK": 0.0,
"WORKBENCH": 0.0,
"CROPS": 0.0,
"SOIL": 0.0,
"FURNACE": 0.0,
"BURNING_FURNACE": 0.0,
"SIGN_POST": 0.0,
"WOODEN_DOOR": 0.0,
"LADDER": 0.0,
"RAILS": 0.0,
"COBBLESTONE_STAIRS": 0.0,
"WALL_SIGN": 0.0,
"LEVER": 0.0,
"STONE_PLATE": 0.0,
"IRON_DOOR_BLOCK": 0.0,
"WOOD_PLATE": 0.0,
"REDSTONE_ORE": 0.0,
"GLOWING_REDSTONE_ORE": 0.0,
"REDSTONE_TORCH_OFF": 0.0,
"REDSTONE_TORCH_ON": 0.0,
"STONE_BUTTON": 0.0,
"SNOW": 0.0,
"ICE": 0.0,
"SNOW_BLOCK": 0.0,
"CACTUS": 0.0,
"CLAY": 0.0,
"SUGAR_CANE_BLOCK": 0.0,
"JUKEBOX": 0.0,
"FENCE": 0.0,
"PUMPKIN": 0.0,
"NETHERRACK": 0.0,
"SOUL_SAND": 0.0,
"GLOWSTONE": 0.0,
"PORTAL": 0.0,
"JACK_O_LANTERN": 0.0,
"CAKE_BLOCK": 0.0,
"DIODE_BLOCK_OFF": 0.0,
"DIODE_BLOCK_ON": 0.0,
"STAINED_GLASS": 0.0,
"TRAP_DOOR": 0.0,
"MONSTER_EGGS": 0.0,
"SMOOTH_BRICK": 0.0,
"HUGE_MUSHROOM_1": 0.0,
"HUGE_MUSHROOM_2": 0.0,
"IRON_FENCE": 0.0,
"THIN_GLASS": 0.0,
"MELON_BLOCK": 0.0,
"PUMPKIN_STEM": 0.0,
"MELON_STEM": 0.0,
"VINE": 0.0,
"FENCE_GATE": 0.0,
"BRICK_STAIRS": 0.0,
"SMOOTH_STAIRS": 0.0,
"MYCEL": 0.0,
"WATER_LILY": 0.0,
"NETHER_BRICK": 0.0,
"NETHER_FENCE": 0.0,
"NETHER_BRICK_STAIRS": 0.0,
"NETHER_WARTS": 0.0,
"ENCHANTMENT_TABLE": 0.0,
"BREWING_STAND": 0.0,
"CAULDRON": 0.0,
"ENDER_PORTAL": 0.0,
"ENDER_PORTAL_FRAME": 0.0,
"ENDER_STONE": 0.0,
"DRAGON_EGG": 0.0,
"REDSTONE_LAMP_OFF": 0.0,
"REDSTONE_LAMP_ON": 0.0,
"WOOD_DOUBLE_STEP": 0.0,
"WOOD_STEP": 0.0,
"COCOA": 0.0,
"SANDSTONE_STAIRS": 0.0,
"EMERALD_ORE": 0.0,
"ENDER_CHEST": 0.0,
"TRIPWIRE_HOOK": 0.0,
"TRIPWIRE": 0.0,
"EMERALD_BLOCK": 0.0,
"SPRUCE_WOOD_STAIRS": 0.0,
"BIRCH_WOOD_STAIRS": 0.0,
"JUNGLE_WOOD_STAIRS": 0.0,
"COMMAND": 0.0,
"BEACON": 0.0,
"COBBLE_WALL": 0.0,
"FLOWER_POT": 0.0,
"CARROT": 0.0,
"POTATO": 0.0,
"WOOD_BUTTON": 0.0,
"SKULL": 0.0,
"ANVIL": 0.0,
"TRAPPED_CHEST": 0.0,
"GOLD_PLATE": 0.0,
"IRON_PLATE": 0.0,
"REDSTONE_COMPARATOR_OFF": 0.0,
"REDSTONE_COMPARATOR_ON": 0.0,
"DAYLIGHT_DETECTOR": 0.0,
"REDSTONE_BLOCK": 0.0,
"QUARTZ_ORE": 0.0,
"HOPPER": 0.0,
"QUARTZ_BLOCK": 0.0,
"QUARTZ_STAIRS": 0.0,
"ACTIVATOR_RAIL": 0.0,
"DROPPER": 0.0,
"STAINED_CLAY": 0.0,
"STAINED_GLASS_PANE": 0.0,
"LEAVES_2": 0.0,
"LOG_2": 0.0,
"ACACIA_STAIRS": 0.0,
"DARK_OAK_STAIRS": 0.0,
"SLIME_BLOCK": 0.0,
"BARRIER": 0.0,
"IRON_TRAPDOOR": 0.0,
"PRISMARINE": 0.0,
"SEA_LANTERN": 0.0,
"HAY_BLOCK": 0.0,
"CARPET": 0.0,
"HARD_CLAY": 0.0,
"COAL_BLOCK": 0.0,
"PACKED_ICE": 0.0,
"DOUBLE_PLANT": 0.0,
"STANDING_BANNER": 0.0,
"WALL_BANNER": 0.0,
"DAYLIGHT_DETECTOR_INVERTED": 0.0,
"RED_SANDSTONE": 0.0,
"RED_SANDSTONE_STAIRS": 0.0,
"DOUBLE_STONE_SLAB2": 0.0,
"STONE_SLAB2": 0.0,
"SPRUCE_FENCE_GATE": 0.0,
"BIRCH_FENCE_GATE": 0.0,
"JUNGLE_FENCE_GATE": 0.0,
"DARK_OAK_FENCE_GATE": 0.0,
"ACACIA_FENCE_GATE": 0.0,
"SPRUCE_FENCE": 0.0,
"BIRCH_FENCE": 0.0,
"JUNGLE_FENCE": 0.0,
"DARK_OAK_FENCE": 0.0,
"ACACIA_FENCE": 0.0,
"SPRUCE_DOOR": 0.0,
"BIRCH_DOOR": 0.0,
"JUNGLE_DOOR": 0.0,
"ACACIA_DOOR": 0.0,
"DARK_OAK_DOOR": 0.0,
"IRON_SPADE": 0.0,
"IRON_PICKAXE": 0.0,
"IRON_AXE": 0.0,
"FLINT_AND_STEEL": 0.0,
"APPLE": 0.0,
"BOW": 0.0,
"ARROW": 0.0,
"COAL": 0.0,
"DIAMOND": 0.0,
"IRON_INGOT": 0.0,
"GOLD_INGOT": 0.0,
"IRON_SWORD": 0.0,
"WOOD_SWORD": 0.0,
"WOOD_SPADE": 0.0,
"WOOD_PICKAXE": 0.0,
"WOOD_AXE": 0.0,
"STONE_SWORD": 0.0,
"STONE_SPADE": 0.0,
"STONE_PICKAXE": 0.0,
"STONE_AXE": 0.0,
"DIAMOND_SWORD": 0.0,
"DIAMOND_SPADE": 0.0,
"DIAMOND_PICKAXE": 0.0,
"DIAMOND_AXE": 0.0,
"STICK": 0.0,
"BOWL": 0.0,
"MUSHROOM_SOUP": 0.0,
"GOLD_SWORD": 0.0,
"GOLD_SPADE": 0.0,
"GOLD_PICKAXE": 0.0,
"GOLD_AXE": 0.0,
"STRING": 0.0,
"FEATHER": 0.0,
"SULPHUR": 0.0,
"WOOD_HOE": 0.0,
"STONE_HOE": 0.0,
"IRON_HOE": 0.0,
"DIAMOND_HOE": 0.0,
"GOLD_HOE": 0.0,
"SEEDS": 0.0,
"WHEAT": 0.0,
"BREAD": 0.0,
"LEATHER_HELMET": 0.0,
"LEATHER_CHESTPLATE": 0.0,
"LEATHER_LEGGINGS": 0.0,
"LEATHER_BOOTS": 0.0,
"CHAINMAIL_HELMET": 0.0,
"CHAINMAIL_CHESTPLATE": 0.0,
"CHAINMAIL_LEGGINGS": 0.0,
"CHAINMAIL_BOOTS": 0.0,
"IRON_HELMET": 0.0,
"IRON_CHESTPLATE": 0.0,
"IRON_LEGGINGS": 0.0,
"IRON_BOOTS": 0.0,
"DIAMOND_HELMET": 0.0,
"DIAMOND_CHESTPLATE": 0.0,
"DIAMOND_LEGGINGS": 0.0,
"DIAMOND_BOOTS": 0.0,
"GOLD_HELMET": 0.0,
"GOLD_CHESTPLATE": 0.0,
"GOLD_LEGGINGS": 0.0,
"GOLD_BOOTS": 0.0,
"FLINT": 0.0,
"PORK": 0.0,
"GRILLED_PORK": 0.0,
"PAINTING": 0.0,
"GOLDEN_APPLE": 0.0,
"SIGN": 0.0,
"WOOD_DOOR": 0.0,
"BUCKET": 0.0,
"WATER_BUCKET": 0.0,
"LAVA_BUCKET": 0.0,
"MINECART": 0.0,
"SADDLE": 0.0,
"IRON_DOOR": 0.0,
"REDSTONE": 0.0,
"SNOW_BALL": 0.0,
"BOAT": 0.0,
"LEATHER": 0.0,
"MILK_BUCKET": 0.0,
"CLAY_BRICK": 0.0,
"CLAY_BALL": 0.0,
"SUGAR_CANE": 0.0,
"PAPER": 0.0,
"BOOK": 0.0,
"SLIME_BALL": 0.0,
"STORAGE_MINECART": 0.0,
"POWERED_MINECART": 0.0,
"EGG": 0.0,
"COMPASS": 0.0,
"FISHING_ROD": 0.0,
"WATCH": 0.0,
"GLOWSTONE_DUST": 0.0,
"RAW_FISH": 0.0,
"COOKED_FISH": 0.0,
"INK_SACK": 0.0,
"BONE": 0.0,
"SUGAR": 0.0,
"CAKE": 0.0,
"BED": 0.0,
"DIODE": 0.0,
"COOKIE": 0.0,
"MAP": 0.0,
"SHEARS": 0.0,
"MELON": 0.0,
"PUMPKIN_SEEDS": 0.0,
"MELON_SEEDS": 0.0,
"RAW_BEEF": 0.0,
"COOKED_BEEF": 0.0,
"RAW_CHICKEN": 0.0,
"COOKED_CHICKEN": 0.0,
"ROTTEN_FLESH": 0.0,
"ENDER_PEARL": 0.0,
"BLAZE_ROD": 0.0,
"GHAST_TEAR": 0.0,
"GOLD_NUGGET": 0.0,
"NETHER_STALK": 0.0,
"POTION": 0.0,
"GLASS_BOTTLE": 0.0,
"SPIDER_EYE": 0.0,
"FERMENTED_SPIDER_EYE": 0.0,
"BLAZE_POWDER": 0.0,
"MAGMA_CREAM": 0.0,
"BREWING_STAND_ITEM": 0.0,
"CAULDRON_ITEM": 0.0,
"EYE_OF_ENDER": 0.0,
"SPECKLED_MELON": 0.0,
"MONSTER_EGG": 0.0,
"EXP_BOTTLE": 0.0,
"FIREBALL": 0.0,
"BOOK_AND_QUILL": 0.0,
"WRITTEN_BOOK": 0.0,
"EMERALD": 0.0,
"ITEM_FRAME": 0.0,
"FLOWER_POT_ITEM": 0.0,
"CARROT_ITEM": 0.0,
"POTATO_ITEM": 0.0,
"BAKED_POTATO": 0.0,
"POISONOUS_POTATO": 0.0,
"EMPTY_MAP": 0.0,
"GOLDEN_CARROT": 0.0,
"SKULL_ITEM": 0.0,
"CARROT_STICK": 0.0,
"NETHER_STAR": 0.0,
"PUMPKIN_PIE": 0.0,
"FIREWORK": 0.0,
"FIREWORK_CHARGE": 0.0,
"ENCHANTED_BOOK": 0.0,
"REDSTONE_COMPARATOR": 0.0,
"NETHER_BRICK_ITEM": 0.0,
"QUARTZ": 0.0,
"EXPLOSIVE_MINECART": 0.0,
"HOPPER_MINECART": 0.0,
"PRISMARINE_SHARD": 0.0,
"PRISMARINE_CRYSTALS": 0.0,
"RABBIT": 0.0,
"COOKED_RABBIT": 0.0,
"RABBIT_STEW": 0.0,
"RABBIT_FOOT": 0.0,
"RABBIT_HIDE": 0.0,
"ARMOR_STAND": 0.0,
"IRON_BARDING": 0.0,
"GOLD_BARDING": 0.0,
"DIAMOND_BARDING": 0.0,
"LEASH": 0.0,
"NAME_TAG": 0.0,
"COMMAND_MINECART": 0.0,
"MUTTON": 0.0,
"COOKED_MUTTON": 0.0,
"BANNER": 0.0,
"SPRUCE_DOOR_ITEM": 0.0,
"BIRCH_DOOR_ITEM": 0.0,
"JUNGLE_DOOR_ITEM": 0.0,
"ACACIA_DOOR_ITEM": 0.0,
"DARK_OAK_DOOR_ITEM": 0.0,
"GOLD_RECORD": 0.0,
"GREEN_RECORD": 0.0,
"RECORD_3": 0.0,
"RECORD_4": 0.0,
"RECORD_5": 0.0,
"RECORD_6": 0.0,
"RECORD_7": 0.0,
"RECORD_8": 0.0,
"RECORD_9": 0.0,
"RECORD_10": 0.0,
"RECORD_11": 0.0,
"RECORD_12": 0.0
},
"voidchestCost": 1000000,
"bannerPlaceCooldownSeconds": 60,
"maxNormCompSand": 40,
"maxSand": 15
Code:
Here a list of the planned features for the plugin:
/f unclaim/claim line
/f banner and /f assist (look below for details on this)
A new trusted permission that will allows factions to use /f perm to give permissions for not being able to place blocks and break blocks plus tp accept anyone that isn't in their faction
/f coleader - adds a coleader rank to factions instead of just officers
Factions fly and AOE fly allows players to fly with said permission and if said player has the AOE perm the member of his factions will be able to fly (in a certain set distance)
/f stealth for factions players not wanting to set off enemy factions players fly (so they arent alerted that someone is in their claims)
/f wild just a basic wild tp command
/f warp (you can warp to allies based on permission setup of /f perm)
Anti log off in enemy territory
Click to claim f map (click the chunks on /f map and claim them)
More about /f banner:
Instead of allowing /tpahere in combat, this feature allows you to place your faction's banner in combat, alerting your faction that you need assistance and allowing them to teleport to your banner. This will work anywhere that doesn't replace a block, but only lasts for the set amount of seconds. They cannot place the banner in water etc so it cannot be exploited and this banner can be placed anywhere.
Here are some of the new perms in /f perm: https://gyazo.com/d3cd9f2eb93e813ba3af5200928ea82b
Last edited:
