[MECH/GEN/ADMN] WhosThere 1.4.0 - Intelligent Who Listing + Whois + Color Names [1337]

Discussion in 'Inactive/Unsupported Plugins' started by Sleaker, Jul 5, 2011.

  1. Offline

    Sleaker

    WhosThere
    Version: 1.4.0

    PLEASE GO TO THE NEW SITE: Here
    At the core WhosThere is a simple Who plugin. What makes it different is how it hooks with other plugins. I made this plugin because I wanted my users to have colorized names based on their permission group along with being completely unable to see if Certain admins were online if an Admin was in 'stealth login' mode.

    Show Spoiler

    WhosThere now Requires Vault!
    Source: Github!

    Features:
    • Colorize Names based on Prefix
    • colored output works to console
    Permission Nodes:
    whosthere.who - Allows users to show who's online
    whosthere.admin - Allows a user to /whois <playername>
    Configuration Example:
    Allows you to Toggle Always displaying stealthed players regardless of permission nodes, and to toggle colored prefixes on/off
    Code:
    use-prefix: false
    use-color-option: true
    color-option-name: whocolor
    WhoColor/Prefixes support the &# color codes listed on the wiki here.

    Changelog:
    Version 1.3.2
    • Reduced the maximum characters per-line to improve auto-line-wrapping
    Version 1.3.1
    • Fixed internal reg-ex issue with line-wrapping
    Version 1.3
    • Text-Wrap!
    • Code cleanup
    Version 1.2
    • Now using Vault for permission hooking
    Version 1.1
    • Added option to use a different info node than prefix. See new configuration example
    • new command /whois <name> - limited to admins 0 shows IP/Location of a player
    • New Functions!
    • /who <name> - attempts to match the playername with all online players. any player name that contains the string will be listed.
    • /who <world> - lists all players on the specified world.
    Version 1.0
    • initial release
     
  2. Offline

    hofec

    @Sleaker

    Ouch man .. link is down :X [sheep]
     
  3. Offline

    BladeTec

    @Sleaker

    The link is broken. Looks cool though ! Hope you put it back up :)
     
  4. Offline

    monir

    my name are still there when typing /who
    whats wrong?
     
  5. Offline

    andune

    Link still down. Fortunately github is reliable and I appreciate you posting source, and kudos for even including an ant script for building. :) I'll use that for now. Perhaps post/link a copy to dropbox as a backup in case the primary link is down?
     
  6. Offline

    dm_studios

    link works for me, however, ever since the plugin was updated to 1.2.0 it has stopped working, I'm running bukkit RB1000 as well as administrate 1.3.0 and vault. whenever I try /online (or any of the alias's) I get an internal server error.

    example:
    Code:
    2011-07-29 16:32:17 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'online' in plugin WhosThere v1.2-b6
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserPrefix(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        at net.milkbowl.vault.permission.plugins.Permission_Permissions.getPlayerPrefix(Permission_Permissions.java:348)
        at net.milkbowl.vault.permission.Permission.getPlayerPrefix(Permission.java:437)
        at com.sleaker.WhosThere.WhosThere.prefix(WhosThere.java:159)
        at com.sleaker.WhosThere.WhosThere.colorize(WhosThere.java:268)
        at com.sleaker.WhosThere.WhosThere.whoLimited(WhosThere.java:204)
        at com.sleaker.WhosThere.WhosThere.onCommand(WhosThere.java:81)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    Looking at the error i'm guessing this issue is caused by a fault with permissions? if it helps I'm using latest PermissionsBukkit with SuperPermsBridge and mchat.

    Any idea how to fix this?

    Also just noticed the changelog hasn't been updated for 1.2.0

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

    fugue2005

    what is vault?
     
    Oscarius likes this.
  8. Offline

    PhotonLance

    dont work with commandbook (((

    not hide stealth players
     
  9. Offline

    Sleaker

    Yes it has... Also I in no way support SuperPerms/BukkitPerms. If they don't provide methods to stay backwards compatible with Option Nodes go complain to them about cutting features that people obviously want.

    @PhotonLance - CommandBook has a who command, if you try to use it with command book then you may be using it's who instead of this one. CommandBook supports a custom creator to disable certain commands, you'd need to use that and disable the who command for WhosThere to work.

    A Permission/Econ backend API similar to register.

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

    JagerPrime

    Any idea what's going on here? Happens whenever a player sues /who or even when i use who in console. Gives players an odd error when they use it. Disabled for now.

    Running newest administrate, vault, whosthere and spout.

    Any form of help would be most welcome. =D

    Code:
    2011-08-09 05:55:55 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin WhosThere v1.3.1-b10
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:312)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:480)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:465)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoSuchMethodError: com.nijiko.permissions.PermissionHandler.getUserPrefix(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
        at net.milkbowl.vault.permission.plugins.Permission_Permissions.getPlayerPrefix(Permission_Permissions.java:348)
        at net.milkbowl.vault.permission.Permission.getPlayerPrefix(Permission.java:437)
        at com.sleaker.WhosThere.WhosThere.prefix(WhosThere.java:162)
        at com.sleaker.WhosThere.WhosThere.colorize(WhosThere.java:248)
        at com.sleaker.WhosThere.WhosThere.whoCommand(WhosThere.java:218)
        at com.sleaker.WhosThere.WhosThere.onCommand(WhosThere.java:90)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 6 more
    
     
  11. Offline

    Sleaker

    What Permissions are you using?
     
  12. Offline

    JagerPrime

    2.7.4 (Phoenix)
     
  13. Offline

    Sleaker

    Redownload the latest version of Vault - P2 functionality was removed a while back - and I ended up just re-adding it back into vault - also Post which bXXX version of Vault you're using. Which means it may not be 100% bugfree yet as I don't have a P2 setup to test it with 100%
     
  14. Offline

    JagerPrime

    1.0.0dev -b13 was what I was running.

    Grabbed newest version, is now 1.0.0dev-b14

    We seem to be good now. Thanks so much, and sorry for using a slightly outdated permissions. D=. I do play to convert to 3, I've just been lazy as of late.
     
  15. Offline

    Sleaker

    I'd suggest going to PEX as it can convert from P2 and is much more actively developed.
     
  16. Offline

    andune

    I'll secomd that. Spent a long time looking at Perm3, trying to work around bugs in promotion tracks, etc. Installed PEX, follwed the few simple instructions to convert on the wiki and I was up and running in 30 seconds. PEX has direct support from a number of plugins, but is also Perm2 compatible as well as Superperms compatible now, too.
     
  17. Offline

    JagerPrime

    =O Well then thanks for the advice!

    =D
     
  18. Offline

    AndyFox42

    I just moved my world to a new server and am in the process of loading plugins. Currently, I have loaded CommandBook (with the /who command removed by their customizer) , Vault, Permissions 3.1.6, Worldedit, Administrate, and this plugin. My groups.yml file for permissions has a prefix for each player group, and they appear in these colors on the /list. In the chat log, however, they do not. Is that normal behavior (meaning I need another plugin to make the colors show up in chat) or no?
    ...

    EDIT: Tested this. I was doing /fakeout and players could still see me in the list, but when I did /stealth instead I dropped off the list. Disregard second half of my post.
     
  19. Offline

    Sleaker

    @AndyFox42 - exactly, Fakeouting just sends a spoofed message saying you logged out, nothing more. It's not going to hide you from the listing. Stealth is what hides you from players view and from /list.

    And yes, you need a seperate plugin for colored chat. I'd suggest iChat with your setup.
     
  20. Offline

    Kane

    @Sleaker is using your dev builds fine or do you keep things broken a lot?

    Thanks for the great plugin!
     
  21. Offline

    Sleaker

    WhosThere auto-builds when Vault gets updated. So the dev builds don't really do anything except make sure it's backwards compatible with the Permission backend. Since WhosThere is extremely light, I promote every significant build (ones where I actually make changes)
     
    Kane likes this.
  22. Offline

    Asphodan

    @Sleaker
    The build that allows for auto-/Whoing on login, does not have its config file updated.

    Nothing to add True to, to make it work.
     
  23. Offline

    Kane

    @Sleaker not sure how this plugin works for making the admin stealth. I have the permissions correct not sure if there is a stealth command but I'm using this amazing plugin that be nice if yours would work with it:

    VanishNoPacket: http://forums.bukkit.org/threads/admn-sec-vanishnopacket-1-4-invisibility-made-easy-1060.31960/



    permissions normal users:
    Code:
        Member:
            default: true
            prefix: '&b'
            suffix: '&f'
            worlds:
                build:
                    permissions:
                    - whosthere.who


    permissions admin:
    Code:
        Admin:
            inheritance:
            - HeadModerator
            prefix: '&4'
            suffix: '&f'
            worlds:
                build:
                    permissions:
                    - whosthere.admin
                    - vanish.silentjoin
                    - vanish.vanish
                    - vanish.see
                    - vanish.nopickup
                    - vanish.nofollow
                    - vanish.preventincomingdamage
                    - vanish.preventoutgoingdamage

    Config:
    Code:
    use-prefix: true
    show-stealthed: false
    color-option-name: namecolor
    use-color-option: false
    display-on-login: false
     
  24. Offline

    Sleaker

    Kane - WhosThere only hooks Administrate currently. But I'm thinking of incorporating the spout features of VanishNoPacket.

    it should auto add 'display-on-login: false'

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

    Kane

    only hooks Administrate currently? Is that another plugin or a permission. I don't mind if there was another command I would have to use where I login and it keeps me offline till I type in something like /who show or something. Right now I just like to be invisible as possible hehe.

    But anything you can do would be wonderful :)
     
  26. Offline

    Asphodan

    Should does not necessarily mean that it Does.
     
  27. Offline

    Sleaker

    Were you running the latest recommended build or were you running the dev build? Cause you need at least v1.3.3 to have the option. and it *will* auto-add itself to the config.
     
  28. Offline

    Kane

    less being rude :p

    @Sleaker keep up the work I'm excited!
     
  29. Offline

    poiuyt580

    Code:
    23:34:26 [SEVERE] Error occurred while enabling Administrate v1.3.2-b32 (Is it up to date?): null
    java.lang.NullPointerException
            at net.milkbowl.administrate.Administrate.setupDependencies(Administrate.java:96)
            at net.milkbowl.administrate.Administrate.onEnable(Administrate.java:46)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    23:34:26 [INFO] LWC: Loaded 135 locale strings (0 overrides)
    23:34:26 [INFO] LWC: Permissions API: BukkitPermissions
    23:34:26 [INFO] LWC: Currency API: NoCurrency
    23:34:26 [INFO] LWC: Loading SQLite
    23:34:26 [INFO] LWC: Using: Native
    23:34:26 [INFO] LWC: Precached 0 protections.
    23:34:26 [INFO] LWC: At version: 3.31-git-LWC-b9ea01e8c2f66480ada443ba9084dfbe9832f06e-b81jnks
    23:34:26 [SEVERE] Error occurred while enabling WhosThere v1.3.2-b19 (Is it up to date?): null
    java.lang.NullPointerException
            at com.sleaker.WhosThere.WhosThere.setupDependencies(WhosThere.java:144)
            at com.sleaker.WhosThere.WhosThere.onEnable(WhosThere.java:49)
            at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Getting this, RB #1060, Latest builds of vault, whosthere, and administrate.
     
  30. Offline

    Jokaru

    im install this plugin with Administrate and Customized CommandBook (without WHO) on cb1000 and when i using /who in console type:
    Code:
    2011-08-28 09:53:11 [SEVERE] Could not pass event PLAYER_LOGIN to WhosThere
    org.bukkit.command.CommandException: Unhandled exception executing command 'who' in plugin WhosThere v1.3.3-b24
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at com.sleaker.WhosThere.WhosThere$WhoPlayerListener.onPlayerLogin(WhosThere.java:319)
        at org.bukkit.plugin.java.JavaPluginLoader$12.execute(JavaPluginLoader.java:321)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
        at net.minecraft.server.ServerConfigurationManager.a(ServerConfigurationManager.java:184)
        at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:82)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
        at net.minecraft.server.Packet1Login.a(SourceFile:43)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at org.bukkit.craftbukkit.entity.CraftPlayer.sendRawMessage(CraftPlayer.java:92)
        at org.bukkit.craftbukkit.entity.CraftPlayer.sendMessage(CraftPlayer.java:96)
        at com.sleaker.WhosThere.WhosThere.sendWrappedText(WhosThere.java:304)
        at com.sleaker.WhosThere.WhosThere.whoCommand(WhosThere.java:237)
        at com.sleaker.WhosThere.WhosThere.onCommand(WhosThere.java:90)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 14 more
    
    can someone help with thits problem? Thx
     
  31. Offline

    Sleaker

    can you post up which version of vault you were using or pastebin your whole startup?
     

Share This Page