Inactive [GEN/INFO] WhoAreYou v0.3 - /who commands done properly [1337]

Discussion in 'Inactive/Unsupported Plugins' started by oliverw92, Apr 25, 2011.

  1. Offline

    oliverw92

    WhoAreYou - /who done properly!!
    [​IMG] Download v0.3 [1337]


    [​IMG]

    Knowing who is on your server is one of the most important things when you are a server moderator/admin. The basic playerlist most plugins provide lacks information. WhoAreYou can provide you with loads of information about your players with very simple commands.
    Preview (open)

    [​IMG]

    [​IMG]

    [​IMG]

    Features
    • Coloured usernames according to Permissions group prefix in /who
    • Find out who is in a certain world with /who <world>
    • Get information about a particular user with /who <player>
    • Configure aliases for your worlds to make it easier for your users
    • Works in console (only basic listing in console)
    Requirements
    • Craftbukkit #740
    • Permissions - without permissions you need to be op to use commands
    Installation
    Installation (open)

    1. Place WhoAreYou.jar in your plugins/ folder
    2. The plugin will auto create plugins/WhoAreYou/config.yml file when it runs
    3. Set up your permissions using the nodes below

    Config.yml
    config.yml (open)

    This is contained in plugins/WhoAreYou/config.yml. The main configuration in this file is world aliases. The server auto-creates this file and adds as many homes as are loaded at the time of server start as possible. You can then add your other worlds to it. World aliases are used when doing something like /home <world> - say you have an undersirable world name like creativeworld4, you can use world aliases to change it to something simple like creative for use in MultiHome commands. When the plugin creates the file it will look something like this:


    Code:
    aliases: world: world
    msg-online-on-join: true
    You can then customise it and add in your custom worlds like this:
    Code:
    aliases:     atrium1: atrium     survival1: survival     build4: build     pvp3: pvp     nether1: nether
    msg-online-on-join: true
    
    msg-online-on-join controls whether a player is messaged the player list when they join the server.

    Usage
    Usage (open)

    • /who <- Lists all online players
    • /who <world> <- Lists all players on specified world/alias
    • /who <player> <- Lists information about that player
    • You can use /list /online /listplayers /playerlist and /whois as aliases of /who

    Permission Nodes
    Permission Nodes (open)

    • whoareyou.list <- For basic /who
    • whoareyou.player <- For /who <player>
    • whoareyou.player.personal <- Shows IP and location in /who <player>
    • whoareyou.world <- For /who <world>


    Changelog
    Version: v0.3 [740]
    • Added whoareyou.player.personal node
    • Fixed suffix bug
    Version: 0.2 [740]
    • Added console support
    • Added group suffix in listings
    Version: 0.1.5 [733]
    • Fixed line colours
    Version: 0.1.4 [733]
    • Added leading line to /whois
    Version: 0.1.3 [733]
    • Fixed partial naming
    Version: 0.1.2 [733]
    • Added partial naming support for /who <player>
    Version: 0.1.1 [733]
    • Added command aliases /list /online /listplayers /playerlist /whois
    Version: 0.1 [733]
    • Plugin released
    Plugin originally created for MinecraftCC.com

    Checked against 733

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

    Plague

    Version ranges should only be used when necessary.
     
  3. Offline

    gilgatex

    I've been waiting SO LONG for a plugin like this. THANK YOU!

    Edit: NOOOOO 404 NOT FOUND!
     
  4. Offline

    MineralMC

    http://dl.dropbox.com/u/24279633/Bukkit/WhoAreYou/v0.1/WhoAreYou.jar

    @oliverw92 - Need to fix your download link.

    Also, a configuration open to disable the auto-/who when joining the server would be very useful.:)

    ----

    Can't seem to get this working. Any command I use just echo's "/who" - it does do the initial player list correctly, though. (even though that's the only portion of the plugin I don't want, haha)
     
  5. Offline

    gilgatex

    You are probably using Essentials (or similar) that is taking precedence.

    I had to crack open the Essentials.jar and disable 'who' to get it to work.
     
  6. Offline

    oliverw92

    Fixed

    Link fixed

    There is already a configuarion option to disable the auto /who :) Check config.yml

    Do you use essentials?
     
  7. Offline

    MineralMC

    Awesome. How I missed that, I have no idea.

    I use a custom commandbook, with the /online (/o etc.) and /whois stuff stripped out.
     
  8. Offline

    oliverw92

    Thats... odd. I use CommandBook too and it works fine. What CB build?
     
  9. Offline

    MineralMC

  10. Offline

    oliverw92

    I can't see anything. Can you test on a vanilla setup with my plugin, then build on your plugins from there?
     
  11. Offline

    MineralMC

    Yeah, will play around with it at some point tomorrow and drop another post in here.
     
  12. Offline

    Phinary

    Many of my members use other aliases like /list. Think you can make this cover all the essentials /who aliases?
     
  13. Offline

    oliverw92

    Yup that will be very easy. I'll do:

    /who /list /listplayers /online /playerlist

    Version 0.1.1 [733]
    • Added aliases
    @Shaun Bennett

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

    Phinary

    Thank you very much!

    Doesnt seem to overright essentials. I know I can just modify plugin.yml on essentials but anyway you can make it do that auto for the future users of this :p

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

    matjam

    Same problem with CommandBook. Worked around it by removing the who and whois commands from the plugin.yml for CommandBook. Really there needs to be a way for admins to disable a given command in a given plugin completely.
     
  16. Offline

    oliverw92

    Nope there is no way to do that. That is the issue with using plugins like essentials, and why I don't support plugins that do everything in one - it's not good for community plugin development. Essentials is a horrible idea in my opinion, it causes SO many issues with other plugins.
    Just customise your CommandBook download - you don't even need to edit the plugin.yml, it does it for you.
     
  17. Offline

    matjam

    Problem executing the "who" command on the console:-

    Code:
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin WhoAreYou v0.1.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
            at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.ColouredConsoleSender cannot be cast to org.bukkit.entity.Player
            at uk.co.oliwali.WhoAreYou.WhoAreYou.onCommand(WhoAreYou.java:57)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 6 more
    
     
  18. Offline

    NFFPokemon

    thank god :) ive been looking for this ever since vplayers stopped working :D
    this is great thx!
     
  19. Offline

    oliverw92

    It isn't designed to be used via console. But if you really want I could add that in?
     
  20. Offline

    matjam

    Yeah, it would be handy, thanks :) At work I can't run the client but I often keep a window open on the server console to keep an eye on things and like to be able to see who is on there.
     
  21. Offline

    oliverw92

    You know you can just type list in the console right?
     
  22. Offline

    MineralMC

    Seems to be working fine, now. Not sure what the problem was last night.

    I did update to the latest version, but as far as I know you didn't make any changes to anything other than the alises.

    Any chance of partial player name matching? Being able to "that" instead of ThatDudeWithTheDamnLongName would be a nice feature.

    Keep up the good work, Oliver.
     
  23. Offline

    oliverw92

    Sure i'll add that in

    Version 0.1.2 [733]
    • Added partial name support in /who <player>
    @MineralMC

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

    MineralMC

    Nice, thanks for the quick response! :)

    Uh ohhh!

    2011-04-27 18:29:08 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'whois' in plugin WhoAreYou v0.1.2
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    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)
    Caused by: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.RangeCheck(Unknown Source)
    at java.util.ArrayList.get(Unknown Source)
    at uk.co.oliwali.WhoAreYou.WhoAreYou.onCommand(WhoAreYou.java:75)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    Same as before, CB733. The name matching stuff doesn't work either; "No players (out of 7) matched 'min'.

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

    oliverw92

  26. Offline

    MineralMC

    One more - a tweak more than anything - can the /who result be contained within a row of -'s or *'s - it gets a bit confusing when /who'ing multiple players at once:

    Player:
    IP:
    Location:
    World:
    Health:
    Group:
    Op:
    Player:
    IP:
    ...

    Could be:
    Player:
    IP:
    Location:
    World:
    Health:
    Group:
    Op:
    *****************************
    Player:
    IP:
    ...
     
  27. Offline

    oliverw92

  28. Offline

    MineralMC

    Thanks. That's much cleaner. It is missing the green on the right dashes, though.

    <green>-------------- <grey> Who ----------------------------
     
  29. Offline

    oliverw92

    Servers me right for not testing it :p
     
  30. Offline

    Raspberry

    I'm running CraftBukkit 733...

    Doesn't seem to matter what I type (who, list, et al)
    The plugin returns:
    <the command I typed> [world|player] [world]

    i.e.

    If I want to see who's logged in:

    /listplayers

    returns:

    /listplayers [world|player] [world]

    If I type:

    /whois aplayername

    The plugin returns:

    /whois [world|player] [aplayername]
     

Share This Page