[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



    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!

    • 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:
      {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
      {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 command line installer
    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
    • CommandBook: Special version for you! semi-direct Replace SpyerAdminConmmands.jar with this version!

    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)
    • 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

    • 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


    I have a request for this.

    Could it be made so that when a player hits or attacks the spyerfun wears off and cant be used until a Cooldown expires.

    as that would make for a epic rogue class for RPG servers.
  3. Offline


    Done it. See OP for details on how to enable this.
  4. Offline


    Doing a major cleanup, improving performance and releasing sourcecode.
  5. Offline


    plaease use a different download source it takes FOREVER to load the down load link
    ill even host it on my server if u want
  6. Offline


    Try the semi-direct link - donwloads instantly for me (I use dropbox by the way).
    EDIT: Updated, released sourcecode as promised.
  7. Offline

    Psycho Robot

    Can you please start posting .jar only links?
  8. Offline


    Eeeh? Why?
  9. Offline

    Psycho Robot

    Its just a little annoying unzipping it and deleting the .zip and the default configs. Why, would it be a lot of extra work? I thought it was just a matter of zipping it, then instead of uploading just the .zip, you upload the other files as well. Doesn't dropbox do persistent links, so you don't have to change any links after setting it up initially?
  10. Offline


    A couple questions:
    1. How is the CommandBook version different from the regular version of SpyerAdmin?
    2. Is the CommandBook version updated to Spyer 1.2?
  11. Offline


    It is easy enough - just drag the jars out of the zip, or if you have no GUI - use the installer's update feature.
    Eeh, no, updating right now.
    EDIT: Updated. And the difference is: it has no scripting and it has more commandbook-like commands.
  12. Offline


    I appreciate you making this useful plugin available, but I would also find a SpyerAdmin.jar download handy for updating and I don't imagine I am the only one who chooses not to use the installer.
    sleite likes this.
  13. Offline


    Okay, by popular demand, I am adding a list of separate files.
    sleite likes this.
  14. Offline

    Geoff Winans

    Result of using /quit with SpyerAdmin.

    Show Spoiler

    [2011/05/22 04:21:11]SESSION START
    [2011/05/22 04:21:26][INFO]Loading Spyer settings
    [2011/05/22 04:21:26][INFO]Updating script.
    [2011/05/22 04:21:26][INFO]Fetching repo loc
    [2011/05/22 04:21:26][INFO]Repo found. Downloading.
    [2011/05/22 04:21:27][INFO]Downloaded script.js
    [2011/05/22 04:21:27][INFO]Constructing script handler.
    [2011/05/22 04:22:54]SESSION STOP
    [2011/05/22 04:23:22]SESSION START
    [2011/05/22 04:23:35][INFO]Loading Spyer settings
    [2011/05/22 04:23:35][INFO]Updating script.
    [2011/05/22 04:23:35][INFO]Fetching repo loc
    [2011/05/22 04:23:35][INFO]Repo found. Downloading.
    [2011/05/22 04:23:35][INFO]Downloaded script.js
    [2011/05/22 04:23:35][INFO]Constructing script handler.
    [2011/05/22 04:23:54][INFO]Command issued: spy
    [2011/05/22 04:23:58][INFO]Command issued: quit
    [2011/05/22 04:23:58][INFO]BEGIN EXCEPTION REPORT: WHILE EXECUTING COMMAND. ID: CMD1306056238609
    [2011/05/22 04:23:58][ERROR]Exception ID CMD1306056238609:
    nickguletskii200.SpyerAdmin.SpyerAdmin.onCommand(Unknown Source)
    [2011/05/22 04:23:58][INFO]VAR TRACE:
    [2011/05/22 04:23:58][INFO]Timers:
    [2011/05/22 04:23:58][COLLECTION DUMP]HashMap ID CMD1306056238609:
    [2011/05/22 04:23:58][INFO]Schedulers:
    [2011/05/22 04:23:58][COLLECTION DUMP]HashMap ID CMD1306056238609:
    [2011/05/22 04:23:58][INFO]playerHideTree:
    [2011/05/22 04:23:58][COLLECTION DUMP]HashMap ID CMD1306056238609:
    [nerenberg, nerenberg, nerenberg, nerenberg, nerenberg, nerenberg, nerenberg, nerenberg, nerenberg, nerenberg]
    [2011/05/22 04:23:58][INFO]END EXCEPTION REPORT: WHILE EXECUTING COMMAND. ID: CMD1306056238609
  15. Offline


    Could you please tell me what setup do you have?
  16. Offline


    CB 793
  17. Offline


  18. Offline

    Psycho Robot

    Yeah that's right. I clicked your adfly link like 2 times. You owe me, bro.
  19. Offline

    Geoff Winans

    Sorry, totally forgot.

    CB 793.
  20. Offline


    No, what plugin do you have for general commands?
  21. Offline

    Geoff Winans

  22. Offline


    Just went from being a huge over 2 month VANISH fan, to this, hope things go well, looking good so far on #803. Thank you for the plugin sir.
  23. Offline


    Is it the scripted version or the precompiled one?
    Thanks! If you have any ideas, please tell me :)
  24. Offline


    Few things. The known issues: "If you get a NullPointer when enabled (that contains something like "at nickguletskii200.SpyerAdmin.CustomHandling.<init>(Unknown Source)", then download this: http://download.oracle.com/otndocs/jcp/sjp-1.0-fr-oth-JPR/ and put it into your classpath."

    1) Not sure how to set classpath. Using linux, I tried a ton of commands after looking around the internet, to no avail.

    2) Is this something you can even do without root access? (running server off a VPS)

    3) Do you have to have SpyerAdmin to be able to run SpyerFun correctly? I could do without Admin.

    I'm running into this problem, using vanilla Bukkit. I changed the repo.conf folder as instructed in the installation instructions. Still get the NullPointer error.
  25. Offline


    1) http://ubuntuforums.org/showthread.php?t=304571
    2) Use sudo
    3) Nope, you don't.
    4) It is caused by you not having JSR223 javascript installed.
  26. Offline



    i just would suggest a No-pickup feature (with /spy automaticlly toggled) for SpyerAdmin.
  27. Offline


    Already done...
    This means that it does that by default.
  28. Offline


    thanks, i must skiped that

    okey, there are some things i dont understand!
    im using the Essentials Plugin. I have to download the SpyerInstaller.jar and run it from console? Is there a way to install without having remote acces to the server? My provider doesnt have a console input in the webinterface so i dont know how.
    and for the Nullpointer, into which classpath shall i copy the file?

    thank you

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


    How do you install plugins the? O_e

    Either add it to the classpath in your startup script, or set an environmental variable called CLASSPATH.
  30. Offline


    i install them by putting the jar into the plugin folder and then /reload or restart the server via webinterface ^^
    there is a batch file in the main folder, the startup script i guess ;)
    java -server -Xmx768M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui
    can u tell me what i should add there?
  31. Offline


    java -server -classpath "PATHTOTHEDIRWHERETHEFILEIS" -Xmx768M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XXarallelGCThreads=2 -XX:+AggressiveOpts -jar craftbukkit.jar nogui

Share This Page