Inactive [CHAT] AdminChat v1.3.1 - Private chatting for OPs [740] [Permissions]

Discussion in 'Inactive/Unsupported Plugins' started by Infernus, Mar 14, 2011.

  1. Offline

    Infernus

    AdminChat

    Version: v1.3.1

    With this little plugin ops or granted people by permissions are able to chat privately with eachother. The text will only be broadcasted to ops or granted people and the console itself, with a little prefix in front of the message.

    Features (open)

    Private chatting for ops or granted people by permission
    Setting the color of the Adminchat
    Changing the channel name of Adminchat

    Codes (open)
    /a on - toggles Adminchat chat mode on
    /a off - toggles Adminchat chat mode off
    /a <message> - normal Adminchat message
    /a setcolor <color> - sets color of adminchat to specified color
    /a setchannelname <new name> - sets new channel name for adminchat

    Additional usable plugins (open)
    Permissions
    Craftbukkituptodate

    Usage (open)

    Adminchat chat mode:

    By turning Adminchat chat mode on, you'll send all messages to adminchat instead of normal chat, you can turn this off by typing /a off. Note you can also just use /a <your message here> which can be useful for if you would only like to tell 1 sentence.

    Changing colors:

    You can simply change the color of the adminchat by typing /a changecolor <supported color> - you can find all supported colors in the spoiler below.

    Supported colors (open)
    red
    darkred
    yellow
    gold
    green
    darkgreen
    aqua
    darkaqua
    blue
    darkblue
    lighpurple
    darkpurple
    gray
    darkgray
    white
    black

    Permission nodes (open)
    AdminChat.write - allows specified player to only write Adminchat messages.
    AdminChat.receive - allows specified player to only receive Adminchat messages.
    AdminChat.use - allows specified player to receive and write in adminchat.
    AdminChat.modify - allows specified player to modify the color of adminchat.
    AdminChat.everything - allows specified player to do everything in Adminchat.

    Screenshot (open)
    [​IMG]

    Changelog (open)
    Version 1.3.1
    ** Added compatibility with other chat plugins
    ** Changed plugin settings directory
    ** Fixed several bugs
    Version 1.3
    ** Changed some no-access messages
    ** Added channel name functionality
    Version 1.2
    ** Added functionality to switch chat mode to adminchat chat mode
    ** Merged command with general command itself
    Version 1.1
    ** Added permissions support
    ** Added ability to select other colors
    Version 1.0
    ** Release of AdminChat


    Download AdminChat | Download Source

    I would appreciate feedback!
     
    Hackuss and XDTobi like this.
  2. Offline

    tyman231

    Nothing is working. I placed the .jar in my plugins file and it doesn't work! Please help!
     
  3. Offline

    Infernus

    Did it give any errors or messages?
     
  4. Offline

    tyman231

    No, I put th e folder and the .jar in the plugins foler then restarted and when i try a command like "/a" nothing happens.
     
  5. Offline

    Infernus

    Not even a message or error from Adminchat when you started the server?!
     
  6. Offline

    Imitation

    The error from earlier

    Code:
    2011-03-24 00:11:10 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'a' in plugin AdminChat v1.3
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:229)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:645)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:608)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:602)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:76)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
            at me.Infernus.AdminChat.AChatPlugin.onCommand(AChatPlugin.java:88)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
    This occurs if you just type /a and hit enter. Not a big deal. In game it says: An internal error occurred attempting to perform this command.
     
  7. Offline

    Infernus


    Ha, thanks, I will now take a look into this, shouldn't take too long to prevent that..

    Edit: Updated and prevented, thanks for reporting this issue! ;)
     
  8. Offline

    Imitation

    We found that messages sent in game are duplicated in the console:

    18:17:09 [INFO] <§cWHOPPER§f> Adminchat: ignor that a bit just testing
    18:17:09 [INFO] <§cWHOPPER§f> Adminchat: ignor that a bit just testing
    18:17:23 [INFO] <§cdrguild§f> Adminchat: no worries
    18:17:23 [INFO] <§cdrguild§f> Adminchat: no worries

    Not a big deal again... more so cosmetic.

    Also just another hopeful request to have the AdminChat folder in /plugins instead of the root game directory :)
     
  9. Offline

    Kartus

    its working fine on 556# even with EssentialsChat and GroupManager.

    Request: please hold the bukkitpluginguidelines: could you please move your root/AdminChat folder into root/plugins/AdminChat like all plugins?
     
  10. Offline

    tyman231

    No :/
     
  11. Offline

    Infernus

    I have seriously no idea how, unless your console is a player. Does it also log double?

    Done that, will soon upload newer version.

    Are other plugins running fine? Do you even use bukkit to run your server and what version? Where have you put the plugin? Could you give me a log?
     
  12. Offline

    tyman231

    It is working now, I was running an outdated version of Bukkit! Thanks!
     
  13. Offline

    xlilcasper

    How about a command so that all chat from admins go to admin chat instead of normal, then a command to send chat to the normal chat. Something like

    /a auto on - Turns on auto admin chat mode. All text now goes to the admin chat
    /a auto off- Turns auto admin chat mode off. Text now goes to chat as normal
    /an - Short for Admin Normal, If in auto mode, sends chat to regular chat.

    This would save me from typing /a before every sentence if I"m mostly just talking in admin chat.
     
  14. Offline

    Infernus

    I knew it was something like that! If you encounter any other issues, just let me kow ;)

    Ha, I guess you meant:

    /a on
    /a off
    /a <message>

    In other words, it already exists ;)
     
  15. Offline

    Revenger

    I'm the other admin drguild in game yep it logs double to console.log.

    2011-03-28 00:31:58 [INFO] [AdminChat] Version 1.3 is enabled.
    2011-03-28 00:31:58 [INFO] [AdminChat] Using color 'aqua' as for Adminchat.
    2011-03-28 00:31:58 [INFO] [AdminChat] Using channel name 'Adminchat' for Adminchat.

    2011-03-28 00:32:12 [INFO] <?cdrguild?f> Adminchat: /a is fixed
    2011-03-28 00:32:12 [INFO] <?cdrguild?f> Adminchat: /a is fixed
    2011-03-28 00:32:20 [INFO] <WHOPPER> Adminchat: cool
    2011-03-28 00:32:20 [INFO] <WHOPPER> Adminchat: cool
    2011-03-28 00:32:28 [INFO] <WHOPPER> Adminchat: easier for u lol
    2011-03-28 00:32:28 [INFO] <WHOPPER> Adminchat: easier for u lol
    2011-03-28 00:32:31 [INFO] <?cdrguild?f> Adminchat: he asked for log so ill post it
    2011-03-28 00:32:31 [INFO] <?cdrguild?f> Adminchat: he asked for log so ill post it
    2011-03-28 00:32:53 [INFO] <?cdrguild?f> Adminchat: need log splitting
    2011-03-28 00:32:53 [INFO] <?cdrguild?f> Adminchat: need log splitting
     
  16. Offline

    Infernus

    Damnit, I'll try something new as soon as it is updated to 1.3.1, you will hear from me.
     
  17. Offline

    Infernus

    Just a quick test I did here, still works fine with Bukkit #602.
     
  18. Offline

    cheepz

    does this work for build 612?
     
  19. Offline

    Lookatmego

    617?does this work with that?
     
  20. I installed on a MC1.4 and CB 612 build and it works just fine.

    And now it is working on 617 with no issues.
     
    Infernus likes this.
  21. Offline

    M0rti

    Well ...after updating to 1.4 and CB617 it works for me too :) Thanks a lot for this plugin ...i love it :)

    Edit: btw. it works with ichat now ....no problems :)
     
  22. Offline

    Infernus

    Confirmed! Will soon add iChat message format support.
     
    M0rti likes this.
  23. I've edited current version (working on CB#617, compiled with CB#602; dev-B#495) to repair bug when you cant write with .write permission only.
    I've added notify message about sending something to AdminChat when you havent .receive permission. Here is: Source and Jar-Only. Good plugin, thanks for that!
     
  24. Offline

    BindMind

    I'm really looking forward to this :D
     
  25. Offline

    Infernus

    That's what I actually also already did for 1.3.1 though I never noticed a bug with ".write", I will take a look into this, thanks for putting your time into this plugin :)
     
  26. In function "canWriteAdminChat" you were returning "p.has(perm.use)" instead of "true". What took me short time to find ;) I am sure, you already know that too. I am using this addon to simulate "GM-tickets". I needed let common players to write to AC, but not to read. And that wasn't possible.
    Now I am thinking about logging adminchat to seperate log file.txt. Again thanks for all your plugins.
     
  27. Offline

    Infernus

    In my opinion the code is a bit messy yes. But hey, would you mind joining this project? Makes you able to update this, add new features and things like that. I can give you access to my dropbox if you would want to.
     
  28. Offline

    Infernus

    Adminchat now supports chat formatting plugins such as iChat, thanks to Drakia for this :)

    This plugin should now be compatible with any other chat application.

    Because of that compatibility I changed the message format also a bit, and also added messages when someone tries to access something without permissions to or non-op if you do not run permissions.

    [​IMG]

    As you can see the [ {ChannelName} ] will now always be before your message ;)

    Also I've changed the directory of where the settings are getting stored (plugins/Adminchat/config.yml)

    Let me know if there are any issues!
     
  29. Offline

    KiloWhiskey

    No problems, but can you let us configure what the 'channel name' looks like? Thanks.
     
  30. Offline

    Infernus

    I think you missed this ;)

     
  31. Offline

    KiloWhiskey

    You're a hell of a man. Not much of a woman, but a hell of a man. :D Thanks.

    Edit: Just ran several tests and I had to come here to say this plugin is stellar. I love it man, great work.
     

Share This Page