BentoBoxWorld / BentoBox

Expandable Minecraft server plugin for island-type games like SkyBlock or AcidIsland.
https://bentobox.world
Eclipse Public License 2.0
334 stars 138 forks source link

Inventory #1354

Closed maclarens closed 4 years ago

maclarens commented 4 years ago

Hello i have a problem! version 1.15.2 piper 280 Why when i create island then Reset inventory working fine but only one time! if im go again to my island and go to spawn after, then my inventory is save from another world and any player can take some any items and to bring to your island ...how turn off this inventory safe functions?? and when i use bsbadmin reset all island NOT working!the island stay alive

tastybento commented 4 years ago

Look in the BSkyBlock config.yml (or whatever game mode you are using) for this kind of setting. We don't reset for safety reasons, select what you want:

    on-leave:
      # What the plugin should reset when the player leaves or is kicked from an island
      # Reset Money - if this is true, will reset the player's money to the starting money
      # Recommendation is that this is set to true, but if you run multi-worlds
      # make sure your economy handles multi-worlds too.
      money: false
      # Reset inventory - if true, the player's inventory will be cleared.
      # Note: if you have MultiInv running or a similar inventory control plugin, that
      # plugin may still reset the inventory when the world changes.
      inventory: false
      # Reset health - if true, the player's health will be reset.
      # Added since 1.8.0.
      health: false
      # Reset hunger - if true, the player's hunger will be reset.
      # Added since 1.8.0.
      hunger: false
      # Reset experience - if true, the player's experience will be reset.
      # Added since 1.8.0.
      exp: false
      # Reset Ender Chest - if true, the player's Ender Chest will be cleared.
      ender-chest: false
maclarens commented 4 years ago

Yep i use this i try but anyway not working i mean working only one time!

# AOneBlock Configuration 1.1.7
aoneblock:
  command:
    # Player command. What command users will run to access their island.
    # To define alias, just separate commands with white space.
    # Added since 1.3.0.
    island: ob oneblock
    # The admin command.
    # To define alias, just separate commands with white space.
    # Added since 1.3.0.
    admin: obadmin oneblockadmin oba
