[INACTIVE][MISC] SignColours v0.3 - for allowing coloured text on signs [672]

Discussion in 'Inactive/Unsupported Plugins' started by Edward Hand, Feb 12, 2011.

  1. Offline

    Edward Hand

    SignColours v0.3

    This plugin allows all players on the server to add coloured text to signs. Simply use the # character followed by a hexidecimal digit (0-f) to give the rest of that line a colour.

    Instructions

    Colour codes are the same as chat message colours:
    [​IMG]
    using a # in a sign in any other circumstances will keep the # symbol

    As an example, adding the text to a sign:

    #4###WARNING###
    #6Land Mines
    so be #Ecareful
    (or #fdie#0)

    results in:

    [​IMG]

    (and as you can see it shows up quite well at night)

    Permissions

    To customise permissions, you can add any of the following to your permissions plugin config.yml (permissions subsection):

    #Allow user to use the colour yellow (e):
    - 'signColours.e'
    #Allow user to use all colours:
    - 'signColours.*'
    #To avoid offending anyone's sensibilities, American spelling works too (here for allowing red):
    - 'signColors.4'

    Permission Notes:
    • As many or as few colours can be added as desired
    • If someone without permission uses a hash-code, the hash-code will remain there unchanged
    • Anyone who can use any colour will automatically be allowed to use black too
    • In permission definitions, the hex digits must be lower case (a,b,c rather than A,B,C). Signs are not case sensitive, however
    • If the permissions plugin is not installed, colours are enabled for everyone
    Feature Summary
    • Allows players to easily add a variety of colours to their signs
    • Compatible with the Permissions plugin
    DOWNLOAD LINK:
    http://www.srcf.ucam.org/~eh392/minecraft/SignColours/SignColours0.3.zip
    (source code is included)

    Change log:
    version 0.1
    • Plugin Released
    version 0.2
    • Added Permissions plugin compatibility
    version 0.25
    • Compatibility bug-fix
    version 0.3
    • Major Bugfix (eliminating possibility of sign corruption)
     
  2. Offline

    gallexme

    [command]
    /me test
    --- merged: Feb 24, 2011 1:07 PM ---
    [command]
    /me test
     
  3. Offline

    Edward Hand

    Exactly like that? That's strange. It works fine for me.
     
  4. Offline

    gallexme

    thats bad
     
  5. Offline

    HaloInverse

    On placing a sign, the colour codes are left unparsed and in black text, and the following appears on the console:

    Code:
    2011-02-24 15:21:15 [SEVERE] Could not pass event SIGN_CHANGE to SignColours
    java.lang.NullPointerException
            at com.edwardhand.signColours.SignListener.checkPermissions(SignListener.java:48)
            at com.edwardhand.signColours.SignListener.onSignChange(SignListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.java:262)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:837)
            at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    No error message appears if the sign does not have #colour codes.

    Running CraftBukkit #432, Permissions 2.1, SignColours 0.3.
    Tested on a server where the "Default" group had permission '*' set.

    (Don't know if this is by design or not, but SignColours is also not posting a "plugin enabled" message to the Bukkit console on startup.
     
  6. Offline

    Edward Hand

    Oh. Permissions 2.1 seems to have broken absolutely everything...

    Why must they keep changing everything :(

    (I'll fix it soon)
     
  7. Offline

    Jekotia

    I don't think it's anything you can fix. I think Permissions 2.1 itself is broken. When I tested it I couldn't even use the /pr command built into Permissions. 2.0 works fine, stick with that for now IMO.
     
  8. Offline

    SxeBeast

    I know I must sound stupid with this question, but I am confused by the "tar.gz" suffix. I saw somewhere you said the .jar is inside of it, but I see a .tar file. Do I just rename this file with a .jar suffix?
     
  9. Offline

    Edward Hand

    I've update the link to something you might understand [​IMG]
     
  10. Offline

    ParkerReno

    Thank god for zip files! (I am fine with tar.gz, but zip is a whole lot easier!)
     
    SxeBeast likes this.
  11. Offline

    SxeBeast

    Why thank you kind sir. Much obliged.
     
  12. Offline

    bevso

    this sounds good im adding it too my server now :p with the shit ton of other plugins :p
     
  13. Offline

    wolf hatake

    Any update for 450 + ?
     
  14. Offline

    Edward Hand

    It works fine as it is. I'll update the post name.
     
  15. Offline

    wolf hatake

    Are you realy sure it works fine ? Because when i write #6 message or other i don't see anny color AND i see my line #6 message ^^".
    [​IMG]

    and my plugins folder :

    [​IMG]
     
  16. Offline

    Edward Hand

    It's working for me. Have you made sure to give yourself the right permissions? Are there any errors in console?
     
  17. Offline

    Phinary

    Worked fine yesterday and I didnt change anything. Now i get this

    2011-02-26 16:01:27 [SEVERE] Could not pass event SIGN_CHANGE to SignColours
    java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at com.edwardhand.signColours.SignListener.checkPermissions(SignListener
    .java:48)
    at com.edwardhand.signColours.SignListener.onSignChange(SignListener.jav
    a:30)
    at org.bukkit.plugin.java.JavaPluginLoader$27.execute(JavaPluginLoader.j
    ava:262)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:225)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:837)
    at net.minecraft.server.Packet130UpdateSign.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.a(SourceFile:230)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)

    Edit: I use the groupmanager with permissions could this cause it? Although it worked fine yesterday :/
     
  18. Offline

    nossr50

    I didn't even know this was possible, brilliant!
    Downloading now.
     
  19. Offline

    wolf hatake

    Well, it's ok ! Sorry for my mistake i don't have give permission XD
     
  20. Offline

    Emalde

    We don't use groupmanager, but our server is also suddenly receiving a similar error. It brings us immense sadness.

    CraftBukkit 445
    Permission 2.0
    SignColors 0.3 (pretty sure)
     
  21. Offline

    Edward Hand

    One of the latest bukkit updates broke permissions 2.0.
    I haven't been able to get permissions 2.4 to work either.
    These are bad times to be a plugin developer.
     
  22. Offline

    Kane

    GroupManager I think it is? Works flawless for me.
     
  23. Offline

    TerraPlay

    It's not loading CB #493
     
  24. Offline

    Edward Hand

    I just tested it on that build and its working fine for me.
    What do you mean by 'not loading'?
    Have you made sure you have the right permissions?
     
  25. Offline

    TerraPlay

    I'm sorry. It works now, yesterday it doesnt, maybe because of CB#490 ;) Thanks for this great plugin!
     
  26. Offline

    Andre_9796

    Works fantastic with build 432. Thanks
     
  27. Offline

    Liger_XT5

    Howdy, I'd love to use this plugin, but from what I have read in the last few pages, it doesn't seem to be working quite well on the current version(s) of CB and Permissions.
    I'm using CB 440 (haven't had a need to update it yet) and Permissions 2.5 (I think it's .5, not sure atm :S ).

    Also, as just a suggestion, is there a way to make the text simulate a flash between on and off? (show black then chosen color?). Like a line of text stating WARNING flashing in red and black.
     
  28. Offline

    Gavitron

    This does not work for me.

    I'm using CB 493, Permissions 2.5, with SignColours 0.3, and I have:
    - 'signColours.*'
    in the Permissions/config.yml.
     
  29. Offline

    Edward Hand

    What do you mean by "Does not work". Are there any errors in the console? Does it say its enabling?
     
  30. Offline

    Juze

    SignColours v.0.3
    CB#493
    Permissions 2.4

    Code:
    2011-03-08 18:47:58 [SEVERE] Could not load plugins/SignColours.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:80)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:129)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:94)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
        at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: com.edwardhand.signColours.SignColours.<init>()
        at java.lang.Class.getConstructor0(Class.java:2723)
        at java.lang.Class.getConstructor(Class.java:1674)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:75)
        ... 8 more
    TSLPC error, perhaps?

    EDIT: Tested, doesn't work on Permissions 2.5.3. Had to disable this plugin.
     
  31. Offline

    Gavitron

    What I meant by "does not work" is that I don't get colored signs when using the # symbol before a color number.
    No console errors from the plugin, in fact, no messages at all from SignColors. The .jar is in the plugins folder, and has the same file permissions as any other working plugin, but it doesn't even appear to load...

    And permissions is v 2.5.2 for me.
     

Share This Page