[INACTIVE][GEN] AdminsOnline v.0.9 - List online admins [617]

Discussion in 'Inactive/Unsupported Plugins' started by TAT, Feb 10, 2011.

  1. Offline

    TAT

    <font color="rgb(20, 20, 20)">AdminsOnline - List online admins:</font>
    <font color="rgb(20, 20, 20)">Version: v0.9</font>

    <font color="rgb(20, 20, 20)">With this plugin the players can see which admins there is online.</font>
    <font color="rgb(20, 20, 20)">You can also look a player up using /adminsonline Username (example /adminsonline TAT)</font>
    <font color="rgb(20, 20, 20)">You can use the command /adminsonline and, if set, the alias in config (default: /admins) [TEMPORARY REMOVED FROM V.0.7]</font>
    <font color="rgb(20, 20, 20)">You can reload configuration using /reloadao.</font>
    AdminsOnline support Permissions, set your admin group in config (default: Admins)

    Features:
    * Show which admins there is online
    * Lookup a specific player to see if the player is admin and if, show if the admin is online
    * Toggle OP lookup
    * Toggle show admins online on login
    * Permissions

    - * Toggle Permissions lookup
    * Multiple groups with different colors

    Download and Source:
    AdminsOnline v.0.9

    Show Spoiler
    <font color="rgb(16, 97, 179)">AdminsOnline v.0.8</font>
    <font color="rgb(16, 97, 179)">AdminsOnline v.0.7</font>
    <Edit by Moderator: Redacted mediafire url>
    <font color="rgb(16, 97, 179)"><Edit by Moderator: Redacted mediafire url>
    <font color="rgb(16, 97, 179)"><Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>
    <Edit by Moderator: Redacted mediafire url>

    Sourcecode @ GitHub

    Todo:
    * Add possibility for more aliases

    Configuration:


    UseOP - Use OP to check for admins (Default: true)
    UsePermissions - Use Permissions to check for admins [Require Permissions Plugin] (Default: true)
    ShortCommand - Add additional command to use aside /adminsonline (Default: no additional command) [TEMPORARY REMOVED FROM V.0.7]
    PermissionsGroups - Setup admin groups for Permissions (Default: No groups)
    PermissionsColors - Setup colors for the different groups (Default: No colors)

    Show Spoiler
    Code:
    ##
    #Plugin: AdminsOnline
    #Author: TAT
    #CONFIGURATION
    ##
    
    ##
    #Config: ShowInfo
    #Doing: Activate to output settings to console
    #Example: true = activate // false = deactivate
    ##
    ShowInfo: true
    
    ##
    #Config: UseOP / UsePermissions
    #Doing: Here you can activate OP and/or Permissions
    #Example: true = activate // false = deactivate
    ##
    UseOP: true
    UsePermissions: true
    
    ##
    #Config: ShowOnLogin
    #Doing: Activate show admins online on login
    #Example: true = activate // false = deactivate
    ##
    ShowOnLogin: true
    
    ##
    #Config: ShortCommand
    #Doing: Here you can type a short command for users to use aside with /adminsonline
    #Example: /admins
    ##
    ShortCommand: "/admins"
    
    ##
    #Config: PermissionGroups
    #Doing: Here you can setup the groups in Permissions that are registered as admins by AdminsOnline
    #       Every group is setup like this:
    #           Groupname in Permissions: Shown name
    #       Remember comma between groups and write the groups between the { and }.
    ##
    PermissionGroups: {
            OwnerGroup: Owners,
            SupAdminGroup: Super-Admins,
            AdminGroup: Admins,
            SupModeratorGroup: Super-Moderators,
            ModeratorGroup: Moderators
    }
    
    ##
    #Config: PermissionColors
    #Doing: Here you can setup colors for the groups set in PermissionGroups
    #       Every group is setup like this:
    #           Groupname in Permissions: Color
    #       Remember comma between groups and write the groups between the { and }.
    #Colorcodes:
    #       aqua
    #       black
    #       blue
    #       dark_aqua
    #       dark_blue
    #       dark_gray
    #       dark_green
    #       dark_purple
    #       dark_red
    #       gold
    #       gray
    #       green
    #       light_purple
    #       red
    #       white
    #       yellow
    ##
    PermissionColors: {
            OwnerGroup: gold,
            SupAdminGroup: dark_red,
            AdminGroup: red,
            SupModeratorGroup: dark_aqua,
            ModeratorGroup: aqua
    }


    Changelog:
    Version 0.9
    * Updated to latest recommended CraftBukkit [#617]


    Show Spoiler
    Version 0.8
    * Fixed when no PermissionsColors set for an admin group

    Version 0.7
    * Updated to latest bukkit [#493]
    * Temporary disabled ShortCommand/AliasCommand

    Version 0.6

    * Added possibility to show admins online on login - toggleable in config
    * Fixed stupidly long constructor

    Version 0.5.3

    * Fixed stupidly long constructor
    * Fixed support for Permissions 2.1
    * Fixed possibility to lookup offline users - again again
    * No search for Permissions when reloading configuration if Permissions already is found

    Version 0.5.2

    * Fixed colors if using both OP and Permissions

    Version 0.5.1

    * Fixed possibility to lookup offline users - again

    Version 0.5

    * Added config to activate/deactive OP, Permissions and ConsoleOutput
    * Added support for multiple Permissions groups with different colors

    Version 0.4

    * Added support for Permissions
    * Added /reloadao command to reload the configuration
    * Fixed possibility to lookup offline users

    Version 0.3

    * Removed aliases and added config to set your own alias (ShortCommand)

    Version 0.2

    * Added aliases /adminon, /onlineadmin, /onlineadmins

    Version 0.1

    * Release version

    - * Show admins online
    * Check specific admin using /adminsonline Username
    * Show if the specific admin really is an admin (using OP)
     
    Last edited by a moderator: Dec 15, 2016
  2. Offline

    TAT

    Is it possible to get response of what people thinks of my plugin, please?
    Is there any feature you miss from this plugin?
     
  3. Offline

    SAMDAN

    So does it always include OPs?
    --- merged: Feb 17, 2011 1:53 PM ---
    If it does, I would like a way to de-activate using OPs for it.
     
  4. Offline

    TAT

    Yes, right now it will always include OPs.
    If OP fails and Permissions is found, it will check for Permissions.
    I will add that for next version
     
  5. Offline

    SAMDAN

    Thank you. Most ppl like to ignore me.
     
  6. Offline

    TAT

    You're welcome [​IMG]
    If it goes after plan, it should be ready tomorrow (I have forgotten my source code at home [​IMG])
     
  7. Offline

    Goblox

    I haven't even installed yet, if it's not already present, could you make it so it could show multiple groups? Mods, Admins, Super-Admins, Owner?

    Also a switch to ignore OP would be nice.
     
  8. Offline

    TAT

    I'll put that on the list for the next version :)
    I was thinking of config for multiple groups like this.
    Code:
    Permission-groups:
         Owners: {Owner-Group}
         Sup-Admins: {Super-Admin-Group}
         Admins: {Admin-Group}
         Sup-Moderators: {Super-Moderator-Group}
         Moderators: {Moderator-Group}
    This way, it should also be possible to set your own name for the groups and add more Groups.

    Would you also want different colors for the different groups?
     
  9. Offline

    Goblox

    I'm not sure I'd bother. There are already a handful of good plugins that do that. permissions allows you to put colors in the Alias for the group - so long as it uses those aliases I think you are good.

    -EDIT; Oops, I didn't look at the code. Yeah it would be cool to allow the use of color on the list. ...Or just make it pull Alias from Permissions and drop the static definition in your code.
     
  10. Offline

    TAT

    I'll see what I can do :)
     
  11. Offline

    SAMDAN

    Thanks.
     
  12. Offline

    TAT

    New version is now out!

    Version 0.5
    • Added config to activate/deactive OP, Permissions and ConsoleOutput
    • Added support for multiple Permissions groups with different colors
    --- merged: Feb 19, 2011 1:07 PM ---
    Fix version is now out!

    Version 0.5.1
    • Fixed possibility to lookup offline users - again
     
  13. Offline

    grapeman

    hi, thanks for the plugin - i'm liking the ideas :)

    I am however having a problem with getting it to work. here is the log:

    Code:
    SEVERE: Could not pass event PLAYER_COMMAND to AdminsOnline
    java.lang.NullPointerException
            at com.bukkit.TAT.AdminsOnline.AdminsOnline.playerColor(AdminsOnline.jav
    a:156)
            at com.bukkit.TAT.AdminsOnline.AdminsOnlinePlayerListener.onPlayerComman
    d(AdminsOnlinePlayerListener.java:76)
            at org.bukkit.plugin.java.JavaPluginLoader$5.execute(JavaPluginLoader.ja
    va:144)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:60)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:214)
            at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:616)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:589)
            at net.minecraft.server.Packet3Chat.a(SourceFile:24)
            at net.minecraft.server.NetworkManager.a(SourceFile:232)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:317)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:232)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-02-20 13:22:34 [INFO] PLAYER issued server command: adminsonline
    2011-02-20 13:22:34 [INFO] Unknown console command. Type "help" for help.
    i'm using the defualt config. Could you recommend anything?
     
  14. Offline

    TAT

    Are you using Permissions and/or OP?
    Is the player only OP and not in a admin/moderator group in the Permissions config?
    --- merged: Feb 20, 2011 9:02 PM ---
    Think I have found the bug.

    Fix will be out in couples of minutes.
    --- merged: Feb 20, 2011 9:18 PM ---
    New fix version is now out!

    Version 0.5.2
    • Fixed colors if using both OP and Permissions
     
  15. Offline

    TAT

    Sourcecode now available on GitHub
    --- merged: Feb 24, 2011 10:53 PM ---
    Version 0.5.3
    • Fixed stupidly long constructor
    • Fixed support for Permissions 2.1
    • Fixed possibility to lookup offline users - again again
    • No search for Permissions when reloading configuration if Permissions already is found
     
  16. Offline

    gilliganxl

    should look into having this plugin in tell the player when he logs in what admins and/or Ops are on.
     
  17. Offline

    TAT

    I'll write that on the todo list
    --- merged: Feb 28, 2011 4:40 PM ---
    Version 0.6 out!

    Changelog:

    • Added possibility to show admins online on login - toggleable in config
    • Fixed stupidly long constructor
     
  18. Offline

    Benjamin_Price

  19. Offline

    TAT

    I'm working on an update.
    I'm just having some problems with the new way on the commands, so I'm waiting for response on how to do it the right way.

    It will be out as soon as possible.

    EDIT: As a warning, ShortCommand will be temporary deactivated.
    --- merged: Mar 4, 2011 4:16 PM ---
    Version 0.7 out!

    Changelog:
    • Updated to latest bukkit [#493]
    • Temporary disabled ShortCommand/AliasCommand
     
  20. Offline

    Black_Jack

    With the last CB and your plugin:
    Code:
    2011-03-08 07:38:17 [SEVERE] Could not pass event PLAYER_JOIN to AdminsOnline
    java.lang.NullPointerException
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnline.playerColor(AdminsOnline.java:185)
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnlineWorker.showAdminsOnline(AdminsOnlineWorker.java:33)
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnlineJoinExecutor.onPlayerJoin(AdminsOnlineJoinExecutor.java:22)
    	at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:162)
    	at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
    	at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:98)
    	at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:87)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:68)
    	at net.minecraft.server.Packet1Login.a(SourceFile:46)
    	at net.minecraft.server.NetworkManager.a(SourceFile:230)
    	at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:34)
    	at net.minecraft.server.NetworkListenThread.a(SourceFile:87)
    	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)
    2011-03-08 07:38:23 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'adminsonline' in plugin AdminsOnline v0.7
    	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:183)
    	at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:619)
    	at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:582)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:576)
    	at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    	at net.minecraft.server.NetworkManager.a(SourceFile:230)
    	at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    	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.NullPointerException
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnline.playerColor(AdminsOnline.java:185)
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnlineWorker.showAdminsOnline(AdminsOnlineWorker.java:33)
    	at dk.earthgame.TAT.AdminsOnline.AdminsOnlineCommandExecutor.onCommand(AdminsOnlineCommandExecutor.java:64)
    	at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    	... 12 more
    
    Default config, just renamed the AdminsGroup to Admins
     
  21. Offline

    beecub

    A fix would be great. Wanna use it on our Server.
     
  22. Offline

    TAT

    Have you also renamed AdminsGroup to Admins in the configs under PermissionsColors?
     
  23. Offline

    Black_Jack

    YAY, thanks a lot)
     
  24. Offline

    TAT

    Version 0.8 out!

    Changelog:
    • Fixed when no PermissionsColors set for an admin group
     
  25. Offline

    firehead07

    This work on 1.4 yet?
     
  26. Offline

    TAT

    Version 0.9 out!

    Changelog:
    • Updated to latest recommended CraftBukkit [#617]
     
  27. Offline

    Travis_Hironak

    I was using OnlineList to check players online but it's currently not up-to-date so I tried AdminsOnline which works great. But I have a few requests, if it's possible :

    - Adding an option to change the "X online admin" message (I use this plugin to show all players online).
    - Maybe making a command for all players and another one for admins only.
    - And adding per world players list like :

    World1: Admin1, Moderator1, ...
    World2: Admin2, Player1, ...
    ...


    Thanks in advance. ;)
     
  28. Offline

    TAT

    This shouldn't be that hard to include into AdminsOnline :)
    Wouldn't it be strange to have AdminsOnline, that shows all users?
    When you see the name AdminsOnline, it pretty much say that it only shows admins online.
    I think if I should make something like this, it should be another plugin.
    Great idea, will see what I can do when I get time :D
     
  29. Offline

    Travis_Hironak

    That's what I was thinking too, but that would be very convenient.

    Cool, thanks :).
     
  30. Offline

    Ben91

    Great idea about showing all users. Need a plugin like this. +1

    Thanks.

    ++
     

Share This Page