[Edit] ColorSign v1.2 (568)

Discussion in 'Inactive/Unsupported Plugins' started by blaatz0r, Mar 3, 2011.

  1. Offline

    blaatz0r

    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.

    [​IMG]

    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! :D

    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)
     
  2. Offline

    Dutchy

    I much approve of this! :)
     
  3. Offline

    Hawox

    Epic.
     
  4. Offline

    Tfs Halo

    very awesome :p
     
  5. Offline

    loikachu

    Need a permission support.
     
  6. Offline

    Jelle

    ya
     
  7. Offline

    Kainzo

    Permission 2.4+ support would be vundabar!
     
  8. Offline

    3nkao

    Yeah !
    Permissions AND databases (I mean MySQL) would be great :p
     
  9. Offline

    Nytemare3701

    WARNING: Breaks Lockette chest protection.
     
  10. Offline

    Kainzo

    Not everything needs MYSQL - very few things do - please dont bloat a plugin unneededly
     
  11. Offline

    Acru

    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.)
     
  12. Offline

    3nkao

    @Kainzo : Yeah you're maybe right :p
     
  13. Offline

    Dutchy

    Perhaps those plugins should simply ignore colors?
     
  14. Offline

    blaatz0r

    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
    
    }
     
  15. Offline

    TheNander

    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.
     
  16. Offline

    Acru

    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?
     
  17. Offline

    Dutchy

    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.
     
  18. Offline

    Acru

    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.
     
  19. Offline

    Bjourk

  20. Offline

    Acru

    Lockette 1.3 now strips color codes from the signs it uses~
     
  21. 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.
     
  22. Offline

    phaed

    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.
     
  23. Offline

    Dutchy

    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.
     
  24. Offline

    phaed

    o true. lol. Permissions would be fantastic
     
  25. Offline

    Dutchy

  26. Offline

    blaatz0r

    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.
     
  27. Offline

    Acru

    Nice work, seems perfectly compatible with Lockette now. :3
     
  28. Offline

    brock

    SWEET
     
  29. Offline

    Bjourk

    Will this work if I update to craftbukkit 602?
     
  30. Offline

    Dutchy

    Tested to be working with 617 :)
     

Share This Page