[Inactive] DispNameChanger 3.0 - Change Names! + Spout [1000]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, Apr 16, 2011.

  1. Offline

    captainawesome7

    Inactive. Being replaced by:
    DispNameChanger 3.o - Change anybody's display name!

    Version: 3.0
    DispNameChanger is a plugin that lets you easily change your display name or any other player's display name. I know there are other plugins that do this, but I think this is the only one (aside from /nick in essentials) that allows you to change YOUR name and ANYONE's name and permissions support. It now saves your name after you leave and loads it when you come back! *NEW* With Spout, this plugin also changes the name above the player's head and sends you a fancy notification!

    Features:
    • Change the display name of a specified player, including yourself
    • Spout: If installed, changes player's names above heads
    • Permissions Support (Default is Permissions 2.7.x or 3.x) if not found, uses SuperPerms
    • PERSISTENCE! (Thanks to @Sammy for that one, he helped me a TON)
    • Supports Colors! (Thanks to @itsatacoshop247)
    • IMPORTANT: This plugin conflicts with Essentials, it doesn't work with this plugin. If you have essentials, you can just use /nick and change the nickname character to '' in the config, so it basically does the same thing :)
    Commands:
    Commands (open)
    Commands (open)

    The permissions default to the Permissions Plugin 2.7.x or 3.x
    If you don't have it installed it uses SuperPerms(PermissionsBukkit, bPermissions)
    Commands:
    • /rename <player> <new> - Changes the specified player to the specified name
    • /rename <player> - Resets the player's name
    • /rename - Reset's your own name
    • /checkname <player> - Checks the player's name (Not really working)

    Downloads
    The source code is included in the .jar (/me/captain/dnc/)

    Planned Changes
    None so far

    Changelog:
    Version 3.0
    • This one was largely a community update.
    • New Features by Daxiongmao87:
      • New Permission nodes.
        • dispname.change for regular changing of your own name
        • dispname.changeother for regular changing of other's names (requires dispname.change)
        • dispname.changespace for changing names w/ spaces in them (requires dispname.change)
        • dispname.check for checking names (not really working)
    • New Features by Luke Zwekii:
      • Spout support!
    • If you run into any problems, be sure to let me know!
    Version 2.0
    • Added name above head changing support with BukkitContrib. If it isn't installed nothing will happen in regard to names above heads. Also, you have to have the BukkitContrib client mod installed to be able to see the changes.
    • Made join messages and leave messages use display name
    Changelog Cont. (open)
    Changelog Cont. (open)

    Version 1.4.2
    • Added the spaces into the name again, if you are using the iJobs plugin, don't update
    Version 1.4.1
    • Fixed the 'could not pass player join' error.
    Version 1.4
    • Fixed the conflict with iJobs, the plugin will no longer load your name if there is a space in it :)
    Version 1.3
    • PERSISTENCE YEEEAAAAHHHH (thanks to @Sammy)
    • ^Saves your name when you leave and loads it when you return :p ^
    Version 1.2
    • Added your name reset when you type /rename with no parameters, I will change this to /resetname soon
    Version 1.1
    Version 1.0
    • Original Release!

    [​IMG] To me to support my plugins :)
    Share the love with @Daxiongmao87 and @Luke Zwekii , They earned it!
     
  2. Offline

    captainawesome7

    @Yoman987 Ok. I will see what I can do. So you said that the SimpleAdmin didn't have that problem? If not, I can definitely change a few things to make DispNameChanger work as well.
     
  3. Offline

    Lazywolf

    Works fine, with one exception: when joining, the normal name is displayed. Background: I have a little server but a friend does not want to join cause of his name, he does not want others to read it (I dunno why) he said this name was for single player only. I can drag him onto my server, but only, when every occurence of his name can be replaced by another name.
     
  4. Offline

    captainawesome7

    @Lazywolf
    I will change the default join message to their display name with the next version. It shouldn't take too long, because I already did that in my other plugin SimpleAdmin.
     
  5. Offline

    Yoman987

  6. Offline

    captainawesome7

    @Yoman987
    Ahh ok. my bad.

    @Yoman987 Alright I can change it so that if there is a space in your name it doesn't load it. Regular names can't have spaces, so it should be fine

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

    Yoman987

    Great, thanks. Have an internet :p
     
  8. Offline

    captainawesome7

    Version 1.4 released :)
    I made it so that when a player joins/leaves their name will not be saved if it has a space in it, and I tested this myself. If you run into anymore problems or this fix doesn't work for you, please let me know :)

    Sorry about not fixing that in the regular 1.4, if you want this to be fixed you can download the dropbox link (or download this jar) and it will have the fix for the join message. It will be the same as the regular one, but instead of playername has joined the game it will be displayname has joined the game (the display name in the database, so the first time he logs in you will need to rename him, then it will show his altered name when he logs in). I won't release a new version with this in it, but if you click this link it will download the *fixed* 1.4 :)

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

    iffa


    I just had to... :)
     
  10. Offline

    captainawesome7

    @iffa
    Lol I did the same thing :)
    My players lost their minds haha
     
  11. Offline

    Yoman987

    Awesome thanks.
     
  12. Offline

    jythri

    Hey, have a suggestion for 1.5!

    How about a /checkname <dispname> dispname.admin.checkname

    Command that allows you to find out the core account name of the dispname in the who list!!

    Ack. I was trying to enable persistence, but couldn't get it to work.

    So, I deleted the plugin and the database folder and reloaded.

    Now, I put the latest plugin back, and reloaded, but it's not creating a database! Help!

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

    captainawesome7

    Please post errors, and /checkname is already there, i didn't publicize it because it isn't finished, but you can try it out anyways. dispnamechanger.check for /checkname.
     
  14. Offline

    jythri

    Error was that SQL database wasn't found. Got past that. Got a database created and now I no longer get errors.

    However, Peristence doesn't seem to be working.

    What do you need to help debug that?

    Ooh. Okay, getting this error when a player logs in.

    Code:
    03:14:04 [SEVERE] Could not pass event PLAYER_JOIN to DispNameChanger
    java.lang.NullPointerException
            at me.captain.DispNameChanger.DNCPlayerListener.onPlayerJoin(DNCPlayerListener.java:30)
            at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:206)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:94)
            at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:95)
            at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:33)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  15. Offline

    captainawesome7

    Ahh, it is because the player isn't registered in the database, I fixed this in SimpleAdmin, but forgot about DispNameChanger, I will have fix out by tomorrow :)
     
  16. Offline

    jythri

    Thanks, Awesome!
     
  17. Offline

    jythri

    Any update?
     
  18. Offline

    captainawesome7

    @jythri sorry, in a minute :p

    @jythri Alright, updated :) You can leave the database their, it works. All you need to do is swap out the .jar and the new one won't error on player join anymore :)

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

    jythri

    Well, you fixed the error! Yay!

    Bad news: Still no persistence. My name is reset on login.

    However, the name in the database is now displayed as the join message.

    Which I don't want. :/ I have another plug-in that suppresses admin join messages.

    Thoughts?
     
  20. Offline

    captainawesome7

    @jythri You must have essentials or another conflicting plugin. If you have no plugins loaded, it works. My server works with this plugin and I don't have essentials. I used to, but I decided to stop using it because of the number of plugins that it conflicts with. If you can do without essentials, you can try CommandBook.
     
  21. Offline

    Kainzo

    BUG REPORT:
    Whenever I rename myself say... /rename Kainzo &9Awesomeguy
    I relog and it comes back as [Msg]&9Awesomeguy
    Instead of using &9 to use the blue color.
     
  22. Offline

    captainawesome7

    @Kainzo
    What other plugins do you have installed?
     
  23. Offline

    Kainzo

    Herochat & 40 others.
     
  24. Offline

    captainawesome7

    @Kainzo , Oh lol that could do it. It works with iChat, but I haven't tested it with Herochat. The &whatever works on vanilla, so I have no Idea why it wouldn't work for you.
     
  25. Offline

    QQCucumber

    @captainawesome7 Could you please add a /nick command to your plugin with its own permission node that allows anyone with the permission to change their own display name and no one elses?

    Furthermore, a command (/identify or /id for short perhaps) that you can either use on someone's username or display name, and it simply displays that player's username and display name. So assuming ghost27's display name is Tom, using /id Tom or /id ghost27 would tell you 'User Name: ghost27, Display Name: Tom'
     
  26. Offline

    captainawesome7

    I already added a /checkname, but i forgot to put it in the OP. Its dispnamechanger.check or .checkname idk. I will update it tomorrow and add /selfname newdispname (lots of other plugins use /nick)
     
  27. Offline

    QQCucumber

    Oh, cool. I do have a couple more requests though, hopefully they're not too difficult.

    Could you add a /namelist command that basically functions like most plugins /list except it'll prioritize display names over user names (perhaps prefixed with a tilde)?

    So instead of
    Online (2/20): QQCucumber, ghost27
    it's
    Online (2/20): QQCucumber, ~Tom

    If you're feeling particularly generous, an option to have /namelist show for someone when they log in would be nice too, but this isn't as important.

    Also, commands to delete display names, since I think if you rename someone back to their username it still counts as a display name. /delname and /selfdelname. Or perhaps this could just be what happens when you use /rename on a user without setting their new displayname, or using the /selfname without setting your new display name.
     
  28. Offline

    captainawesome7

    You can't delete somebody's display name. You can only set it to "", which would make it show up as null when you chat, depending on what chat plugin you have. If you didn't set a display name, your regular minecraft name IS your display name.
     
  29. Offline

    QQCucumber

    Well, by delete, I'm referring to 'unsetting' a display name.
     
  30. Offline

    captainawesome7

    @QQCucumber
    Unsetting somebody's name doesnt make sense either. Try resetting. Anyways. Making a playerlist of displaynames should be as easy as making an arraylist of player names. I can start it later today.
     
  31. Offline

    QQCucumber

    Lol, yeah, resetting. I've been operating on very little sleep, not so good with words right now. ;)
     

Share This Page