world:
  # Friendly name for this world. Used in admin commands. Must be a single word
  friendly-name: OneBlock
  # Name of the world - if it does not exist then it will be generated.
  # It acts like a prefix for nether and end (e.g. oneblock_world, oneblock_world_nether, oneblock_world_end)
  world-name: oneblock_world
  # World difficulty setting - PEACEFUL, EASY, NORMAL, HARD
  # Other plugins may override this setting
  difficulty: NORMAL
  spawn-limits:
    # Spawn limits. These override the limits set in bukkit.yml
    # If set to a negative number, the server defaults will be used
    # Added since 1.11.2.
    monsters: -1
    # Added since 1.11.2.
    animals: -1
    # Added since 1.11.2.
    water-animals: -1
    # Added since 1.11.2.
    ambient: -1
    # Setting to 0 will disable animal spawns, but this is not recommended. Minecraft default is 400.
    # A negative value uses the server default
    # Added since 1.11.2.
    ticks-per-animal-spawns: -1
    # Setting to 0 will disable monster spawns, but this is not recommended. Minecraft default is 400.
    # A negative value uses the server default
    # Added since 1.11.2.
    ticks-per-monster-spawns: -1
  # Radius of island in blocks. (So distance between islands is twice this)
  # It is the same for every dimension : Overworld, Nether and End.
  # This value cannot be changed mid-game and the plugin will not start if it is different.
  # /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
  distance-between-islands: 400
  # Default protection range radius in blocks. Cannot be larger than distance.
  # Admins can change protection sizes for players individually using /bsbadmin range set <player> <new range>
  # or set this permission: aoneblock.island.range.<number>
  # /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
  protection-range: 50
  # Start islands at these coordinates. This is where new islands will start in the
  # world. These must be a factor of your island distance, but the plugin will auto
  # calculate the closest location on the grid. Islands develop around this location
  # both positively and negatively in a square grid.
  # If none of this makes sense, leave it at 0,0.
  # /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
  start-x: 0
  # /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
  start-z: 0
  offset-x: 0
  offset-z: 0
  # Island height - Lowest is 5.
  # It is the y coordinate of the bedrock block in the schem.
  island-height: 80
  # Use your own world generator for this world.
  # In this case, the plugin will not generate anything.
  # If used, you must specify the world name and generator in the bukkit.yml file.
  # See https://bukkit.gamepedia.com/Bukkit.yml#.2AOPTIONAL.2A_worlds
  use-own-generator: false
  # Sea height (don't changes this mid-game unless you delete the world)
  # Minimum is 0
  # If sea height is less than about 10, then players will drop right through it
  # if it exists.
  # /!\ BentoBox currently does not support changing this value mid-game. If you do need to change it, do a full reset of your databases and worlds.
  sea-height: 0
  # Maximum number of islands in the world. Set to -1 or 0 for unlimited.
  # If the number of islands is greater than this number, it will stop players from creating islands.
  max-islands: 0
  # The default game mode for this world. Players will be set to this mode when they create
  # a new island for example. Options are SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR
  default-game-mode: SURVIVAL
  # The default biome for the overworld
  default-biome: PLAINS
  # The maximum number of players a player can ban at any one time in this game mode.
  # The permission acidisland.ban.maxlimit.X where X is a number can also be used per player
  # -1 = unlimited
  ban-limit: -1
  nether:
    # Generate Nether - if this is false, the nether world will not be made and access to
    # the nether will not occur. Other plugins may still enable portal usage.
    # Note: Some default challenges will not be possible if there is no nether.
    # Note that with a standard nether all players arrive at the same portal and entering a
    # portal will return them back to their islands.
    generate: true
    # Nether spawn protection radius - this is the distance around the nether spawn
    # that will be protected from player interaction (breaking blocks, pouring lava etc.)
    # Minimum is 0 (not recommended), maximum is 100. Default is 25.
    spawn-radius: 25
  # Mob white list - these mobs will NOT be removed when logging in or doing /island
  remove-mobs-whitelist:
  - PIG_ZOMBIE
  - ENDERMAN
  - ZOMBIE_VILLAGER
  - WITHER
  # World flags. These are boolean settings for various flags for this world
  flags:
    CREEPER_DAMAGE: true
    OBSIDIAN_SCOOPING: true
    PISTON_PUSH: false
    ISLAND_RESPAWN: true
    CREEPER_GRIEFING: false
    COARSE_DIRT_TILLING: true
    ENDERMAN_GRIEFING: true
    CLEAN_SUPER_FLAT: false
    CHEST_DAMAGE: false
    PREVENT_TELEPORT_WHEN_FALLING: false
    NATURAL_SPAWNING_OUTSIDE_RANGE: true
    ENTER_EXIT_MESSAGES: true
    ENDERMAN_DEATH_DROP: true
    LIQUIDS_FLOWING_OUT: false
    OFFLINE_REDSTONE: true
    REMOVE_END_EXIT_ISLAND: true
    OFFLINE_GROWTH: true
    REMOVE_MOBS: true
    ENDER_CHEST: false
    ITEM_FRAME_DAMAGE: false
    TREES_GROWING_OUTSIDE_RANGE: false
    SPAWNER_SPAWN_EGGS: true
    WITHER_DAMAGE: false
  # These are the default protection settings for new islands.
  # The value is the minimum island rank required allowed to do the action
  # Ranks are the following:
  #   VISITOR   = 0
  #   COOP      = 200
  #   TRUSTED   = 400
  #   MEMBER    = 500
  #   SUB-OWNER = 900
  #   OWNER     = 1000
  default-island-flags:
    HURT_ANIMALS: 500
    DRAGON_EGG: 500
    REDSTONE: 500
    BUCKET: 500
    LOCK: 0
    ENDER_PEARL: 500
    DOOR: 500
    FURNACE: 500
    MINECART: 500
    ANVIL: 500
    FISH_SCOOPING: 500
    END_PORTAL: 500
    BREEDING: 500
    HURT_VILLAGERS: 500
    FROST_WALKER: 500
    TURTLE_EGGS: 500
    COLLECT_LAVA: 500
    LEVER: 500
    ELYTRA: 0
    RIDING: 500
    CAKE: 500
    HURT_MONSTERS: 0
    ARMOR_STAND: 500
    NAME_TAG: 500
    TRADING: 0
    EGGS: 500
    ITEM_DROP: 0
    NOTE_BLOCK: 0
    FLINT_AND_STEEL: 500
    NETHER_PORTAL: 500
    LECTERN: 500
    CROP_TRAMPLE: 500
    ITEM_PICKUP: 0
    BREWING: 500
    DROPPER: 500
    TNT_PRIMING: 500
    COLLECT_WATER: 500
    BUTTON: 500
    FIRE_EXTINGUISH: 500
    COMMAND_RANKS: 500
    BEACON: 500
    TRAPDOOR: 500
    PRESSURE_PLATE: 0
    EXPERIENCE_BOTTLE_THROWING: 500
    DYE: 500
    ITEM_FRAME: 500
    PLACE_BLOCKS: 500
    CRAFTING: 0
    ENCHANTING: 0
    SHEARING: 500
    BOAT: 500
    SPAWN_EGGS: 500
    BED: 500
    MILKING: 0
    DISPENSER: 500
    GATE: 0
    EXPERIENCE_PICKUP: 500
    HOPPER: 500
    LEASH: 500
    MOUNT_INVENTORY: 500
    BREAK_BLOCKS: 500
    CHORUS_FRUIT: 500
    CONTAINER: 500
    JUKEBOX: 500
    POTION_THROWING: 500
  # These are the default settings for new islands
  default-island-settings:
    PVP_END: false
    PVP_NETHER: false
    ANIMAL_SPAWN: true
    LEAF_DECAY: true
    TNT_DAMAGE: true
    MONSTER_SPAWN: true
    FIRE_IGNITE: true
    FIRE_SPREAD: true
    FIRE_BURNING: true
    PVP_OVERWORLD: false
  # These settings/flags are hidden from users
  # Ops can toggle hiding in-game using SHIFT-LEFT-CLICK on flags in settings
  # Added since 1.4.1.
  hidden-flags: []
  # Visitor banned commands - Visitors to islands cannot use these commands in this world
  visitor-banned-commands:
  - spawner
  - spawnmob
  # Falling banned commands - players cannot use these commands when falling
  # if the PREVENT_TELEPORT_WHEN_FALLING world setting flag is active
  # Added since 1.8.0.
  falling-banned-commands:
  - warp
  - spawn
