Slot Lock

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 utilizes Hidendra's plugin metrics system, which means that mcstats.org 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.
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 Feb 12, 2015 at 04:36 UTC - 0 likes

    @excavator5: Go

    @madtomic: Go

    Ok, possibly added support for throes commands, and add a lock had command.

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

    PM me, (-; ZBDH8cccdcef21ccfea0c8915347baa0a716

  • Avatar of excavator5 excavator5 Feb 02, 2015 at 19:47 UTC - 0 likes

    @jacob_vejvoda: Go

    Thanks for the quick response!

    I've tried everything to input the username of the player but it returns either as player not found or it runs but it show "Error Calling Command: /menu"

    I find it weird that CC doesn't have a general /cc openmenu <config> Makes everything so much easier, Ill find an alternative.

    Thanks again!

  • Avatar of jacob_vejvoda jacob_vejvoda Feb 02, 2015 at 17:30 UTC - 0 likes

    @excavator5: Go

    "fake" commands from other plugins don't work sometimes.

    It depends how the implement them, but certain ones don't work for some reason.

    Maybe try:

    commandUser: console

    command: "sudo <player> menu"

    Last edited Feb 02, 2015 by jacob_vejvoda
  • Avatar of excavator5 excavator5 Feb 02, 2015 at 10:08 UTC - 0 likes

    Quick question,

    I am trying to simulate the player sending the command /menu to open the Chests Command GUI for our server menu.

    This is what I have:

    commandUser: user
        command: "menu"
    

    Now when I try right/left clicking with my book set to slot 8 it says unknown command. But when I set the command to /cc open roamenu.yml it works. But it shows:

    Now opening [roamenu.yml]
    Opening The Rise Of Avnycyn Menu
    

    I don't want players seeing the "Now opening [roamenu.yml] text and the only way is to use the /menu command however I can't seem to figure out why it keeps returning unknown command.

    Any help?

    Last edited Feb 02, 2015 by excavator5
  • Avatar of jacob_vejvoda jacob_vejvoda Jan 18, 2015 at 18:23 UTC - 0 likes

    @alsghl9607: Go

    Please note any errors, and why exactly it doesn't work?

  • Avatar of alsghl9607 alsghl9607 Jan 18, 2015 at 12:41 UTC - 0 likes

    I'm using spigot1544 version (1.7.10)

    But this plugin not work. Please Fix it !!

  • Avatar of jacob_vejvoda jacob_vejvoda Jan 16, 2015 at 17:11 UTC - 0 likes

    @alsghl9607: Go

    Might work.

  • Avatar of alsghl9607 alsghl9607 Jan 16, 2015 at 04:13 UTC - 0 likes

    this plugin not spport spigot 1.7.10?

  • Avatar of jacob_vejvoda jacob_vejvoda Dec 28, 2014 at 21:09 UTC - 0 likes

    @madtomic: Go

    Not yet, but I am planing on adding a /sl lockhand command to lock whatever your holding.

  • Avatar of madtomic madtomic Dec 27, 2014 at 21:56 UTC - 0 likes

    Is there a way to lock an custom item from another plugin?

Facts

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

Authors