NoItem
NoItem v3.1.0 - DERP.
What does it do?
NoItem aims to allow server admins to restrict almost any aspect of players actions via permissions. Things such as placing and breaking blocks, interacting with levers and buttons, opening chests and furnaces, even breeding animals can be controlled! There are of course other things that can be restricted as well. For a complete list, check the wiki!
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
Downloads:
http://dev.bukkit.org/server-mods/noitem/files/
Beta/Development builds may contain bug fixes, but also may contain new bugs
So before you report a bug, check and see if a new build has fixed it!
Feature List
NoItem can restrict the following:
- Crafting certain items
- Holding certain items
- Having certain items
- Brewing certain potions
- Cooking certain items
- Picking up certain items
- Dropping certain items
- Placing certain blocks
- Breaking certain blocks
- Wearing certain armors
- Interacting with certain items / entities in general
- Left clicking certain items / entities
- Right clicking certain items / entities
- Using certain tools. (right click / left click / in general)
Commands
Command | Permission | Description |
---|---|---|
/noitem | noitem.admin | Prints current NoItem version |
/noitem reload | noitem.command.reload | Reloads the configuration |
/noitem debug toggle | noitem.command.debug.toggle | Toggle debugging |
/noitem debug dump | noitem.command.debug.dump | Write debug file to the servers base directory |
Videos
FAQ
Q: How do I...
A: Check the wiki! If you are still confused and have tried to figure it out, ask in the comments.
Q: There is an error in the console or something is not working as expected
A: Submit a bug report to github! (Link above) DO NOT post the error in the comments section! Also be sure to include the error in your report.
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- 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
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
NoItem 4.X - It's Aliiiveeee!
NoItem 4.X is currently in development and is not finished. There will be bugs, there will be a lack of certain features, there will be questions.
Here is the link to the information page: https://github.com/nala3/Noitem4/wiki
Here is the link to the development builds: http://ci.worldoftomorrow.net/ (Also on the wiki page)
Submit bug reports to the github bug tracker.
Currently known issues are:
- None - Please report any found!
Currently Implemented Features (also their permissions)
- break
- place
- craft
- open
- cook
- pickup
- drop
- hold
- interact.object
- interact.entity
- use - is buggy and needs refinement
Permissions format:
- noitem.action.<action>.<object>[.secondaryValue]
- noitem.object.<object>[.secondaryValue].<action>
- Asterisk values are supported for specific actions and objects. not for all actions or objects at once. (e.g. noitem.action.* is not supported, but noitem.action.break.* is)
I am open to suggestions on what other action to implement on top of the ones I am currently working on.
A wild button appears!
You use "CLICK". Its super effective!
This looked like a promising plugin but whatever i do/try to configure it (i'm using bPermissions and Vault), everyone's still able to pick up items :-S (tested v1.8 under latest CB dev-build @ Java 7)
@nala3
Actually on second glance at the code I see the problem, and It will be a beast to fix xD It is caused when a player is not actually looking a the brewing stand when the potion brews, so I need to get the player earlier.
@AirCougar
Hi, your right it is due to no item. Can you please submit a ticket with the steps to recreate this problem? As well as the error in a formatted block so it is easier to read xD
Hi,
Can someone help me? I seem to be getting this error that crashes the server and I believe it is associated with NoItem. [SEVERE] Could not pass event BrewEvent to NoItem org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459) at net.minecraft.server.TileEntityBrewingStand.p(TileEntityBrewingStand.java:131) at net.minecraft.server.TileEntityBrewingStand.q_(TileEntityBrewingStand.java:61) at net.minecraft.server.World.tickEntities(World.java:1180) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:542) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList.get(ArrayList.java:382) at net.worldoftomorrow.nala.ni.BrewingListener.onPotionBrew(BrewingListener.java:89) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) ... 8 more
@wfuller1
Glad to hear its working properly :)
@nala3
I think I had just got a little confused! I turned PerItemPermissions to false and made sure the numbers were in the quotes, and now it does exactly as it is supposed to :). Very handy! So now my players can't make crazily dangerous potions easily any more.
Cheers for your help!
@wfuller1
The plugin uses the list if PerItemPermissions in the configuration is false otherwise it will check if the player has the permission node which stops him from brewing that potion. And as for the potion eventually brewing, can you submit a ticket with the steps on how to recreate the problem? Sounds like a serious issue lol
As for the quotations, in the list in the confit the quotes are needed ( I think ) but the permission node would just be : noitem.nobrew.0.372
Hey, thanks for updating it!
Do we have to add the permissions. Eg noitem.nobrew.0.372 to stop people brewing, or do we just need to add it to the DisallowedPotionRecipes to stop all players brewing? Also, do they need to be in the quote marks like "- '0:372'" or will "- 0:372" work? If just the permission needs to be added, then does that mean we don't actually have to add it to the DisallowedPotionRecipe section?
It seemed to succeed with us for a few times, but once the brewing had repeated 3-4 times it managed to create the intended potion.
Perhaps I am being awfully simple and just not getting it quite right!
@nala3
I'll test it today and get back to you on it. For now, I sleep xD Thanks for your help, this will make my server SOOO much better! :D
@xclucky
Okay, new version is out with basic item blocking support and auto updating configuration. I just couldn't wait :3
@xclucky
haha, thanks for finding that typo xD
I'm still undecided on how I will attack the issue of tools, I would rather think it through then code it rather than waste a bunch of time coding something I will just delete. Ahh, this next update is gunna be a big'n
BTW: You can keep track of my progress with the git repo, I push an update every time I finish a feature :)
@nala3
Essentials has that already I believe (not sure, may have been Commandbook). What hasn't been used anywhere else (other than included in LevelCraft, it can not be standalone) is where players are allowed/disallowed from using items based on permissions such as: noitem.notool.258 (allowing a player to wield an iron axe). If it is done like this it can be used in conjunction with several other plugins that add permissions to privileged players such as Jobs, A-Z Rank, Heroes (I think), and a few others.
If I completely misunderstood that last part, I apologise. If you were meaning when you remove the permissions of a tool/item from a player they can't hold it, but they can have it in the hotbar (I think its called, that bar on the bottom of the screen showing all of your held items), that would be fine. I didn't know if anything server side could prevent a player from holding an item in their hand if its in the hotbar.
PS: I Found a typo:
Incorrect: No Craft (With data) - "noitem.nocraft.<ItemdID>.<ItemData>"
Correct: No Craft (With data) - "noitem.nocraft.<itemID>.<ItemData>"
Thanks again, and I look forward to using this. :D
Also, I hadn't thought about allowing players to wield items, so It may be more appropriate for the permission to be noitem.noweild.<ItemID>.
@xclucky
I will try, but no promises. :)
Also, do you think it should just be a list of items that the player can not hold?
@nala3
Permissions is just what I was wanting. :D By the way, I'm releasing a new rpg server on May 9, any possibility that this will be done by then? Not rushing you or anything, just need to know if I need to delay my release date or release a beta version of the server.
@xclucky
I'll give it a shot :) It will be by permissions just like everything else.
I don't know if you have read the ticket that I submitted yet or not, but I have a suggestion for an addition to your plugin that does not exist in standalone.
@wfuller1
Done!...I feel loved :3
@rodins
I just added support for that :) Thanks for reminding me that I forgot to do that!
How add permision to nocraft for item with damage? "item:digital"
@MRCartm0n Well, I don't really see how I could do that, if you know of a way to do that I would be glad to give it a try, but i'm working on potions right now :)