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.
Any chance of you adding the ability to run this from console, to enable and disable it for other players?
/ninja <player>
/normal <player>
I think the pvp options don't work anymore.
People can use this while pvping and staying invisible.
Very nifty plugin, could work well on PvP servers as a kit, or rank. I'll recommend this to my clients :)
could you do this:
Adjustable time for being invisible?
when player does /ninja -> he would go x seconds invisible, no player can see the user, no mob will attack the user.
If the player strikes/jumps/fly/use commands -> player pops out back visible.
So basically , player could do /ninja -> start search for enemy and when hes close enough, he could attack and become visible. Perhaps even the first strike CRITICAL strike 100% chance? I would love this though
@ZwPBerserk
Updated with the fix for you! Please try it out and tell me if you have any problems.
@Landstreet
I can't recreate your problem, my player stays invisible even to the point where letting go of shift means falling.
@Landstreet
That's part of a check to prevent people from being invisible while flying. There is no way to check if people are flying other than checking if the block below them is air. When you are in sneak mode at the very edge of a block you can get to a point where you are technically in the air, over the next block.
This seems like a choice Minecraft made so I won't change the way it currently works for now.
@ZwPBerserk
I looked at that section again and realized there's a more efficient way to do it. I'll post a new version with that update in a bit.
Hey, i like this plugin and i gave this to my very high donators... only 4 so far.
But when i run Nolagg examine it says this plugin is causing a bit of lagg. Is this a bug? or do you need to fix this? This is what comes up:
Bug Report
When sneaking in ninja mode you are visible if you are on the edge of a block.
Hello, i am wanting to know if u could make me a custom plugin (basic). For more info PM me and i will send u my Skype Username
P.S , i am willing to pay for it... :D
I have a feature request incase you take them. Is there any way you could add a configuration for the sneak so that it drains a configurable amount of food per second? Otherwise, although its a fun plugin, it can't be used in the arenas on my server :(
Please consider it.
Cheers.
HAHAHAHAHAH I LOLED SO HARD TO THE LINK ON THE EFFECT!!
@snack743
Updated!
@chistian95
First part: sounds good, I'll add it to my ToDo list.
Second part: not sure if it's possible, I don't think it is.
@MCManCub
Sorry, I've been working on other stuff.
I'm not imagining exactly how that would work. Can you describe it in more detail? Also I'd happily accept a pull request on the repo.
@Chemical_Datas
That sounds like a good feature, I'll add it to the ToDo list.
Can you please update this plugin to 1.4.2 since i love this plugin thanks
Hi!, is any permission node to make a goup able to see the invisible player? and another question, i put the plugin on my server but if a player is invisible, he can hurt another players but another players cant hurt him, only if they use a bow or something like that. How can i change this?
Sorry for my bad english
You know if you made this open source I could just do it myself... -_- At least respond to comments.
MC
how about having it configureable that the ninja mode defaults to on? Also perhaps a range that somone is invisible in? so with in 3 block thier visible again?
@Willbbz
I like the idea of putting a configurable timer on it so they can't be stealthed forever.
MC
What @caput_miner said :)
I'd love to be able to disable PvP if the player is sneaking. If you release the source I could add it :)
Ahh still getting log errors.
I love this plugin, but can you add an option in the config to make it so you cannot attack while invisible and maybe so a player can only use ninja sneak for a certain amount of time until they are forced to run /normal?