[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. going to any of the dropbox locations in browser returns a 404... is this normal?
     
  3. Offline

    nickguletskii

    Works fine for me...
     
  4. Offline

    Infectedd

    So how can we use this to hide log in/out?
     
  5. Offline

    nickguletskii

    Use the /quit command...
     
  6. Offline

    Bobohatt

    How do i make it, that Admins also can't see the spy-players? Please answer =)
     
  7. Offline

    Psycho Robot

    You should do this:

    Code:
    - '*'
    - '-spyer.seeAll'
    
    This will give admins all nodes except seeAll. OPs will still be able to see everyone however.
     
  8. Offline

    Infectedd

    No, i mean, hiding the "Player joined the game" and "Player left the game"
     
  9. Offline

    nickguletskii

    It does it when you are pseudo-quit...
     
  10. Offline

    MinecraftHead

    Great plugin. It works wonderfully.
    However, my users can still see the mods online using /list or /playerlist or /online.
    It says "*** has quit!" but still lists us.
    Craftbukkit 740, FoundDiamonds, General 3.3.3, Help, HeroicDeath, mcMMO, Moblimiter,Myhome, Permissions, SimpleCensor, SpyerAdmin, Weatherman, Worldedit, WorldGuard, xrayDetector.
    Any idea what might be causing this or what its conflicting with?
    Thanks in advance! We still use it with limited functionality because this mod rocks!
    MH
     
  11. Offline

    nickguletskii

    General is not supported.
     
  12. Offline

    MinecraftHead

    Why ignore the longest living General Command plugin? CommandBook blows, it over steps it boundaries, as well as SK89 already has his hands full and is THE SLOWEST developer getting things up to date.(SK89: stick with worldedit/worldguard, let the other devs take care of the easy stuff.) It takes over weather commands and Commandbooks options suck. (WTH, cant strike a user with lightning?) Essentials is bloatware. No reason to have 25 mods when a few will take care of what I need.
    Are their any plans to implement the general plugin hooks?
    Thanks again-
    MH
     
  13. Offline

    nickguletskii

    General is inactive. I am not going to spend any more of my time making yet another compatibility layer. That is why I am making my own command system. It is different from all the other basic commands plugins. It uses scripting for its base, so all commands will be easily customisable, not to mention easily removable and updateable.
     
  14. Offline

    Psycho Robot

    I support this so much. I've seen time after time of a general/default command plugin fall into the essentials trap of adding more and more until it becomes a bloated mess that takes over things that aren't general/default, and becomes far to large and complex to be useful to anyone except those who don't know they have other alternatives. There was a promising one, DefaultCommands, but recently the dev updated to a new version which removed some commands, like kick and ban, if you can believe it, though he said he'd re-add them. And in their place he picked up a litany of junk that should never have been added - world creation and management, mob controls, sheep changing color?? all this went in before kick and ban.</rant> Anyways, if you created a basic command plugin that avoids all these pitfalls, I'd donate more than a cup of coffee.
     
  15. Offline

    ben1996123

    Using CB740, did /quit and this came up, seems to still work though, just don't know what this is for:

    Errors (open)
    Code:
    21:53:27 [SEVERE] javax.script.ScriptException: sun.org.mozilla.javascript.inter
    nal.EcmaError: TypeError: Cannot call method "getSettings" of null (<Unknown sou
    rce>#28) in <Unknown source> at line number 28
    21:53:27 [SEVERE]       at com.sun.script.javascript.RhinoScriptEngine.invoke(Un
    known Source)
    21:53:27 [SEVERE]       at com.sun.script.javascript.RhinoScriptEngine.invokeFun
    ction(Unknown Source)
    21:53:27 [SEVERE]       at nickguletskii200.SpyerAdmin.CustomHandling.who(Unknow
    n Source)
    21:53:27 [SEVERE]       at nickguletskii200.SpyerAdmin.SpyerAdmin.onCommand(Unkn
    own Source)
    21:53:27 [SEVERE]       at org.bukkit.command.PluginCommand.execute(PluginComman
    d.java:35)
    21:53:27 [SEVERE]       at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCo
    mmandMap.java:85)
    21:53:27 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.dispatchCommand(Cr
    aftServer.java:255)
    21:53:27 [SEVERE]       at net.minecraft.server.NetServerHandler.handleCommand(N
    etServerHandler.java:677)
    21:53:27 [SEVERE]       at net.minecraft.server.NetServerHandler.chat(NetServerH
    andler.java:640)
    21:53:27 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:634)
    21:53:27 [SEVERE]       at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:3
    2)
    21:53:27 [SEVERE]       at net.minecraft.server.NetworkManager.a(NetworkManager.
    java:195)
    21:53:27 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:74)
    21:53:27 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    21:53:27 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:370)
    21:53:27 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:285)
    21:53:27 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:394)
     
  16. Offline

    m5k

    Could you add cooldowns to SpyerFun ? My thief class is almost complete :D
     
  17. Offline

    nickguletskii

    What repo are you using and what is the plugin you use for general commands?
    Not sure how that would work...
     
  18. Offline

    DodgeWatt

    Have you had any luck hiding names from /list and /who in bukkit?
    We recently added this mod and it always shows the user in the lists after using /quit, Also is there away to either block chat messages after using /quit or maybe have them only visible to other players with the same or higher permissions?
     
  19. Offline

    m5k

    Make the invisibility item possible to use once every X seconds. So for example, you could set it to being invisible for 10 seconds, but you can only do it once every minute.
     
  20. Offline

    nickguletskii

    Players with the seeAll permission will see players in the list, as well as see messages from hidden players. Other players will not see them.

    Done. Redownload, set the optional field coolDown in spyer.yml to the cooldown time in milliseconds.

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

    m5k

    Oh wow, you are the MAN! That was so fast. Thanks a bunch.
     
  22. Offline

    nickguletskii

    No problem! Sorry that I didn't do it yesterday, I was too tired...
     
  23. Offline

    DodgeWatt

    Thanks for the quick reply.
     
  24. Offline

    m5k

    I have a bug to report. If a person goes invis and someone relogs, they can see him. Same goes for warps. Vanish plugin has this fixed but they don't have the features you do. Please look into this.
     
  25. Offline

    Tim Yong

    Greetings. There seems to be no way to /spy and pick up items. This is indeed a nice feature, but could you please make it toggle-able via a command or in the config file? Hopefully, I can figure out how to delete that code snippet. lol
     
  26. Offline

    nickguletskii

    Is this in SpyerFun? EDIT: Redownload, I think I have found the cause of this.
    Adding... EDIT: Added. Read the OP for instructions :p
     
  27. Offline

    Andomeda

    Hey,
    nice Plugin =) Its VERY GOOD to take care of the Server...

    May u can if the Guy with the Permission the walk sound too off is? If he is @ Spy
    That would be great but i thank it doesnt go... :/

    Ando
     
  28. Offline

    nickguletskii

    Eeeh, as entities are removed, then the sound is also removed.
     
  29. Offline

    Tim Yong

    EDIT 2: If I use the link for servers not running CommandBook (which is running on my server), then I can pick up items while invisible. However, using that version of SpyerAdmin.jar spams the error mentioned below. If I use the link for CommandBook servers then I cannot pick up items wile invisible, but the error below does not appear in the console. :confused:


    EDIT: hahaha It seems the spam I was seeing in my server console was due to using the SpyerAdmin.jar file not meant for CommandBook servers. For those curious, you probably clicked the wrong link if you see this error:

    Code:
    2011-05-15 18:26:34 [INFO] true
    2011-05-15 18:26:34 [INFO] true
    2011-05-15 18:26:34 [INFO] true
    2011-05-15 18:26:34 [INFO] true
    2011-05-15 18:26:34 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
    2011-05-15 18:26:35 [INFO] true
     
  30. Offline

    ChadTheDJ

    Any way can we format the login and logout message in the future? We have a different color scheme and the wrong color gives it away very easily that we are spying.

    More specifically its this:

    [White]ChadTheDJ [Red]has logged off

    White = &F
    Red = &4

    I am sure people will love this ability to match their own server.
     
  31. Offline

    nickguletskii

    Use the script to change that :)
     

Share This Page