Slot Lock
Slot Lock
Features
Lock any item in any slot. You can easily do this with the lockhand command, and all 1.8 items like player skulls and banners are supported!
You can lock different items in the same slot for different people using perms. You can also make per-world locks with world perms in PEX or GM.
--------------------------------------------------------------
Commands
/sl reload
/sl lockhand <perm> (Sets for item in hand)
/sl lockhand <perm> <slot>
/sl setCommand <player/console> <command>
/sl setCanUse <true/flase> (Sets for item in hand)
/sl world <enable/disable> <world>
--------------------------------------------------------------
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. Lock slots as wanted using the commands.
3. Change enabled worlds and other things only using commands.
NO support will be proved for people who manually edit the config!
--------------------------------------------------------------
Upcoming Features
- Bug fixes?
--------------------------------------------------------------
Donate
If you like my plugins and want to help me out:
--------------------------------------------------------------
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.
--------------------------------------------------------------
YouTube/FaceBook/Twitter
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/Twitter:
https://www.facebook.com/EliminatorProductions
https://twitter.com/Elimnator
@jacob_vejvoda
Ahhh, damn... I'm keeping my books under 50 pages and I still have 8-9 books... would be annoying for people if they only had like 3-4 slots of the quickbar free...
It's not possible to change this?
You normally can't open book unless s there in the quick-bar<sub>,</sub>
I've created a book slot, and assigned a book to it. However, it doesn't seem to open. Does it have to be in the quickbar?
Fixed a bug, 1.5.2 is awaiting approval.
1.5 uploaded! Just waiting for bukkit to approve it.
Added books and commands!
@jacob_vejvoda
Nice, Hope that it works :P
Book/Commands should be done in a few days.
Please add the possibility to bind a command to the item/slot and set if left and/or right mouse button can trigger it, its the final step missing to make robust inventory menus. Im sure a lot of people would find this very useful. ex:
@jacob_vejvoda
Dropping thing is alright now, i was just OP, so i could drop.
Also how long till you can get the book thing done? Because I need it before I launch my server :P Or will it take a long time?
@ConquestServer
I am working on fixing the drop item thing.
Also there is no way ad of now to add books, however I will add it.
@jacob_vejvoda
So i want to put in a signed book... how can i do this? When i type in the item id for book, it just gives them a plain book, but i want to lock a book that i've written in and signed.
@ConquestServer
You can change colours with the § symbol.
Also I don't know how the 'foodstuffs' or 'tools' things would be removed.
BUG & SUGGESTIONN!!!!!!!!!!!!!!!!!!!!!!!!
BROKEN PLUGIN!! Players can drop the items that are in the locked slot... then it clears their inventory and puts the item you're holding in the 1st spot and erases the others..... fix please?
and my suggestion. PLEASE... make it support color codes and text codes such as &l and &d !!!!!
Also, just a side note..
Where the lore goes, is there any way to remove the stuff that says 'foodstuffs' or 'tools' ???
Thanks!
First of all did you add your world or <all> to "enabledworlds"?
Do you have the defined permission?
Also what error did you get?
Can you post your config?
I had a little problem. I can't seem to lock two slots. I basically removed all the # in the config that is in front of both slots, just the slot part, and both slots disable themselves and I get an error.
I think that means you have to update to Java 7.
I am having a few problems with getting slot lock to load, can you help me? Here's my server log: 14:30:10 [INFO] Starting minecraft server version 1.6.2 14:30:10 [INFO] Loading properties 14:30:10 [INFO] Default game type: SURVIVAL 14:30:10 [INFO] Generating keypair 14:30:10 [INFO] Starting Minecraft server on *:25565 14:30:11 [INFO] This server is running CraftBukkit version git-Bukkit-1.6.2-R0.1-b2838jnks (MC: 1.6.2) (Implementing API version 1.6.2-R0.1) 14:30:11 [SEVERE] Could not load 'plugins/slot_lock.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: io/hotmail/com/jacob_vejvoda/slot_lock/slot_lock : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_6_R2.PlayerList.<init>(PlayerList.java:56) at net.minecraft.server.v1_6_R2.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582) Caused by: java.lang.UnsupportedClassVersionError: io/hotmail/com/jacob_vejvoda/slot_lock/slot_lock : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more**
This plugin isn't meant to do that, you are supposed to define a certain amount of the item to lock an item at. I may try to implement something like that in the future, but its not on the top of my list,
@jacob_vejvoda
I'd like to just lock an item in a slot, understand? The player can pick up more of this item from the ground(from a drop drop) or he can just drop it, changing it's value. :p
Example:
- I have, by default, 16 emeralds in the 9th slot. If I drop an emerald, the value of the slot becomes 15 emeralds.
-- But I still can't change the position of it in the inventory, so it is "locked" yet. The slot will always have 15 emeralds, until I get a new emerald.- I pick up the emerald that I dropped in the ground, so now I have 16 emeralds again, and I will always have 16 emeralds in the slot from now. It is still "locked", I mean, I will cannot change it in the inventory, from a slot to other, but its quantity, yes.
Did you understand me? The "lock" that I'd like it's an option that I just can't change its place in the inventory or in the hot-bar, but I still can change the quantity of the item that is "locked" in that slot; in this case, the 9th slot with emeralds.
I've been looking for a plugin like this for a long time, but I never found it. Your plugin is the most near that I found, but I'd like change the quantity of the items that I have in the locked slot, and I cannot change its position in the inventory.
@ArthurMaker
What do you mean?