Inactive [CHAT] SimplyColor V1.0 - Simple plugin for colored nicknames [1.2.4 R-1]

Discussion in 'Inactive/Unsupported Plugins' started by Perdog, Jul 28, 2011.

  1. Offline

    Perdog

    SimplyColor! - The simple plugin for colored nicknames
    Version - 1.0

    NOTE: When you first start the server, the plugin will fail to load, because you have yet to enter your MySQL information. Just shut down the server, find the config.yml for this, enter your information, save, then restart your server and everything will be running smoothly :)

    Description:

    This is a completely re-written version of the previous plugin. I have added 3 new command arguments to be used, which can be read below. It uses MySQL databases to store the information for each player that logs onto your server. It also stores the names of players that haven't changed their color, just to make it easier to handle player log ins. There are also quite a few new permission, also found below.

    Features:
    • Colors can be limited to 1 player per color. Disabled
    • Players with the appropriate permission can use the command '/simplycolor <color>' to set their display name to that color.
    • I've added 3 new parameters (each also have their own permission)
      • Magic: Turns the display name into the "changing letters". Players need the separate permission 'sc.magic' for this parameter.
      • Rainbow: Does what it says, sets the letters of the players name to the colors of the rainbow.
      • Random: Sets each separate letter in the players name to a random color.
    • Stores the colour values for player nicknames in a MySQL database
    Commands & permissions:

    The format for the information below is as follows:

    Command:
    What it does
    Permission required

    Code:
    /simplycolor <color>:
        Description: Sets the colour of your name
        Permission: simplycolor.change
    /simplycolor magic:
        Description: Changes your name to the funky changing letters
        Permission: simplycolor.magic
    /simplycolor random:
        Description: Changes your name to random colors for each letter
        Permission: simplycolor.random
    /simplycolor rainbow:
        Description: Changes your name to the colors of the rainbow
        Permission: simplycolor.rainbow
    /simplycolor <playername> <color>
        Description: Sets the colour of that players name. Note that the new arguments can be used with this command
        Permission: simplycolor.override
    The is also:
    /simplycolor reset, which resets the color back to white

    I've included other ways of typing the command, for you americans or people that want a short form version. All acceptable command names are:
    • /simplycolor
    • /simplycolour
    • /sc
    Configuration:
    "config.yml" can be found in your "plugins/SimplyColours" directory:
    Code:
    Allow doubles - Whether players can use the same color name or not (if set to false it will only allow 16 colored nicknames on the server!)
    *Temporary disabled this feature

    The MySQL database information is also stored in here, fill it out and your good to go :)

    Known conflictions:
    There are non *for sure* though I'm going to go ahead and say it may conflict with essentials.


    Note: If you are using essentials, please edit the properties to look like this to get rid of any conflictions.
    Code:
    ############################################################
    # +------------------------------------------------------+ #
    # |                Essentials (Global)                  | #
    # +------------------------------------------------------+ #
    ############################################################
     
    # A color code between 0-9 or a-f. Set to 'none' to disable.
    ops-name-color: 'none'
     
    # The character(s) to prefix all nicknames, so that you know they are not true usernames.
    nickname-prefix: '~'
     
    # Disable this if you have any other plugin, that modifies the displayname of a user.
    change-displayname: false
     
    # Adds the prefix and suffix to the displayname of the player, so it will be displayed in messages and lists.
    # The prefix/suffix can be set using Permissions, Group Manager or PermissionsEx.
    # The value of change-displayname (above) has to be true.
    add-prefix-suffix: false
    
    Please let me know if you stumble upon any more so I can add them to this list.



    [​IMG]
    Download

    Known bugs:
    • None :)
    Change-log:
    • Version 1.0
      • Complete re-write, since I deleted the source a while ago :p
      • Added 3 new commands as well, read main post above
      • A bunch of permissions, because I know all you out there like your permissions
     
    Cap K and Zelif like this.
  2. Offline

    Perdog

    Quick question,

    How big of a feature was the allow doubles to everyone? Is it needed by some of you or can I abolish it?

    As promised, check the OP for the new download :) I'll be updating the entire thread later today when I get home

    EDIT: Thread has been updated

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 18, 2016
  3. Offline

    skateforlife8

    Internal Error T_T
     
  4. Offline

    Cap K

    thanks a lot mate :) but:
    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'simplycolor' in plugin SimplyColors v1.0
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
            at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
            at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:554)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    Caused by: java.lang.NoClassDefFoundError: net/milkbowl/vault/permission/Permission
            at dev.mCraft.SimplyColors.Main.onCommand(Main.java:74)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 12 more
     
    
    does this mean i have to use a permissionsystem?

    Edit: ooooh, the porblem may also be, that i don't have the right to sql on our machine.
    Code:
    2012-03-30 01:20:40 [WARNING] Could not save config.yml to plugins/SimplyColors/config.yml because config.yml already exists.
    2012-03-30 01:20:40 [SEVERE] [SimplyColors] [SimplyColor][MySQL] jdbc:mysql://localhost:3306/minecraft
    2012-03-30 01:20:40 [SEVERE] [SimplyColors] [SimplyColor][MySQL] Could not be resolved because of an SQL Exception: Access denied for user ''@'local$
    2012-03-30 01:20:40 [SEVERE] Error occurred while enabling SimplyColors v1.0 (Is it up to date?)
    java.lang.NullPointerException
            at lib.PatPeter.SQLibrary.MySQL.checkTable(MySQL.java:163)
            at dev.mCraft.SimplyColors.SCSql.doesDBExist(SCSql.java:30)
            at dev.mCraft.SimplyColors.Main.loadDatabase(Main.java:485)
            at dev.mCraft.SimplyColors.Main.onEnable(Main.java:36)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:215)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:336)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:250)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:232)
            at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:543)
            at org.bukkit.Bukkit.reload(Bukkit.java:182)
            at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:22)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
            at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:469)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:599)
            at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:568)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:452)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
    
    going to fix this and report back
     
  5. Offline

    Perdog

    Was this on first start up? Also, some stack traces would be nice

    Problem number 1: You need to have vault on your server, I use it for everything permission related
    Problem number 2: That error is expected on start up :p It's because you need to enter you MySQL information in the config
     
  6. Offline

    hambae

    i want to use this im using craftbukkit-1.2.4-R1.0 i did the essentials config but when i try to change colors it says
    An internal error occurred while attempting to perform this command. help!!
     
  7. Offline

    Perdog

    What was the exact command you typed? And were there any console errors?
     
  8. Offline

    hambae

    i tried /sc magic
    /simplycolors magic
    /simplycolors help(this works)
    and /sc (lost of colors) i also seem to get this error for plugins all except essentials.also do i need mysql?
     
  9. Offline

    Perdog

    For this you do need MySQL, I've been thinking of adding support for those that don't have it, but I'm not sure if I want to yet :p I'll think about it though. You should notice a really big error on start up if you don't have mySQL though
     
  10. Offline

    Bear202

    Lies, you say its made for 1.2.4 but it says error loading plugin is it up to date?
     
  11. Offline

    Perdog

    It only says that on the first startup with it, because you haven't entered your MySQL information in the config.

    I should make that note in the thread a little more noticable...
     
  12. Offline

    Cap K

    yeah, sorry, a lot of us barely have the skills to set up a server and we tend to not look at things thaaat keenly before asking stupid stuff^^
     
  13. Offline

    Perdog

    Its fine :p I've had worse questions asked before. If anyone doesn't have MySQL on their servers, let me know, and I can give you a way to set up a free database from your computer
     
  14. Offline

    Bear202

    Oh i never knew that. I also do not have this MySQL thing.
     
  15. Offline

    skyfox711

    If i use /sc red it says: internal error while using this command.
    ?? What to do?
     
  16. Offline

    Perdog

    Do you have MySQL? If so, do you have the proper permissions?
    http://www.wampserver.com/en/, It allows you to run the database from your machine.
     
  17. Offline

    Superboop

    For some reason there's a mySQL error :confused:

    Code:
    2012-04-11 00:01:26 [WARNING] [SimplyColors] [SimplyColor][MySQL] Error in SQL prepare() query: No operations allowed after connection closed.Connection was implicitly closed by the driver.
    2012-04-11 00:01:26 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'simplycolor' in plugin SimplyColors v1.0
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:473)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:140)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
        at dev.mCraft.SimplyColors.SCSql.changeColor(SCSql.java:51)
        at dev.mCraft.SimplyColors.Main.onCommand(Main.java:207)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 14 more
    I'm not sure why it won't work.. LogBlock works fine with the mySQL database.

    I'm on a mac so I can't use wampserver either.
     
  18. Offline

    Edyi3

    i have a question, obviously^^

    is there a possibility to color the nicks above your head? cause im usin a pvptoggle plugin so id like to set the nicks of nopvp players for ex. green and pvp players red so that u can recognize them at one glance... if there isnt... maybe somebody want to write a plugin like this? xD

    id be sooo grateful, this would make things way much more easier :) for - as i think - quite a lot of us admins ;)
     
  19. Offline

    Perdog

    Was this on first start up?

    I could probably be done using spout... But I don't know how that would incorporate properly with this. Would probably be better as a separate plugin.
     
  20. Offline

    Superboop

    Nope. I'm aware that the first time has error because of mySQL. So I configured, but it's still that way.. hmph
     
  21. Offline

    Perdog

    Strange .... By the looks of it you attempted to change your name color, correct? Is there a table in your database called colors?

    EDIT: Just double checked the lines that produced the error, and it seems that the color you tried was null ..... what color did you attempt to change your name too?
     
  22. Offline

    Superboop

    I tried changing color to blue.
    It's probably with mySQL, I have no idea how to set one up, therefore I'm using a hosting site.. though I can't even access the database.
     
  23. Offline

    Perdog

    That may be your issue then :/ Is there any way at all to get access to the database? Could you email your provider asking to get access
     
  24. Offline

    nnnn20430

    ecry time i tery to change color it gives me and internal error occurred while attempting to perform this command
     
  25. Offline

    mattchko

    when ever i try to change my colours it says
    An internal error occurred while attempting to perform this command.
     
  26. Offline

    Stenly

    Hi guys! I'm new on this site and I have a question.

    I download this plugin on my server, but it isn't working! I tipe "./simplycolor red" and console was writing: "Error. You can't type this command..." etc. Why? I'm an admin, and, I think, I can write all comands :D
     
  27. Offline

    Perdog

    What exactly IS the error in the console?
    You still might not have the proper permissions to use it, you'll need to make sure you have the permission node.
     
  28. Offline

    A13XHD

    I dont get the mysql part
     
  29. Offline

    o0AzzA0o

    07:32:36 [SEVERE] Could not pass event PlayerJoinEvent to SimplyColors
    org.bukkit.event.EventException
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:459)
    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:132)
    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:129)
    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:41)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:61)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:551)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:449)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NoSuchMethodError: lib.PatPeter.SQLibrary.MySQL.prepare(Ljava/lang/String;)Ljava/sql/PreparedStatement;
    at dev.mCraft.SimplyColors.SCSql.addColor(SCSql.java:36)
    at dev.mCraft.SimplyColors.PlayerListener.playerJoin(PlayerListener.java:28)
    at sun.reflect.GeneratedMethodAccessor139.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
    ... 9 more
     
  30. Offline

    tomstud122

    says in my server.log

    2012-05-31 20:34:09 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'simplycolor' in plugin SimplyColors v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NullPointerException
    at dev.mCraft.SimplyColors.Main.onCommand(Main.java:74)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    ... 12

    it happens when i type /simplycolor random
     
  31. Offline

    4sonicride

    What is this MySQL thing? What am i supposed to do?
     

Share This Page