SimpleSignEdit
Not satisfied with the mechanics of other sign edit tools, such as requiring the use of commands, I went and threw together a plugin that lets you edit signs simply by right-clicking them with another sign in hand.
Download here. (Older versions available here.)
If you are upgrading from 1.6 or earlier, be sure to set up your database info in the config before you start up your server with the updated plugin.
When you right-click to edit a sign, you can then view and edit the text of the sign just as you would when creating it. You can only edit signs if you are the owner or if they are owned by everyone. To include colours on the sign, use the & character followed by a digit or a letter from A to F. This works both when placing and when editing. If you want to include an & character on the sign, and the plugin interprets it as a colour code, simply double it and the plugin will realize that you don't want it to be converted.
To see who owns a sign, hold a stick in your hand (you can change this to any item in the config file), and right-click the sign. To change who owns a sign if you have permission, hold a feather in your hand (you can change this to any item in the config file), and right-click the sign. Then either type the new owner name into chat, or walk over and punch them. You can also enter the symbols @, #, and * into chat to set the owner to yourself, no-one, or everyone, respectively. You could also edit ownership by editing the config file, but since signs are stored by their location that would not be an easy task.
To configure the items used for setting/viewing the owner of the sign, simply set the "view-owner" or "set-owner" values in the config file to the ID of the item you want to use. You can also change the "allow-stacking" and "break-protect" values if you wish. It's probably a good idea to leave the "signs" section alone since that keeps track of who owns which sign. You can also configure it so that you need to be sneaking (or not sneaking) to edit signs.
Video by Warby579 aka UltiByte:
List of things to maybe do:
- None right now
@ionikarts
I'd say just try the latest version and see if it works. If not, then work your way back through the versions until you find one that does; presumably that won't be earlier than 2.0, since that's listed as being for CB1.1.
@nacramell
The issue isn't whether I can get the lines back to edit, but whether I can copy those lines to the temporary editing sign and have the client update those lines into the sign edit interface. I'm pretty sure I am copying the lines to the temporary sign; the issue boils down to the client not accepting this update in the sign edit interface.
...also, getLine is far from new. It was there when I first started making Bukkit plugins.
Could you update the plugin ?
I did look at your code, but it would take alot longer for me to find the right lines to add the
new Bukkit api methodes:
Sign.getLine(int index)
Gets the line of text at the specified index.
So you should be able to get the Lines back to the edit, don't you ?
http://jd.bukkit.org/rb/apidocs/org/bukkit/block/Sign.html
In Hope Friendly
The plugin I've been dreaming about! :D
Which version do i need for CraftBukkit 1.2.5
@Davexx
If "no longer in development" means "there's nothing else to do with it", then yes. I'll fix the old sign text not appearing if and when it becomes possible to fix it, and I guess copying a sign would be useful, but for the most part this plugin is "finished" and all I'll be doing is updating it if ever necessary.
Is it possible to make it we can copy the sign too?
Hi, I just tried SimpleSignEdit for the first time and I was surprised that the most crucial functionality is not working, namely being able to see the current sign text when you right-click to edit. I noticed this error was reported 5 months ago but has not been fixed .
It is plug-in no longer in development, or is not possible to fix this?
Excited to try your plug-in! Dave.
@dermarionator
Well... I didn't update to build against the latest version of LWC, so if he's changed the API that could be why it breaks. Other than that, I'm not sure.
I have this error with v2.1 Craftbukkit 1.4.6 R-0.3
http://pastie.org/5606761
It look like a problem with LWC
Why is it not working for us? :p
We are using the latest bukkit.
@RibShark
Thanks for linking that... the file approval process has been a little slow in the past day or so.... :/
Latest version (for 1.4.5): http://dev.bukkit.org/server-mods/simplesignedit/files/8-v2-1/
I've updated the source and will release it once I've had a chance to verify that everything still works (which, with luck, should be in a day or so). If you're impatient you can get the source and compile it yourself.
Note that, due to a bugfix in Minecraft, the functionality of being able to see the old contents of the sign is no longer available. As such I've reinstated the old method of partial sign changes: blank lines are ignored in the sign edit popup, meaning that the corresponding line on the actual sign will be unchanged. If you want to clear a line, replace it with a space.
pls update it for 1.4 i need it ;D
i need it for 1.4 can u update pelase
@Hangar
In response to a comment about a page back... if I never removed the functionality, it should be possible to leave a line blank on the editing sign in order to specify leaving that line unchanged (use a space to delete a line). If I did remove it, it should be easy to add back. With that feature, you would only need to rewrite the lines you actually want to change.
I just asked Dinnerbone on IRC, thats what he said:
http://puu.sh/ZBVA
Well that is lame... can't count on Mojang do to nothing right.
Those lamers should have added sign editing in 1.3 while this plugin was wrecked because of the changes they made in the first place.
Sorry to hear that... This is a cool plugin. Maybe we can request package acception from mojang?