netherIslands: false
netherRoof: false
endGenerate: false
endIslands: false
dragonSpawn: false
island:
  # Magic block mob warning
  # Players might be able to hear hostile mobs up to this many blocks away
  # Minimum is 0 (no warning), max is 5
  mob-warning: 5
  # Default max team size
  # Permission size cannot be less than the default below. 
  max-team-size: 4
  # Default maximum number of coop rank members per island
  # Players can have the aoneblock.coop.maxsize.<number> permission to be bigger but
  # permission size cannot be less than the default below. 
  # Added since 1.13.0.
  max-coop-size: 4
  # Default maximum number of trusted rank members per island
  # Players can have the aoneblock.trust.maxsize.<number> permission to be bigger but
  # permission size cannot be less than the default below. 
  # Added since 1.13.0.
  max-trusted-size: 4
  # Default maximum number of homes a player can have. Min = 1
  # Accessed via /is sethome <number> or /is go <number>
  max-homes: 1
  reset:
    # How many resets a player is allowed (manage with /bsbadmin reset add/remove/reset/set command)
    # Value of -1 means unlimited, 0 means hardcore - no resets.
    # Example, 2 resets means they get 2 resets or 3 islands lifetime
    reset-limit: -1
    # Kicked or leaving players lose resets
    # Players who leave a team will lose an island reset chance
    # If a player has zero resets left and leaves a team, they cannot make a new
    # island by themselves and can only join a team.
    # Leave this true to avoid players exploiting free islands
    leavers-lose-reset: false
    # Allow kicked players to keep their inventory.
    # Overrides the on-leave inventory reset for kicked players.
    kicked-keep-inventory: false
    on-join:
      # What the addon should reset when the player joins or creates an island
      # Reset Money - if this is true, will reset the player's money to the starting money
      # Recommendation is that this is set to true, but if you run multi-worlds
      # make sure your economy handles multi-worlds too.
      money: false
      # Reset inventory - if true, the player's inventory will be cleared.
      # Note: if you have MultiInv running or a similar inventory control plugin, that
      # plugin may still reset the inventory when the world changes.
      inventory: true
      # Reset health - if true, the player's health will be reset.
      # Added since 1.8.0.
      health: true
      # Reset hunger - if true, the player's hunger will be reset.
      # Added since 1.8.0.
      hunger: true
      # Reset experience points - if true, the player's experience will be reset.
      # Added since 1.8.0.
      exp: false
      # Reset Ender Chest - if true, the player's Ender Chest will be cleared.
      ender-chest: true
    on-leave:
      # What the plugin should reset when the player leaves or is kicked from an island
      # Reset Money - if this is true, will reset the player's money to the starting money
      # Recommendation is that this is set to true, but if you run multi-worlds
      # make sure your economy handles multi-worlds too.
      money: false
      # Reset inventory - if true, the player's inventory will be cleared.
      # Note: if you have MultiInv running or a similar inventory control plugin, that
      # plugin may still reset the inventory when the world changes.
      inventory: true
      # Reset health - if true, the player's health will be reset.
      # Added since 1.8.0.
      health: false
      # Reset hunger - if true, the player's hunger will be reset.
      # Added since 1.8.0.
      hunger: false
      # Reset experience - if true, the player's experience will be reset.
      # Added since 1.8.0.
      exp: false
      # Reset Ender Chest - if true, the player's Ender Chest will be cleared.
      ender-chest: false
  create-island-on-first-login:
    # Toggles the automatic island creation upon the player's first login on your server.
    # If set to true,
    #    * Upon connecting to your server for the first time, the player will be told that
    #     an island will be created for him.
    #   * Make sure you have a Blueprint Bundle called "default": this is the one that will
    #     be used to create the island.
    #   * An island will be created for the player without needing him to run the create command.
    # If set to false, this will disable this feature entirely.
    # Warning:
    #   * If you are running multiple gamemodes on your server, and all of them have
    #     this feature enabled, an island in all the gamemodes will be created simultaneously.
    #     However, it is impossible to know on which island the player will be teleported to afterwards.
    #   * Island creation can be resource-intensive, please consider the options below to help mitigate
    #     the potential issues, especially if you expect a lot of players to connect to your server
    #     in a limited period of time.
    # Added since 1.9.0.
    enable: false
    # Time in seconds after the player logged in, before his island gets created.
    # If set to 0 or less, the island will be created directly upon the player's login.
    # It is recommended to keep this value under a minute's time.
    # Added since 1.9.0.
    delay: 5
    # Toggles whether the island creation should be aborted if the player logged off while the
    # delay (see the option above) has not worn off yet.
    # If set to true,
    #   * If the player has logged off the server while the delay (see the option above) has not
    #     worn off yet, this will cancel the island creation.
    #   * If the player relogs afterward, since he will not be recognized as a new player, no island
    #     would be created for him.
    #   * If the island creation started before the player logged off, it will continue.
    # If set to false, the player's island will be created even if he went offline in the meantime.
    # Note this option has no effect if the delay (see the option above) is set to 0 or less.
    # Added since 1.9.0.
    abort-on-logout: true
  # Toggles whether the player should be teleported automatically to his island when it is created.
  # If set to false, the player will be told his island is ready but will have to teleport to his island using the command.
  # Added since 1.10.0.
  teleport-player-to-island-when-created: true
  # Create Nether or End islands if they are missing when a player goes through a portal.
  # Nether and End islands are usually pasted when a player makes their island, but if they are
  # missing for some reason, you can switch this on.
  # Note that bedrock removal glitches can exploit this option.
  # Added since 1.10.0.
  create-missing-nether-end-islands: false
  commands:
    # List of commands to run when a player joins an island or creates one.
    # These commands are run by the console, unless otherwise stated using the [SUDO] prefix,
    # in which case they are executed by the player.
    # 
    # Available placeholders for the commands are the following:
    #    * [name]: name of the player
    # 
    # Here are some examples of valid commands to execute:
    #    * "[SUDO] bbox version"
    #    * "bsbadmin deaths set [player] 0"
    # Added since 1.8.0.
    on-join: []
    # List of commands to run when a player leaves an island, resets his island or gets kicked from it.
    # These commands are run by the console, unless otherwise stated using the [SUDO] prefix,
    # in which case they are executed by the player.
    # 
    # Available placeholders for the commands are the following:
    #    * [name]: name of the player
    # 
    # Here are some examples of valid commands to execute:
    #    * '[SUDO] bbox version'
    #    * 'bsbadmin deaths set [player] 0'
    # 
    # Note that player-executed commands might not work, as these commands can be run with said player being offline.
    # Added since 1.8.0.
    on-leave: []
  sethome:
    nether:
      allow: true
      require-confirmation: true
    the-end:
      allow: true
      require-confirmation: true
  deaths:
    # Whether deaths are counted or not.
    counted: true
    # Maximum number of deaths to count. The death count can be used by add-ons.
    max: 10
    # When a player joins a team, reset their death count
    team-join-reset: true
    # Reset player death count when they start a new island or reset an island
    # Added since 1.6.0.
    reset-on-new-island: true
