features/Inventory

Separated Inventories

This, by default enabled, feature saves your inventory when you switch from creative to survival-mode. When switching back to survival, the saved inventory is restored. Due to that, the player has no longer access to the items he selected while he was in creative mode.

The creative inventory is also saved by default, so the players "creative hotbar" is restored on switching to creative again. This can be disabled by changing the storeCreative config option, to let the player always begin with an empty creative inventory.

You're also able to separate the survival-Inventory from the adventure-Inventory, by enabling the separateAdventure-config option.

Creative Armor

As an addition, the plugin sets by default all players on switching to creative mode, the armor to "chestplate". That's the armor-type a player can't obtain on a usual way. So the creative players can be visual separated from other players.

Tipp:

You may also use dyed items as armor. Therefore you don't write a string as like "CHAINMAIL_HELMET" into the config, instead you copy an ItemStack from your players inventory file, so the armor config looks like:

  head:
    ==: org.bukkit.inventory.ItemStack
    type: LEATHER_HELMET
    meta:
      ==: ItemMeta
      meta-type: LEATHER_ARMOR
      color:
        ==: Color
        RED: 255
        BLUE: 255
        GREEN: 85

For a full config example, click here: config.yml:66.

To prevent any problem with that, better use the ingame-commands to configure your currently worn items as the creative armor. Therefor just set the items to the special value "current" like that:

  • /lc config inventory creativeArmor head current
  • /lc config inventory creativeArmor chest current
  • /lc config inventory creativeArmor legs current
  • /lc config inventory creativeArmor feet current

Incompatibility

This feature isn't compatible to other plugins that modifies the inventory on gamemode- or world-change, like Multiverse-Inventories, MultiInv and such. If LC detects one of the known plugins it is incompatible to, the Inventory feature is automatically disabled and gives a warning in server.log. To prevent the warning, just disable the feature in config.

World-separation

No! This plugin won't separate the inventories based on the world. It only decides via gamemode, that won't be changed. If you like to have a separation via world and via gamemode, use the "Multiverse-Inventories" plugin and disable LCs Inventory-Feature. By default MV-Inv. only separates via world, and not via gamemode, but that can be changed by the MV-Inv-Config-Option: use_game_mode_profiles: true