[INACTIVE][CHAT] Basic Name Changer [677]

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

  1. Offline

    gnftoxic

    NameChanger - Op controlled names.
    Version: v1.0.1-R2

    Like this plugin? Contribute to the developers :)

    Permissions are NOT integrated.

    This is a very basic plugin, implementing CraftBukkit's use of each players' Display Name. (Player.setDisplayName() + Player.getDisplayName())
    Administrators are allowed to use /setnick and /nick.
    All player custom names are saved in plugins/NameChanger/names.db - if this does not exist, it will automatically be created. On a proper server stop or plugin reload, it will save names, after every player name change, it'll save.
    Download NameChanger.jar (Version 1.0.1-R2)
    Source Code

    More information: http://projects.xenustats.com/wiki/index.php?title=NameChanger

    Command Usage:
    /setnick Player_Name [New_Player_Name] (/nick works too. This may conflict with other plugin(s).)
    Use only one parameter to reset the players' name.

    e.g. /setnick gnftoxic Overlord
    This will set my in-game chat name to "Overlord"

    /setnick gnftoxic
    This would set my name back to "gnftoxic"

    Changelog:
    Version 1.0.2 (Planned):
    • Permissions support and update to the latest Bukkit API (however, this should work without issue on the latest CraftBukkit)
    Version 1.0.1-R2:
    • Updated to CB #617
    • Removed extra debug line when writing data
    Version 1.0.1:
    • Updated to use new command system, onCommand(...)
    • Added lazier reset name method, /nick [name]
    • Upgraded bukkit support to #556
    Version 1.0:
    • First release
    • Local database implemented, simple storage in plugins/NameChanger/names.db
    • /setnick and /nick implemented.
    Known Issues:
    • None
     
  2. Offline

    Uniltiranyu

    i get it, but if i change a name, do i have to change the persons permissions name?
     
  3. Offline

    gnftoxic

    I have not tested this with Permissions, you should not have to though. I believe Permissions uses the regular player name, this only changes the display name. :)
     
  4. Offline

    SnowBoarder7

    I love you man.
     
  5. Offline

    Emalde

    This is fantastic and exactly what I've been searching for to take care of a few oddballs, thanks!
     
  6. Offline

    EvilSeph

    Please test your plugin with the latest Recommended Build (493) and update your release post accordingly as it is now a requirement of the submissions process, since the newest RB contains breakages.
     
  7. Offline

    gnftoxic

    Apologies, deleted my posts as I thought it said 492, but retested on 493, works perfectly.
     
  8. You may not be able to answer this, but will this mean that when I use commands from other plugins I can use these nicks? Or do I still have to use player names? For instance, Essentials /give command
     
  9. Offline

    gnftoxic

    I am not 100% sure, but I do believe it is your minecraft username, not the display name.
     
  10. Offline

    Lucy

    The nicknames seem to be resetting when someone dies on my server. I'm using server version 493, HeroChat v4.3.2, and version 1.0 of Basic Name Changer.
     
  11. Offline

    gnftoxic

    This is a bug in Bukkit, and has been reported. I'll have a work around later today.
     
  12. Offline

    gamerluke

    Does this only change the chat display name?
    Or can it be used for commands too?

    One of the players on my server has a long name and wishes to shorten it;
    Could they then use that nickname for commands?
    Example - /give 5 64 Nickname
     
  13. This would be really useful if it could be integrated into HeroChat... maybe i'll see if they can implement it :D
     
  14. Offline

    gnftoxic

    You cannot use this for commands, sorry.
    This bug seems to have been fixed by build #556.
    I'll take a look at HeroChat, never heard of it before, so... yeah lol

    1.0.1 has been released.
     
  15. Ah, yeah. I think the problem is running into the fact that Herochat filters the output, and puts in the colored prefixes/suffixes, and the player's name. I'm assuming that when your plugin is 'changing' the display name, HeroChat is just overwriting the changes in display.
    No worries :)
     
  16. Offline

    Chipmunk9998

    Hey, I was wondering if it was possible to change the name above the player?
     
  17. Offline

    QQCucumber

    It is not, and furthermore they'd lose their skin if you could.

    @gnftoxic, I have a request to make. Are you able to make this plugin CraftIRC compatible? By which I mean, it'll send the player's display name rather than their player name to the IRC channel?
     
  18. Offline

    gnftoxic

    I was actually going to experiment with CraftIRC today, after setting up my IRC network. I'll look at it. Thanks.
     
  19. Offline

    QQCucumber

    Any news?
     
  20. Offline

    gnftoxic

    I was reinstalling my OSes - sorry. I thought about it, and if I'm not mistaken, the author of CraftIRC would have to change from Player.getName() to Player.getDisplayName().
     
  21. Offline

    QQCucumber

    Hmm.. I know it's asking a lot, but I'm pretty sure it's open source, maybe you could fork it and make that change for me? :) I only ask because I'm pretty sure you'd use it too.

    Alternatively, I think what HeroChat does is it has you disable the events that have CraftIRC send messages back and HeroChat instead does it. So your name changer mod could do that.
     
  22. Offline

    werecat

    The only bug with this plugin is if I do the command,
    Code:
    /me say's hi
    It prints out
    instead of
     
  23. Offline

    gnftoxic

    I installed CraftIRC, so i'll experiment with it when I can.
    This only uses display names - this would be a CraftBukkit bug. Either you can report it, or I will.
     
  24. Offline

    ThomasJ

    Love this plugin. Breaks on latest RB however.

    Code:
    2011-03-30 23:16:35 [SEVERE] Could not load plugins/NameChanger.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:102)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:158)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:106)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:62)
            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.reflect.InvocationTargetException
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:98)
            ... 8 more
    Caused by: java.lang.VerifyError: class net.hailxenu.nch.npl overrides final method onPlayerJoin.(Lorg/bukkit/event/player/PlayerEvent;)V
            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(Unknown Source)
            at java.security.SecureClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.defineClass(Unknown Source)
            at java.net.URLClassLoader.access$100(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at net.hailxenu.nch.nch.<init>(nch.java:18)
            ... 13 more
    
    
     
  25. Offline

    Matty11

    it doesnt come up with a error but when I try to use /setnick or any commands it just showsup again in white letters on the server
     
  26. Offline

    ThomasJ

    Just a heads up from CB 617

    Code:
    13:17:28 [SEVERE] Nag author: '<NoAuthorGiven>' of 'NameChanger' about the following: onPlayerJoin has been replaced with a new signature, (PlayerJoinEvent)
    
    Which means it will probably break in the near future when they remove the depreciated function.
     
  27. Offline

    gnftoxic

    This has been updated to work with the new standards of #617, first post link updated.
     
  28. Offline

    MacVaultDweller

    Thank you for your work
     
  29. Offline

    anonymous

    @gnftoxic


    This plugin isn't workin for me :(

    What I type: [​IMG]

    What I get: [​IMG]

    No errors in console. Just whenever I put that it wont work :(
     
    thomas222 likes this.
  30. Offline

    sniperkillu

Share This Page