[INACTIVE][FUN/ADMN] Spyer 1.5_1 - invisibility for moderating and pvp!(alternative to Vanish) SPOUT

Discussion in 'Inactive/Unsupported Plugins' started by nickguletskii, Feb 27, 2011.

  1. Offline

    nickguletskii

    SPYER HAS A NEW HOME!

    WARNING! THIS PLUGIN REQUIRES SERVER SIDE SPOUT! CLIENTS DO NOT HAVE TO DOWNLOAD ANYTHING!
    WARNING! OLD PERMISSION SYSTEM IS NOT SUPPORTED! YOU WILL NEED A BUKKIT PERMISSIONS STANDARD COMPLIANT PERMISSIONS SYSTEM!
    Hotfixed SpyerFun on 16th of August. Version number of the jar didn't change. Fixed a bunch of bugs.
    SpyerFun - a plugin that allows playersto become invisible for some time. Each second the player "eats" one item out of the stack he is holding (hider item, sugar by default). While invisible, mob can and will still attack the player, although other players (exceptions are implemented) can not. The player will reappear when he either runs out of the hider item or switches to another item in his action bar, e.g. a sword.
    SpyerAdmin - a plugin that allows moderators to hide themselves for an unlimited amount of time, as well as simulating them leaving. This is a constantly updated alternative to Vanish, with much more features and configurations!
    Thanks to brafenschlug for this hilarious video of moderators playing pranks on players!

    Features:
    • Now uses Spout! This plugin is no longer CPU heavy!
    • Allows players to become invisible for a set amount of time!
    • Adds more fun to PVP.
    • Allows administrators to hide themselves and simulate them quitting! Overrides msg,r and list.
    • Stops players from picking things up while using SpyerAdmin (see the configuration section)
    • Knocks players out from invisibility (SpyerFun) when they get damaged (see the configuration section)
    • Knocks players out from invisibility (SpyerFun) when they left-click a block (see the configuration section)
    • Now reload friendly!
    How to use (SpyerAdmin):
    • Use /spy to become and stop being invisible (toggled).
    • Use /quit to simulate you quitting/joining (toggled).
    • Place 1 piece of the indicator item into your quickbar. It will indicate if you are hidden or not. By default it is glowstone that turns into sulphur. You can configure that in plugins/Spyer/SpyerAdmin.conf.
    How to use (SpyerFun):
    • Right click with the "hider" item, every second it will eat up one item from the stack.
    • To add/change "hider" items, go to plugins/Spyer/items.yml. You'll see something like this:
      Code:
      {352: 3000, 353: 1000}
      Items are separated by commas. The ID is the right value, and the time of usage (per block) in milliseconds(HAS to be dividable by 50!). So if I want to add clay to work for 10 seconds per piece, I will do something like
      Code:
      {352: 3000, 353: 1000, 337: 10000}
      Note: by default, bones and sugar are used.
    Installation instructions, downloads:

    Install server-side Spout. No Spout client required.
    Extract the contents of the bundle(Spyer.zip) into the plugins folder.
    Bundle downloads:
    Download
    Download command line installer
    Github
    jars (open)

    Instructions for different setups:
    • Essentials: Download SpyerInstaller, put it in the server directory and run it from terminal(console). Go to configuration->4.
    • Vanilla Bukkit: go to (server directory)/plugins/Spyer. Open repo.conf, replace everything with
      Code:
      http://dl.dropbox.com/u/16258042/SpyerAdminRepos/Vanilla/
    • CommandBook: Special version for you! semi-direct Replace SpyerAdminConmmands.jar with this version!
    Configuring:

    List of permissions:
    1. spyer.spy (Players who have this have access to the /spy and /quit commands, without permissions checks for op powers)
    2. spyer.seeAll (Players who have this can see people who are hidden, without permissions checks for op powers)
    3. spyer.fun (Players who have this can use SpyerFun, without permissions defaults to true)
    4. spyer.stopmobs.admin (Stops moderators from being attacked by mobs while hidden)
    5. spyer.stopmobs.fun (Stops players from being attacked by mobs while hidden)
    Files:
    • spyer.yml - responsible for holding timing data. If syncWithScheduler is true, the plugin will use the bukkit's scheduler (recommended). If false, use Java timers. refreshRate defines the time in ticks (in milliseconds if syncWithScheduler = false). Add the optional field coolDown and set its value to your cooldown time in milliseconds (for SpyerFun, time in between invisibility uses). Add pickUp: true to allow picking up items while hidden in SpyerAdmin. To knock out people from SpyerFun when they damage an entity, add "onDamage: true". To knock out people from SpyerFun when they left click a block, add "onBlock: true". To stop invisible players (SpyerFun) from damaging other living entities, add "noDamage: true". Boolean "wait" allows/disallows the plugin to delay reloading to give them time to hide.
    • repo.conf - holds the url of the repository from which SpyerAdmin will update the script.
    • script.js - compatibility layer between plugins. e.g. Essentials script will simulate Essentials commands, Vanilla script will simulate the normal minecraft commands.
    • items.yml - holds the list of items used in SpyerFun
    • SpyerAdmin.conf - holds indicator item ids for SpyerAdmin
    Modifying scripts:
    1. Comment out all the lines in repo.conf.
    2. Modify the script.
    3. If you want to update the script, you can get it from [repopath]/script.js
    Version: v1.5_1

    Known issues
    • If you get a NullPointer when enabled (that contains something like "at nickguletskii200.SpyerAdmin.CustomHandling.<init>(Unknown Source)", then download this and put it into your jre's lib directory. You might also need to install Rhino. Disclaimer: this file is a part of the OpenJDK package.
    Changelog (open)

    Version 1.5
    • Migrated to Spout packet filtering. Timers are now only used for indicators(admin) and item deduction(fun). You can decrease the tick rate now if you want.
    • 1.5_1 Fixed the whole bundle. Nasty bug didn't appear in testing!
    Version 1.4
    • Separated SpyerAdmin into two modules.
    • July 17th - now using bukkit permissions API. Blind update. If you got this plugin before build 1000, then you have the old version. If you got it after build 1000, new version.
    Version 1.3
    • Made plugins reload friendly.
    • _1 Essentials 2.3 compatibility added through autoupdate.
    • _2 Fixed default item pickup. Now doesn't pick up items by default.
    • _3 Added noDamage property for SpyerFun.
    Version 1.2
    • Improved performance.
    • Added position checks.
    Version 1.1
    • Some little customisation upgrades.
    • Some hotfixes.
    • Improved SpyerFun's invisibility system.
    Version 1.0
    • Added mob targeting control.
    • Hotfix: fixed(hopefully) the log spam!
    • Small feature added (13/05/11): cooldown times for SpyerFun.
    Version 0.9
    • Permissions support!
    • Cleaned up code.
    Version 0.8
    • Added indicators.
    • You can now do /spy [on|off] to force.
    • Invisibility persists when you reconnect.
    • Fixed updater to work with Windows.
    • 0.8_1 fixed some problems with commands.
    • 0.8_2 major fixes.
    Version 0.7 (SpyerAdmin only for now)
    • Automatic script updating.
    • Better logging (will help me get rid of bugs) (coming soon)
    Version 0.6
    • Scripting support! That means no more compile-time library linking and more compatibility!
    • Multiple item support for SpyerFun added!
    Version 0.5
    • Added refreshrate and sync method variables. See the usage instructions to learn how to cofnigure them.
    Version 0.4


    • Extended functionality of /quit. Overrides msg and list commands of essentials.
    Version 0.3
    • A rewrite, separated packages. Hopefully removed all known bugs.
    • 0.3_1 Separated in-game configurations into another package.
    • 0.3_2 Fixed some bugs.
    • 0.3_21 Fixed some exceptions, small fix.
    Version 0.2
    • Shadow moderation ("addspy <player>" - allows player to hide with "spy" and "quit", "removespy <player>" - opposite. "addseeall <player>" - allows player to see hidden players, "removeseeall <player>" - oppiste. "spy" - hides you until called again. "quit" - hides and removes you from the list of players.
    • Click in the air now works
    • Migrated to SnakeYaml, no more jars!
    • 0.2_1 upgraded to remove double invisibility, quit now fully simulates player leaving.
    • 0.2_2 fixed player reappearing after "spying".
    • 0.2_3 huuuuuuuge bugfixes!
    • 0.2_4 fixed some bugs, one known: you have to say "/spy" twice to hide after using sugar/other hider item.
    Version 0.1
    • Release



    TODO
    • Some technical cleanups
    • Suggest more!
    Credits (no particular order)
    These people helped me by posting a lot of descriptive bug reports, removing bugs from scripts, making videos, cooperating with debugging and helping other users understand my horrible documentation ;)
    • The PC Tech Guy
    • Sparx
    • Tim Yong
    • Greylocke
    • KevinHouse
    • aidan matzko
    • brafenschlug
    • Nelien
     
  2. Offline

    spunkiie

    Running Spy 0.9 on #714 conflicts with HeroChat /tell command. Had to disable Spy :(
     
  3. Offline

    KidCanada

    If I do /quit on my server, I can still be seen online with /list (I have essentials)

    Any way to workaround this?
     
  4. Offline

    BioRage

    /quit makes me invisable, but gives me an internal error now ... hmm
     
  5. Offline

    DogPatch1992

    Hey Awesome plugin, but when i right click with a bone it turns me invisible then visible again with another click.
     
  6. Offline

    Nipper

    @nickguletskii

    Bug: I noticed I no longer show on the /list command. Even if I toggle /quit and am not hidden or just logged on it wont show me. This is with v0.9

    Also might want to put. If ess highlights the op on /list you cant remove your self from the /list with /quit
     
  7. Offline

    nickguletskii

    You don't need to click and click. Click toggles.
    Are you using Essentials 2.2? I haven't updated to that yet (thanks, timezones!)
    EDIT: Seems to me that Essentials 2.2 didn't change the behaviour of these commands... Investigating further.
    EDIT2: Can't replicate this behaviour. Need to fix the list for seeAll players though...
    EDIT3: Whoops, that is because I left the EssentialsGroup... jars.
     
  8. Offline

    Nipper

    @nickguletskii

    Yeah I'm using the newest build as of yesterday.
     
  9. Offline

    nickguletskii

    I still can't replicate it... :/
     
  10. Offline

    Reterg

    It would be great if admins would not be attacked by mobs after using the /spy or /quit commands. Like what the Friendlies plugin does except only on when the admin spy commands are used.

    A player might know an admin is around and invisible if he sees a mob attacking air :p
     
  11. Offline

    Nelien

    Serious breakage for me. When I'm alone on the server the plugin "seems" to work, it displays the proper messages but I can obviously not find out if I turn invisible or not. If someone else is online though I get the following errors:
    Error Log (open)
    2011-04-25 13:14:34 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'quit' in plugin SpyerAdmin v0.9
    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:254)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:637)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:600)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:594)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Caused by: java.lang.NoSuchFieldError: netServerHandler
    at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener.invisible(Unknown Source)
    at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener.vanish(Unknown Source)
    at nickguletskii200.SpyerAdmin.SpyerAdmin.onCommand(Unknown Source)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    2011-04-25 13:14:34 [SEVERE] Exception in thread "Thread-204"
    2011-04-25 13:14:34 [SEVERE] java.lang.NoSuchFieldError: netServerHandler
    2011-04-25 13:14:34 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener.invisible(Unknown Source)
    2011-04-25 13:14:34 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener$2.run(Unknown Source)
    2011-04-25 13:14:34 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-25 13:14:34 [SEVERE] at java.lang.Thread.run(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] Exception in thread "Thread-206"
    2011-04-25 13:14:35 [SEVERE] java.lang.NoSuchFieldError: netServerHandler
    2011-04-25 13:14:35 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener.invisible(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener$2.run(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-25 13:14:35 [SEVERE] at java.lang.Thread.run(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] Exception in thread "Thread-207"
    2011-04-25 13:14:35 [SEVERE] java.lang.NoSuchFieldError: netServerHandler
    2011-04-25 13:14:35 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener.invisible(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] at nickguletskii200.SpyerAdmin.SpyerAdminPlayerListener$2.run(Unknown Source)
    2011-04-25 13:14:35 [SEVERE] at org.bukkit.craftbukkit.scheduler.CraftWorker.run(CraftWorker.java:33)
    2011-04-25 13:14:35 [SEVERE] at java.lang.Thread.run(Unknown Source)
    2011-04-25 13:14:36 [SEVERE] Exception in thread "Thread-208"
    The "Exception in thred" errors continue constantly until I log out from the server.

    I'm using CraftBukkit 684, Essentials 2.1.37 and Spyer 0.9.
     
  12. Offline

    nickguletskii

    Okay, I will add that soon. It isn't hard to add that.

    That happens because this plugin is built for the latest builds, as there are no recommended builds that work with 1.5 (I think...)
     
  13. Offline

    Nelien

    I hoped that was the case. Then I'll store this plugin in my "1.5" folder. Still haven't updated since there are too many mods I use that aren't compatible yet. Thanks!
     
  14. Offline

    nickguletskii

    No problem! I should start a version repo... Just in case someone needs an older version! :p
     
  15. Offline

    Rick

    y does this plugin require a patcher?
     
  16. Offline

    nickguletskii

    Because Essentials might override the commands, thus making administrators visible on the player list.
     
  17. Offline

    Rick

    even though im only using EssentialsGroupManager & bridge?
    also i tried running SpyerPatcher.jar and it didnt do anything. and im getting this error

    2011-04-25 09:40:42 [INFO] SpyerAdmin has completed updating the script successfully.
    2011-04-25 09:40:43 [SEVERE] sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.ClassNotFoundException: com.earth2me.essentials.Console (<Unknown source>#110) in <Unknown source> at line number 110
    2011-04-25 09:40:43 [INFO] SpyerAdmin module version 1.0, a spying utility for administrators and moderators, is active. Part of the Spyer package by [nickguletskii200]

    thanks
     
  18. Offline

    nickguletskii

    Please read the OP. You only need to run it if you have essentials, which you do not. Use the vanilla setup instructions.
     
  19. Offline

    Rick

    Perfect. Thank you. I get confused sometimes because I don't use all the essentials just the permissions.
     
  20. Offline

    KiloWhiskey

    Any chance you can get this to hide log in and log out now? Would love to drop stealthlogin and just use one spy plugin.
     
  21. Offline

    Nelien

    That would be useful, true. But I can live without it for a few weeks. There's always a gap during updates when you just have to live with what you get :).
    This, would be very nice.
     
  22. Offline

    Reterg


    Awesome, thanks for that. Works perfect.
     
  23. Offline

    Liger_XT5

    I'm having a slight problem with the /tell command. :S

    Code:
    2011-04-25 09:01:02 [INFO] ibmoodysniper used command "/tell <Riky_516> Haundini has been getting on as Soulspiritof a wolf"
    2011-04-25 09:01:02 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'tell' in plugin SpyerAdmin v0.9
        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:659)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:622)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:616)
        at net.minecraft.server.Packet3Chat.a(SourceFile:36)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:73)
        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.NullPointerException
        at nickguletskii200.SpyerAdmin.SpyerAdmin.onCommand(Unknown Source)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        ... 12 more
    
    Correct me if I'm wrong, but I didn't think spyer had a /tell feature?
    Also, using CB 716 (was also happening on 714 yesterday) and only using spyerAdmin.
     
  24. Offline

    MineralMC

    Still getting the same error during startup that I did for 0.9, both under CB720;

    18:38:17 [SEVERE] sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.ClassNotFoundException: com.earth2me.essentials.Console (<Unknown source>#110) in <Unknown source> at line number 110
    18:38:17 [INFO] SpyerAdmin module version 1.0, a spying utility for administrators and moderators, is active. Part of the Spyer package by [nickguletskii200]

    Never seen anything like that before. Does seem to run OK regardless, though.
     
  25. Offline

    nickguletskii

    You can do that manually by editing plugin.yml.
    Testing...
    EDIT: Can't replicate it. More info on the setup please...
     
  26. Offline

    Liger_XT5

    If it helps any, I use a customized craftbook for the /tell command.
     
  27. Offline

    nickguletskii

    You mean CommandBook? I haven't yet finished support for CommandBook... Finishing now. Hopefully be finished today.
     
  28. Offline

    Infectedd

    I can't get it to work with Essentials. How can i know, that the patcher has done its job?
     
  29. Offline

    nickguletskii

    What doesn't work? Please be more specific.
     
  30. Offline

    Infectedd

    To be accurate: it displays every player on a new line
    ex
    Default: P1
    Default: P1,P2
    Default: P1,P2,P3

    Actually i managed to get it to work. (it was spamming stuff, i can't remember what, but fixed. probably the jar got corrupted on download), but the /list problem still exists

    By the way, i'm sorry for providing you with miserable amounts of information. I'm pretty sleepy right now and don't know exactly what i'm doing and why i'm doing it. Lol

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

    Liger_XT5

    Yeah, I meant commandbook. Sorry about that, was on my phone and only had craftbook in the auto correct listing :/
    Thanks for info, we'll be waiting for the update soon!
     

Share This Page