protection:
  # Geo restrict mobs.
  # Mobs that exit the island space where they were spawned will be removed.
  geo-limit-settings:
  - GHAST
  - BAT
  - BLAZE
  # Invincible visitors. List of damages that will not affect visitors.
  # Make list blank if visitors should receive all damages
  invincible-visitors:
  - BLOCK_EXPLOSION
  - CONTACT
  - CUSTOM
  - DROWNING
  - ENTITY_ATTACK
  - ENTITY_EXPLOSION
  - FALL
  - FALLING_BLOCK
  - FIRE
  - FIRE_TICK
  - LAVA
  - LIGHTNING
  - MAGIC
  - POISON
  - PROJECTILE
  - STARVATION
  - SUFFOCATION
  - THORNS
  - WITHER
  - DRAGON_BREATH
  - FLY_INTO_WALL
  - HOT_FLOOR
  - CRAMMING
  - VOID
do-not-edit-these-settings:
  # These settings should not be edited
  reset-epoch: 0
tastybento commented 4 years ago

I tried with your config file and then I reset my player twice, making sure the player had items in the inventory. Both times, the inventory was reset. Here's my setup:

>bbox v
[08:03:27] [Server thread/INFO]: Running SPIGOT 1.15.2.
[08:03:27] [Server thread/INFO]: BentoBox version: 1.14.0-SNAPSHOT-LOCAL
[08:03:27] [Server thread/INFO]: Database: MONGODB
[08:03:27] [Server thread/INFO]: Loaded Game Worlds:
[08:03:27] [Server thread/INFO]: bskyblock_world (BSkyBlock): Overworld, Nether, The End
[08:03:27] [Server thread/INFO]: oneblock_world (OneBlock): Overworld, Nether*
[08:03:27] [Server thread/INFO]: Loaded Addons:
[08:03:27] [Server thread/INFO]: AOneBlock 1.2.0-SNAPSHOT-LOCAL (ENABLED)
[08:03:27] [Server thread/INFO]: BSkyBlock 1.13.1 (ENABLED)
[08:03:27] [Server thread/INFO]: Chat 1.0.5 (ENABLED)
[08:03:27] [Server thread/INFO]: Likes 1.7.1 (ENABLED)
[08:03:27] [Server thread/INFO]: Warps 1.9.3 (ENABLED)
>plugins
[08:03:33] [Server thread/INFO]: Plugins (9): PermissionsEx, WorldBorderAPI, BsbMongo, Vault, Essentials, PlaceholderAPI, BentoBox, Multiverse-Core, MultiWorldMoney

