{"action":"opened","issue":{"url":"https://api.github.com/repos/Nathat23/StackMob-2/issues/64","repository_url":"https://api.github.com/repos/Nathat23/StackMob-2","labels_url":"https://api.github.com/repos/Nathat23/StackMob-2/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/Nathat23/StackMob-2/issues/64/comments","events_url":"https://api.github.com/repos/Nathat23/StackMob-2/issues/64/events","html_url":"https://github.com/Nathat23/StackMob-2/issues/64","id":330872785,"node_id":"MDU6SXNzdWUzMzA4NzI3ODU=","number":64,"title":"Mob cache doesn't work","user":{"login":"wasder","id":2205216,"node_id":"MDQ6VXNlcjIyMDUyMTY=","avatar_url":"https://avatars3.githubusercontent.com/u/2205216?v=4","gravatar_id":"","url":"https://api.github.com/users/wasder","html_url":"https://github.com/wasder","followers_url":"https://api.github.com/users/wasder/followers","following_url":"https://api.github.com/users/wasder/following{/other_user}","gists_url":"https://api.github.com/users/wasder/gists{/gist_id}","starred_url":"https://api.github.com/users/wasder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wasder/subscriptions","organizations_url":"https://api.github.com/users/wasder/orgs","repos_url":"https://api.github.com/users/wasder/repos","events_url":"https://api.github.com/users/wasder/events{/privacy}","received_events_url":"https://api.github.com/users/wasder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-09T10:03:02Z","updated_at":"2018-06-09T10:03:02Z","closed_at":null,"author_association":"NONE","body":"Mobs stacks don't persist between restarts. In fact I can't find any cache.yml file anywhere in server's folder. \r\nplugins/StackMob/ has only 2 files:\r\nconfig.yml\r\nlang.yml\r\n\r\nTried to create a cache.yml manually, but it got delete after restart.\r\nI guess that's why: https://github.com/Nathat23/StackMob-2/blob/306e02b49d28701aa162c3df179e7a856acd14f1/src/main/java/uk/antiperson/stackmob/tools/config/CacheFile.java#L34\r\n\r\nStackMob v2.2.9\r\n```# StackMob 2 created by antiPerson.\r\n# Report issues that you have experienced in the discussion thread.\r\n\r\n# The size of the area around an entity that should be checked for matching entities to stack with.\r\ncheck-area:\r\n    x: 5\r\n    y: 4\r\n    z: 5\r\n\r\n# Everything related to the tag seen above entities\r\ntag:\r\n    # The delay between updates of the name tag.\r\n    interval: 5\r\n    # The formatting of the tag.\r\n    # Placeholders:\r\n    # %size% - Stack size.\r\n    # %type% - Formatted type name.\r\n    # %bukkit_type% - The entity type as bukkit calls it.\r\n    # Normal Minecraft color codes are also supported, by using '&' before the letter/number.\r\n    format: '&cx%size%'\r\n    # Whether the tag above the entity should be seen at all times, or only when hovering over.\r\n    always-visible: true\r\n    # If the stack size if equal to or below this number, don't show the tag.\r\n    remove-at: 1\r\n    # Only update the tag when a player is near that entity.\r\n    update-nearby: true\r\n    # Only show the name tag if the player is near the entity. (requires ProtocolLib)\r\n    show-player-nearby:\r\n        enabled: true\r\n        # Only display the tag to the player if the player is in this area of the entity.\r\n        x: 5\r\n        y: 3\r\n        z: 5\r\n\r\n\r\n # Custom rules for specific entities.\r\ncustom:\r\n    # Example (remove hashtags to make this work):\r\n    #PIG:\r\n    #    stack-max: 25\r\n    #    tag:\r\n    #        format: '%size%x Piggy'\r\n    #        always-visible: true\r\n    #        remove-at: 1\r\n\r\n# The delay between each time the stacking task is ran (in ticks.)\r\ntask-delay: 100\r\n# The maximum size a single stack can be.\r\nstack-max: 100\r\n# If bigger stacks should get priority when stacking on the task.\r\nbig-priority: true\r\n# If the entity was spawned by these causes, then don't stack.\r\n# Reasons list can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/CreatureSpawnEvent.SpawnReason.html\r\nno-stack-reasons:\r\n    - CUSTOM\r\n# Don't stack if the entity is one of these types.\r\n# List of the bukkit names can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/entity/EntityType.html\r\nno-stack-types:\r\n    - RABBIT\r\n    - OCELOT\r\n    - SHULKER\r\n    - VILLAGER\r\n    - SLIME\r\n    - IRON_GOLEM\r\n    - SKELETON_HORSE\r\n    - WITHER\r\n    - PARROT\r\n    - LLAMA\r\n    - ENDER_DRAGON\r\n    - WITHER\r\n    - BAT\r\n    - POLAR_BEAR\r\n    - HORSE\r\n    - ILLUSIONER\r\n# If the entity is located in one of these worlds, then don't stack.\r\nno-stack-worlds:\r\n    - ''\r\n# Don't stack until there are more than the number specified of entities of the same type in the check area set above.\r\n# Set to 0 to disable this feature.\r\ndont-stack-until: 5\r\n\r\n# Enables/disables the comparing of mob type specific attributes before stacking together.\r\ncompare:\r\n    villager-profession: true\r\n    sheep-wool-sheared: true\r\n    sheep-wool-color: true\r\n    slime-size: true\r\n    horse-color: true\r\n    # Apply to more than one type of entity.\r\n    entity-age: true\r\n    can-breed: true\r\n    # Only for 1.8.x and below.\r\n    zombie-is-villager: true\r\n    # Only 1.10.x and below.\r\n    skeleton-type: true\r\n    zombie-villager-profession: true\r\n    # 1.11 and above.\r\n    llama-color: true\r\n    # 1.12 and above.\r\n    parrot-color: true\r\n\r\n# Check these attributes before stacking.\r\ncheck:\r\n    tamed: true\r\n    leashed: true\r\n    is-miniature-pet: true\r\n\r\n# Things that should be duplicated.\r\nmultiply:\r\n     # Make creeper explosions bigger\r\n     creeper-explosion: true\r\n     # Chicken lay eggs, so make more eggs be dropped\r\n     chicken-eggs: true\r\n     # When sheep are sheared, multiply all the wool.\r\n     sheep-wool: false\r\n     # Multiply mushrooms for all of the cows.\r\n     mooshroom-mushrooms: false\r\n     # Multiply the amount of small slimes spawned when a big slime is killed.\r\n     small-slimes: true\r\n     # When an entity is fed it's food, spawn a new stack with the correct number of children.\r\n     breed: false\r\n\r\n# If the stack should split into more when these things happen.\r\ndivide-on:\r\n    # If sheep should split into separate stacks when sheared.\r\n    sheep-shear: true\r\n    # If dying sheep should cause the stack to split.\r\n    sheep-dye: true\r\n    # When a mooshroom gets sheared, spilt the stack.\r\n    mooshroom-shear: true\r\n    # When a stack is fed it's food, spilt, so the stack can be bred.\r\n    breed: true\r\n    # When a player tames an entity.\r\n    tame: true\r\n    # When an entity it named using a name tag.\r\n    name: true\r\n\r\n# Make every entity die in the stack on death.\r\nkill-all:\r\n    enabled: false\r\n    # DeathEvent reasons that shouldn't trigger kill-all.\r\n    # List of bukkit names for death reasons can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html\r\n    reason-blacklist:\r\n        - ''\r\n    # Entity types that shouldn't trigger kill-all.\r\n    type-blacklist:\r\n        - ''\r\n\r\n# Only kill some of the stack\r\nkill-step:\r\n    enabled: true\r\n    # DeathEvent reasons that shouldn't trigger kill-step.\r\n    # List of bukkit names for death reasons can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html\r\n    reason-blacklist:\r\n        - ''\r\n    # Entity types that shouldn't trigger kill-step.\r\n    type-blacklist:\r\n        - ''\r\n    # The maximum amount by which the stack should decrease by.\r\n    # Setting this to 0 will cause errors!\r\n    max-step: 5\r\n\r\n# Multiply the amount of drops depending on the size of the stack killed.\r\n# Only needed if kill-all OR kill-step is enabled above.\r\nmultiply-drops:\r\n    enabled: true\r\n    # The amount of entities that the loot should be dropped for in a stack.\r\n    # Useful if there is a high max-stack value, to prevent lag.\r\n    entity-limit: 50\r\n    # Item types that should be duplicated.\r\n    # A list of materials can be found at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html\r\n    drops-whitelist:\r\n        - STRING\r\n        - SULPHUR\r\n        - ROTTEN_FLESH\r\n        - BONE\r\n        - BLAZE_ROD\r\n        - GHAST_TEAR\r\n        - ENDER_PEARL\r\n        - MAGMA_CREAM\r\n        - ARROW\r\n        - SLIME_BALL\r\n        - COOKED_BEEF\r\n        - COOKED_CHICKEN\r\n        - COOKED_MUTTON\r\n        - COOKED_RABBIT\r\n        - GRILLED_PORK\r\n        - RAW_BEEF\r\n        - RAW_CHICKEN\r\n        - MUTTON\r\n        - PORK\r\n        - RABBIT\r\n        - FEATHER\r\n        - RED_MUSHROOM\r\n        - LEATHER\r\n        - RABBIT_FOOT\r\n        - RABBIT_HIDE\r\n        - NETHER_STAR\r\n        - GLASS_BOTTLE\r\n        - GLOWSTONE_DUST\r\n        - REDSTONE\r\n        - SPIDER_EYE\r\n        - SUGAR\r\n        - STICK\r\n        - IRON_INGOT\r\n        - GOLD_NUGGET\r\n        - GOLD_INGOT\r\n        - PRISMARINE_SHARD\r\n        - EMERALD\r\n    # Only drop one item per entity.\r\n    drop-one-per:\r\n        - EMERALD\r\n        - NETHER_STAR\r\n        - TOTEM\r\n\r\n# Multiplies the experience dropped on kill-all/kill-step.\r\nmultiply-exp-enabled: true\r\n\r\n# Multiplies the damage that an entity gives to the player.\r\nmultiply-damage-done: false\r\n\r\n# Multiplies the damage that the entities receives, if multiplied damage is more than the max health, remove stacks.\r\nmultiply-damage-received:\r\n    enabled: true\r\n    # Blacklist of damage causes.\r\n    cause-blacklist:\r\n        - ''\r\n\r\n# Prevent entities from targeting players.\r\n# Like no-ai but the entities can move.\r\nno-targeting:\r\n    enabled: false\r\n    types-blacklist:\r\n       - ''\r\n\r\n# Everything to do with mcMMO\r\nmcmmo:\r\n    # Give no mcmmo experience\r\n    no-experience:\r\n        enabled: true\r\n        # Blacklist of entity types that should still give mcmmo experience.\r\n        blacklist:\r\n            - ''\r\nmythicmobs:\r\n    # If Mythicmobs should stack together\r\n    enabled: true\r\n    # MythicMob types that shouldn't stack, use the 'internal name'\r\n    blacklist:\r\n       - ''\r\n\r\n# If WorldGuard is installed, enable support for it.\r\nworldguard-support: true\r\n\r\n# When the server is restarted, all the stack sizes are saved to disk.\r\ncaching:\r\n   # Stack data can be saved to disk every x minutes.\r\n    # This is useful so that in the event of a server crash, not all stack data will be lost.\r\n    autosave:\r\n        enabled: true\r\n        # The amount of time between saves, in seconds.\r\n        interval: 180\r\n    # Instead of using flat files for storage, a mysql server can be used.```\r\n\r\n"}}
{"actor":{"display_login":"wasder"}}