neoPaintingSwitch - switching paintings the easy way:
This plugin uses the same basic idea as located here and here.
This plugin was originally created by Edward Hand (credit to him!) then abandoned and updated by MadMonkeyCo (thanks for keeping it alive) but abandoned again. Because I use it, a lot, I needed it working. So, I have rewritten it to use the bukkit api instead of hooking directly into the net.minecraft server. Meaning it shouldn't break after every new minecraft version.
How it works:
- Place a painting on the wall.
- Right click the painting and then using the mouse scoll wheel to scroll through the paintings.
- When you find the painting you like simply right click again or walk away from the painting. The plugin will disengage and the painting you have selected will remain.
There you have it, in a nutshell, it simplifies the selecting of paintings and saves alot of time. The plugin is also smart enough to know which paintings are the correct size for the space available. No commands to remember, simply click and scroll. Simple as that.
- Allows you to scroll through paintings by aiming and right clicking at them and using the mouse wheel to scroll through paintings.
- Permissions support ("neopaintingswitch.use"). -Groupmanager, bukkit permissions, niji based permissions, bPermissions, Vault, PermissionsEx and any other permissions that works with bukkit.
- config to turn off permissions checks entirely
- Support for worldguard regions
- Remembers last painting used and will attempt to use the same painting for future placements.
- false : enables permissions checks and allows anyone to switch paintings
- true : disables permissions checks and allows anyone to switch paintings
- true: enables permission debug traps
- true: enables permission debug traps
If you are still not convinced this is the plugin for you, check out the review made by ServerMiner.
if you like this plugin and want to support me. Its much appreciated. :-)
Donate With BitCoin 1NfcRtfUgqmQc3o3wKtN4k6MLKJSAetyHc
I just want to let you know that the plugin runs perfectly on our server with Minecraft Version 1.1.
So you could add this to the suported versions if you want!
Cool, thank you kindly! :)
We love your plugin so we decided to create a video to showcase its features!
We created a YouTube video tutorial for you, feel free to use it on your plugin info area: https://www.youtube.com/watch?v=b8tGZEMMzHk
Spigot and minecraft in general changed how clicking works. For me I have nothing in my hand and I right click. It works that way. Explain how you clicked.
I have tested this now several more times and I dont see the problem.
I've tested it like so:
1. Nothing in either hands, Right click: Works
2. Something in right hand, Right click: Works
3. Something in left hand nothing in right, Right click: Works
4. Something in left hand and right hand, Right click: Works
I've tried it with swords, and blocks both in either hand or in both hands... I'm unable to reproduce this.
Note Having a shield in your right hand will prevent this plugin from acknowledging you clicked a painting. That is the only time this will appear to not work.
-edit 2- Ok, I've uploaded a new version that does not ignore clicks if a shield is in your right hand. Its awaiting approval.
The bug I found is when I right clicked a painting. Nothing came up.
Nothing in chat. Nothing works when you scroll I am using Spigot 1.9. Please help!
Spigot fixed their issue and I've updated to use the off hand now. Version 1.37 has been tested to work with Spigot 1.9 latest as of this writing. It is uploaded and pending approval.
Let me know if there any further issues. Enjoy :)
Thanks for letting me know.
Sorry, this cant be fixed on my end. It's a spigot bug or deficiency in the API for the interact event. Its being called twice when it should not be or there should be a new method to determine which click happened. When or if they fix the PlayerInteractEntityEvent to work correctly this will work again or I can make a adjustment for the change.
Not working in 1.9! Locks as soon as it is right clicked.
:) Muy Bueno Gracias!
Just leaving a comment to all the other players that need a plugin so you can easily choose paintings. This works on spigot 1.8.8 and it's everything you need, it's even got permissions.
Only writing this because the last comment was 6 months ago and people might think it doesn't work for the newest version.
I appreciate your pull and the effort you put into it, its just like I said, I needed to know exactly what you changed. Which means I have to go over the entire thing by hand and test or examine what was fixed or modified. The diff shows something like 99% of the code was touched in some way or other.(Even if it was line spacing/formatting still have to check to make sure) That takes time, It was quicker and simpler to change the like 3 or 4 lines of code I already knew about then pull, compile and test your pull. I've already been running 1.35 minus worldguard on a 1.8 server so I know my code base works fine. World guard fix not included. So on my end was an easier call and thats what I did.
Again thanks for the pull, at least I know people still use this plugin and are interested enough to even submit a pull. :)
I told you all that I changed. It was included in the request. I also wasn't suggesting you just take it and run. I't's kind of obvious to check over code before updating. They were just all suggestions. Regardless, your call, it's your plugin. Glad you got it updated.
There is way too much diff in that pull without going over it by hand I cant tell exactly what you changed... Anyway,
I'll make a fresh update in a few days and push out something for general consumption.Simple fix, uploaded to curse for approval 1.36
I submitted a pull request to arc's repo with the updates I made to make it work on my 1.8 server. I haven't heard back yet, though. If you know how to setup the project and compile it you can pull from my repo the changes, otherwise, it's up to arc to push out an updated file. If you want the one that's compiled that I have, send me a PM and I'll send you it if you'd trust a file from another random person on the internet. :P
When is there a 1.8 Update out?
Using the plugin with Worldguard 6 throws a minor error. All you need to do is recompile with Worldguard 6 and it fixes itself
No idea what would be causing it, I cant reproduce it. player.isOp() || player.hasPermission(permission) Line 157 its a simple bukkit api call.
Meaning, I ask the server if player is OP allow usage OR if player Has the permission allow usage. So if its not working, its not on my end. Could be a conflict but if it is, one would think it would be causing problems for all your plugins. Sounds like some kind of misconfig in the permissions plugin to me.
If you feel like getting your hands a little dirty you could change Line 40 to a 1 and recompile then it will spit out debug info for permissions. Normally I'd have that as a config option but since the permissions code has become somewhat of a boilerplate I've forgot in this case and its hard coded only :-/
I'm also having the same issue as Passilam.. :(
It was working fine before I thought, maybe we both have a plugin that interferes with it?