ColorSign Current release: 1.2 (568) Old versions: 1.1 | 1.0 Description: This plugin allows you to change the color of the text on a sign by looking at it and scrolling the mousewheel. Nothing more, nothing less. Features: Aim your cursor at a sign and use your mousewheel to change the color. Cyclic scrolling (backwards or forwards) through the list of colors. All 16 colors are available. Set the color of each line seperately by sneaking (holding Shift) and selecting the line number, then release shift and scroll to change the color. For example: Look at the sign and press Shift+2 to select the second line. Now start scrolling to change the color of the second line. Select any other number (5-0) to select all lines Installation: - Download ColorSign at the top of this page and put it in your plugins folder. - And you're done! Known bugs: - None yet! To do: - Nothing yet Source: GitHub Changelog: 24/03/11: v1.2 (568) Set colors per line by sneaking! 24/03/11: v1.1 (568) Small bugfix (15 characters per line) Updated to recommended build 03/03/11: v1.0 (477)
And attn @blaatz0r, The best way to ensure compatibility with Lockette and Craftbook and the like is to not alter signs where the first line of the sign is something within square brackets. (Usually square brackets, though I've seen other brackets used.)
I have to agree with Dutchy here. I can't fix my plugin so it checks for every possible text combination that another plugin uses. Notify the creator of your broken plugins and tell them to do this in their code: Code: import org.bukkit.ChatColor; ... // Read text from the sign String[] lines = sign.getLines(); // Just loop over all the lines for (String line : lines) { // When you're processing each single line to check for a pattern or something, strip chatcolors first like this: String lineWithoutColour = ChatColor.stripColor(l); // Then do further processing using the lineWithoutColour variable }
Very Nice. Only one Problem I've had with it though. Whenever I make something on Craftbook ex. A Gate When I or someone else accidentally presses keys 1-9 or uses their scroll wheel. The Gate no longer works with that sign. Not sure if this is your problem or Craftbook's.
I can do this, as long as you can ensure that when adding color codes you don't truncate the actual text of a sign. This would be very bad for security plugins if there is text removed, as signs only have 15 characters per line. (Text of signs are truncated to 15 chars when the server is stopped and reloaded.) Do you check for this already?
We currently do not check for the length of the line. A color code is two characters, so I'll put this on the todo list to check for line.length() <= 13.
Mkay [MERGETIME="1300158989"][/MERGETIME] Oh, by the way, you might want to make sure that line.length() > 0 as well, if you don't already.
Love this plugin! Running great on 531. Would you please consider submitting a source to the CraftBuckitAutoUpdater? http://forums.bukkit.org/threads/ad...keep-your-server-plugins-up-to-date-531.5026/
Serious? This is a mod that changes the color of a sign. Why would it need any kind of a database? If every mod used SQL half the servers would lag a lot, and the other half would close down - even some large Hosting companies don't support mySQL. Even for a mod that stores data, such as player settings, would be best done flatfile and only something expecting over 10,000 transactions regularly would even benefit from SQL.
Would be awesome if the plugin kept track of who placed the signs and only allowed the owner of the sign to change the color. HashMap that dumps to flatfile would be ideal.
Unlikely that we will build this. For one simple reason: it's very easy to get around this restriction by breaking the sign and placing a new one.
Updated ColorSign to make sure it does not break lines of length 15. I need to wait until blaatz0r updates the thread, but meanwhile you can download the new version at https://github.com/TuinCraft/ColorSign/raw/master/builds/ColorSign-1.1.jar Also tested to work with RB 556.
Updated to recommended build. Edit: you can now set the color of each line seperately by sneaking and pressing the line number (Shift+1 through Shift+4). Press any other number to select all lines.