Slot Lock

Slot Lock

Slot Lock


Set which slots you want locked, the item you want locked in the slot, how many of the item, the name, the lore(s), and enchantments.
You can also set a command and book from the books.yml if the item is a book.



/sl help

/sl reload

/sl info



Permission to use the /reload or /help commands:

"slot.lock.commands" allows you to use slot lock commands.

"slot.lock.drop" allows you to drop from locked slots.

Also whatever permissions you define in the slots configuration.



1. Drop the plugin into your plugins folder and restart the server.

2. Edit the config and set the locked slots.

3. Do /sl reload

Here is an example config:

#Just put - <all> to enable all worlds.
#slotlock contains the players slots you want locked (0-39).
#(0-8) are the hot-bar, (9-35) are the inventory, and (36-39) is the armor.
#item is the item locked in the slot, amount is the amount of items,
#permission is the permission node you must have for the slots to be locked, 
#name is the item name, and lore is the item lore.
#The book section is for what book name in the book file will be used.
#Command is the command that will be run, null for none.
#canUse is whether or not you can use the item, like throw it or eat it.
  - <all>
#  - world
#  - world_the_end
lockCreative: false
    item: "387"
    amount: 1
    name: "&4Book o' Info"
    lore1: "&3This is a book of info"
    lore2: "&cYes it is..."
        enchantment: DAMAGE_ARTHROPODS
        level: 1
    book: info
    permission: "slot.0"
    item: "350:2"
    amount: 1
    name: LockedSLot
    lore1: This is a locked slot
    commandUser: console
    command: "give <player> 1 1"
    permission: slot.two
    canUse: false

In enabledworlds ether put the worlds you wand enabled or <all> for all worlds.
Under slotlock the first number is the slot, the item is the item in that slot, and amount is the amount of items.

Here is an example book.yml:

  author: Eliminator
  title: "Book O' Info"
    1: "&l   --INFO--\nThis book is awesome!"
    2: "&2Its full of info!"
    3: "&4Thats right!"
    4: "&5Colours\n&6Colours\n&7And more colours!"
    5: "The End...\n\n\n...or is it?"


Upcoming Features

- Possibly different locks for the same slot?

- Ask!



If you like my plugins and want to help me out:


MC Stats

This plugin utilizes Hidendra's plugin metrics system, which means that collects server info like: A unique identifier, The server's version of Java, Whether the server is in offline or online mode, The plugin's version, The server's version, The OS version/name and architecture, The core count for the CPU, The number of players online, and the Metrics version. Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true. For more information, see the guidelines.



Check out my YouTube for more Minecraft awesomeness:

Keep up to date with my stuffs at my FB page:

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of jacob_vejvoda jacob_vejvoda Sep 03, 2014 at 16:34 UTC - 0 likes

    @Tai1er: Go

    @sethgandy: Go

    Added clicking slots with your mouse to run the command.

    Fixed book load bug.

    Check out my YouTube, my Face-book, my Game, and my Mods!

    Need a custom plugin? Gime me a shout!

  • Avatar of jacob_vejvoda jacob_vejvoda Sep 02, 2014 at 04:16 UTC - 0 likes

    @sethgandy: Go

    Ill take a look at that.

  • Avatar of sethgandy sethgandy Sep 02, 2014 at 04:09 UTC - 0 likes

    While I'm holding the book, I can't use pressure plates for doors. Just says: 10:08:34 PM java.lang.NullPointerException

    Used to say something like:

    9:52:20 PM [SEVERE] [PermissionsEx] Error occurred with PermissionsEx! Please post it to Full error:
    9:52:20 PM java.lang.NullPointerException
    9:52:20 PM 	at ru.tehkode.permissions.bukkit.regexperms.PermissiblePEX.permissionValue(
    9:52:20 PM 	at ru.tehkode.permissions.bukkit.regexperms.PermissiblePEX.hasPermission(
    9:52:20 PM 	at org.bukkit.craftbukkit.v1_7_R4.entity.CraftHumanEntity.hasPermission(
    9:52:20 PM 	at
    9:52:20 PM 	at
    9:52:20 PM 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    9:52:20 PM 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    9:52:20 PM 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    9:52:20 PM 	at java.lang.reflect.Method.invoke(Unknown Source)
    9:52:20 PM 	at$1.execute(
    9:52:20 PM 	at org.bukkit.plugin.RegisteredListener.callEvent(
    9:52:20 PM 	at org.bukkit.plugin.SimplePluginManager.fireEvent(
    9:52:20 PM 	at org.bukkit.plugin.SimplePluginManager.callEvent(
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.PlayerConnection.a(
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32)
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10)
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.NetworkManager.a(
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.ServerConnection.c(SourceFile:134)
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.MinecraftServer.v(
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.DedicatedServer.v(
    9:52:20 PM 	at net.minecraft.server.v1_7_R4.MinecraftServer.u(
    9:52:20 PM 	at
    9:52:20 PM 	at
  • Avatar of Tai1er Tai1er Sep 01, 2014 at 12:16 UTC - 0 likes

    Normaly it's enable in every worlds but the problem is the book.yml is empty when the server start and nothing work. You need to copy the config exemple of book.yml and restart the plugin.

  • Avatar of jacob_vejvoda jacob_vejvoda Sep 01, 2014 at 04:09 UTC - 0 likes

    @sethgandy: Go

    You must configure it, enable worlds, ect.

  • Avatar of sethgandy sethgandy Sep 01, 2014 at 03:27 UTC - 0 likes

    I can't get this to work for the life of me. I install in plugins folder, restart server yet it does nothing to my slots.. Why?

  • Avatar of Tai1er Tai1er Aug 31, 2014 at 10:39 UTC - 0 likes

    Yes but, it's only when the item is on the hot-bar and I right click. It's impossible to execute the command when I open the inventory and I right click. I know there is some mini-game plugins use this feature.

  • Avatar of jacob_vejvoda jacob_vejvoda Aug 30, 2014 at 16:09 UTC - 0 likes

    @Tai1er: Go

    You already can add commands.

  • Avatar of Tai1er Tai1er Aug 30, 2014 at 10:00 UTC - 0 likes

    The plugin copy the file book.yml in the plugin folder so the problem is the plugin erase the file? I need to copy the file which is in the jar when the server is running and reload the plugin. It's no perfect but a BIG thanks for your work. =D

    Do you think it's possible to add a command when we click on an item which is on the inventory? It can be really cool for the survival mode to add for exemple an item which open a portable chest or a menu. =D

    Last edited Aug 30, 2014 by Tai1er
  • Avatar of jacob_vejvoda jacob_vejvoda Aug 29, 2014 at 18:50 UTC - 0 likes

    @Tai1er: Go

    Then that's your problem, the default item has a book defined.


Date created
Aug 06, 2013
Last update
Sep 03, 2014
Development stage
  • enUS
GNU General Public License version 3 (GPLv3)
Curse link
Slot Lock
Recent files