Can you give me a step by step for how to replicate your problem? Also share your bbox v and plugins.

maclarens commented 4 years ago

i try many times.here all my plugins: AuthMe, BentoBox, Chair, ChestShop, ChopTree2, Clans, EditableSign, Essentials, EssentialsChat, EssentialsGeoIP, EssentialsSpawn, GriefPrevention, GriefPreventionFlags, HolographicDisplays, Jobs, LuckPerms, MobDropsPlus, PlaceholderAPI, ProtocolLib, RPGHealthIndicator, Scavenger, SkinsRestorer, TitleManager, Vault, WorldEdit also i ty bentobox dev version and other addons not working too. my steps: gamemode 0 group:default I take a few items from default world /oneblock reset teleport on island and inventory clear fine I take a few items from the island Teleport to default world and items are still in inventory drop items on default world and take new items teleport on island and items are still in inventory and then how many times do not teleport, any items are always in inventory

tastybento commented 4 years ago

Do bbox version in the console and copy and paste what it says. I need to know what version of BentoBox you are using.

maclarens commented 4 years ago

sry.i try this Running PAPER 1.15.2. [11:17:09 INFO]: BentoBox version: 1.14.0-SNAPSHOT-b1787 [11:17:09 INFO]: Database: JSON [11:17:09 INFO]: Loaded Game Worlds: [11:17:09 INFO]: oneblock_world (OneBlock): Overworld, Nether [11:17:09 INFO]: Loaded Addons: [11:17:09 INFO]: AOneBlock 1.2.0-SNAPSHOT-b86 (ENABLED) [11:17:09 INFO]: Chat 1.0.5 (ENABLED) [11:17:09 INFO]: Likes 1.7.1 (ENABLED) [11:17:09 INFO]: Warps 1.9.3 (ENABLED) and also this Running PAPER 1.15.2. [11:21:59 INFO]: BentoBox version: 1.13.1 [11:21:59 INFO]: Database: JSON [11:21:59 INFO]: Loaded Game Worlds: [11:21:59 INFO]: oneblock_world (OneBlock): Overworld, Nether [11:21:59 INFO]: Loaded Addons: [11:21:59 INFO]: AOneBlock 1.1.7 (ENABLED) [11:21:59 INFO]: Chat 1.0.5 (ENABLED) [11:21:59 INFO]: Likes 1.7.1 (ENABLED) [11:21:59 INFO]: Warps 1.9.3 (ENABLED)

tastybento commented 4 years ago

You need to use a multiworld inventory switcher plugin, or use InvSwitcher addon. It will keep inventory separate between worlds. https://github.com/BentoBoxWorld/InvSwitcher/releases/tag/1.6.1

maclarens commented 4 years ago

Atlast its working!tvm!