Slot Lock

Slot Lock

Slot Lock

Features

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.

http://i784.photobucket.com/albums/yy127/Elimiator/text_colour_zpsc6d4c62e.png

--------------------------------------------------------------

Commands

/sl help

/sl reload

/sl info

--------------------------------------------------------------

Permissions

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.

--------------------------------------------------------------

Configuration/Installation

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.
enabledworlds:
  - <all>
#  - world
#  - world_the_end
lockCreative: false
slotlock:
  0:
    item: "387"
    amount: 1
    name: "&4Book o' Info"
    lore1: "&3This is a book of info"
    lore2: "&cYes it is..."
    enchantments: 
      1:
        enchantment: DAMAGE_ARTHROPODS
        level: 1
    book: info
    permission: "slot.0"
  1:
    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:

info:
  author: Eliminator
  title: "Book O' Info"
  pages:
    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!

--------------------------------------------------------------

Donate

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

https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif

--------------------------------------------------------------

MC Stats

This plugin sends info on how many servers and players are using this plugin.
If you wish to disable the usage stats, look at /plugins/PluginMetrics/config.yml.
http://api.mcstats.org/signature/SlotLock.png

--------------------------------------------------------------

YouTube/FaceBook

Check out my YouTube for more Minecraft awesomeness:
http://www.youtube.com/user/Jacobvejvoda

Keep up to date with my stuffs at my FB page:
https://www.facebook.com/VbrosArtAndDevelopment

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

  • Avatar of jacob_vejvoda jacob_vejvoda Aug 17, 2014 at 03:17 UTC - 0 likes

    @ToXicMoZeZz: Go

    @uSoc_lifehome: Go

    @Tai1er: Go

    @Dan7heMan: Go

    I re-coded the entire plugin with v2.1 and added/fixed the stuff you guys wanted.

    Please test it and find any bugs.

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

    Need a custom plugin? Gime me a shout!

  • Avatar of uSoc_lifehome uSoc_lifehome Aug 12, 2014 at 13:08 UTC - 0 likes

    @jacob_vejvoda, thanks!

    It would be wonderful if enchantment and metadata of the "slot item" could be added!

    BFAK:90737389,0151cc4e8e2581d2ce7e224a27805a6704fab1bfbd04ee89045c4d53188b586b The heartbreaking feeling isn't that bad, but it tortures me... continuously...

  • Avatar of ToXicMoZeZz ToXicMoZeZz Aug 09, 2014 at 03:02 UTC - 0 likes

    Item that i locked in their slot drops once they are killed and they can drop it but it re-apppears :/

  • Avatar of jacob_vejvoda jacob_vejvoda Aug 01, 2014 at 04:30 UTC - 0 likes

    @uSoc_lifehome: Go

    I think I meant for you to be able to eat it, but for it to pop back.

    Ill add an option to disable that.

  • Avatar of uSoc_lifehome uSoc_lifehome Jul 31, 2014 at 11:11 UTC - 0 likes

    My locked slot is a porkchop, and players could drop'em and eat'em, though they can't move it into a chest or other place, they still could EAT it. Could you fix this please?

  • Avatar of uSoc_lifehome uSoc_lifehome Jul 31, 2014 at 10:50 UTC - 0 likes

    Where's the enchantment on item? It would be wonderful for us to have it on the slot!!

  • Avatar of Tai1er Tai1er Jul 28, 2014 at 11:28 UTC - 0 likes

    It's the plugin of my dream: Custom Join Item with books + InventoryPlus without bugs.

    But... I have errors whitn the last build of Spigot 1.7.9 :/

    http:pastebin.com/uVT3ECxU

    Last edited Aug 18, 2014 by Tai1er
  • Avatar of madtomic madtomic Jul 21, 2014 at 03:54 UTC - 0 likes

    what's best build for cb1.7.2-r0.3?

  • Avatar of jacob_vejvoda jacob_vejvoda Jul 17, 2014 at 01:49 UTC - 0 likes

    @Dan7heMan: Go

    Latest build should work fine on 1.7.9

  • Avatar of Dan7heMan Dan7heMan Jul 16, 2014 at 18:17 UTC - 0 likes

    @jacob_vejvoda: Go

    Ok well when do you think this plugin will be updated for 1.7.9?

Facts

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

Authors