Ninja Sneak
This mod enables users with permission ninja.basic to be invisible to all other users of the server, when sneaking (default shift).
It is designed to prevent invisible players from killing others relentlessly/outside of the victim's power. Because of this, you cannot be invisible when flying or in the air. (I feel as though the in-the-air part contributes to the ninja element)
This makes killing people without them seeing you and being able to defend themselves impossible because you have to move very slowly, cannot jump, and cannot fly speedily around them.
Commands
/ninja enables the ability
/normal disables the ability (you can sneak like normal)
Changelog
1.0 - basic permissions and commands
1.1 Removed logs, fixed bugs, updated to 1.3.1-R1
1.2 Added config file, defaults to OPs being able to see invisible players
Fixed errors that were being printed to the log.
Updated to 1.3.1-R2
1.3 Added smoke-bomb type effect. Whenever you first go invisible, a ball of smoke appears around you to everyone on the server including yourself. Looks like/has this effect.
Added particle effect that only appears to yourself when sneaking in ninja mode. Lets you know that you are invisible.
Fixed errors that were being printed to the log again.
1.4 Updated to 1.4.2 R0.3
Fixed errors being printed to log.
Open sourced it!
1.5 Update to 1.4.6 R2
Made some of the code more efficient to reduce lag
Video
Source
View and fork the source here.
-
View User Profile
-
Send Message
Posted Aug 27, 2012@milesokeefe
because mine is a griefing server and the idea of a reckless ninja ruining everything about is a bit too griefing for my grief :P
-
View User Profile
-
Send Message
Posted Aug 25, 2012Add support with DisguiseCraft please.
-
View User Profile
-
Send Message
Posted Aug 24, 2012@MsohMage
hmm, why the time limit.
can you elaborate on the smoke bombs concept? I don't understand.
@OliverDollar
@OliverDollar
Didn't catch that. Should be fixed now.
-
View User Profile
-
Send Message
Posted Aug 24, 2012Okay so it's all working now in v1.2 but my console is getting spammed with this error whenever someone uses the ability:
15:22:40 [SEVERE] Could not pass event PlayerToggleSneakEvent to Ninja Sneak org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:940) at net.minecraft.server.Packet19EntityAction.handle(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at me.milesokeefe.ninjasneak.NinjaSneak.onPlayerToggleSneak(NinjaSneak.java:61) at sun.reflect.GeneratedMethodAccessor452.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
Any help would be appreciated, thanks!
-
View User Profile
-
Send Message
Posted Aug 24, 2012@milesokeefe
Awesome, also whatever error that is it is stopping the plugin from working. The commands work but I do not go invisible. :/
Thanks
-
View User Profile
-
Send Message
Posted Aug 24, 2012Before you release 1.2 i have other idea a configurable time that the player could be hiding; like, the player enters /ninja and then, X seconds later the player get back to /normal And if you could add a item-activation then we could use this plugin as "smoke bombs" :P
-
View User Profile
-
Send Message
Posted Aug 23, 2012@bfrogstone
Great idea! Added to the v1.2. You can disable it in the config as well.
@Moraga1
I actually wanted to do this with the original, but unfortunately you can't hit invisible players :(
@OliverDollar
Sorry about that, it should be fixed in v1.2
-
View User Profile
-
Send Message
Posted Aug 23, 2012Hi, cool plugin but I have one issue with it, I keep getting this error whenever I move:
21:00:08 [SEVERE] Could not pass event PlayerMoveEvent to Ninja Sneak org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:332) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:213) at net.minecraft.server.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.NetworkManager.b(NetworkManager.java:276) at net.minecraft.server.NetServerHandler.d(NetServerHandler.java:109) at net.minecraft.server.ServerConnection.b(SourceFile:35) at net.minecraft.server.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.MinecraftServer.q(MinecraftServer.java:581) at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:212) at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:474) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:406) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.NullPointerException at me.milesokeefe.ninjasneak.NinjaSneak.onPlayerMove(NinjaSneak.java:85) at sun.reflect.GeneratedMethodAccessor128.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:330) ... 14 more
Any help would be appreciated, thanks.
-
View User Profile
-
Send Message
Posted Aug 21, 2012What if when players who are invisible are hit or damaged, they become visible again? That would be really awesome I think.
-
View User Profile
-
Send Message
Posted Aug 21, 2012I love the idea, could you please make it so OPs (Or Someone with a permission) are able to still see the invisible players? That'd be awesome, thanks ^_^
-
View User Profile
-
Send Message
Posted Aug 18, 2012@nsordk
@Haloclanproductions
Sorry about that, it's removed now.
@EdictServer
Good ideas! Especially 2 and 3. What do you mean by 4 though? That the confirmation message can be disabled in the config file?
-
View User Profile
-
Send Message
Posted Jul 14, 2012I really dont want Console Spam EX:
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:27 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] AIR
12:06:28 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] player-i: ?cpelican138?f :: Hidden:CraftPlayer{name=pelican138}
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:29 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] AIR
12:06:30 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] WOOD
12:06:30 [INFO] AIR
12:06:30 [INFO] AIR
12:06:30 [INFO] AIR
-
View User Profile
-
Send Message
Posted Jul 2, 2012Seems like a debugmode is activated by default. I woke up to a 11Mb log from this plugin posting in console every block when a user moved.
2012-07-02 08:28:43 [INFO] STATIONARY_LAVA
2012-07-02 08:28:44 [INFO] STATIONARY_LAVA
2012-07-02 08:28:44 [INFO] LAVA
2012-07-02 08:28:44 [INFO] LAVA
-
View User Profile
-
Send Message
Posted Jul 1, 2012I have some suggestions that I think would better balance this plugin and make it funner.
Just suggestions, as I really like the idea of the plugin but worry it would be overpowered in its current state.
-
View User Profile
-
Send Message
Posted Jun 27, 2012@mokapang
Updated. Sorry for the wait
@woodendinosaur
If you're still interested, email me at miles.okeefe@gmail.com. I'm gonna put it on github at some point but I can send it to you directly until then.
-
View User Profile
-
Send Message
Posted May 5, 2012need update please?
has bug in CB1.2.5
-
View User Profile
-
Send Message
Posted Apr 14, 2012How do i access your source code if I wanted to view it? I would like to compare what you have with what I have. I am working on a similar plugin for my own server that works side by side with DarkBrotherhood.