PlayersInCubes
PlayersInCubes helps you control when players can see each other based on their distance. Players that are far from each other will be hidden from each other, and shown again when coming close enough. Player "radar" and tracking cheats become less threatening.
Fridays plugin !
Maintenance Phase
Due to timing constraints i will likely not add much to this one, but keeping it updated as long as possible.
Reference: Commands and Permissions | Configuration
Features
- Players are being hidden from each other if their distance exceeds certain limits. If they come close enough they will be shown. Works horizontally and vertically.
- Configure the accuracy and seeing distance (to a certain extent).
- All at runtime: reload configuration, disable, enable, re-check all (cleanup).
- Exclude certain worlds to have players see each other at any distance there.
Method
- Players get associated with cube shaped partitions of the world, if two players share association with one or more of those "cubes", they can see each other.
- Symmetry: Players can either both see each other or both not see each other.
- To prevent effects of players not seeing each other, when they stand on the border of different neighboring cubes players can get associated with multiple cubes, depending on the distance the player has to the center of nearby cubes.
- To increase performance the players locations are stored and only if the player moved farther than a certain (small) distance, then a new check will be done for which cubes to associate the player with.
Pitfalls
- This will very likely be incompatible with any sort of plugins that do vanishing or disguises.
Hopefully i can find a way to make it somewhat compatible with some plugins like SimplyVanish. - Currently all players are treated alike, so there is no switch to see all at any distance for admins yet. I am planning to add such, i might as well bring in invisibility.
- The plugin uses the vanish API given by Bukkit, so it might be that players that you can't see will not appear in your player list, the tell command might also not work to addressing those.
- Players activities like breaking or placing blocks still might be noticed by others, even if out of seeing range. So don't get tracked down while chopping wood.
Repository: https://github.com/asofold/PlayersInCubes
no vanish is not a big deal was using essentials build in vanish. it would only mean no more fun looking at players fight xD no errors yet.
thanks.
It does not really work with vanish plugins, yet. I might give it a thought how to / if to provide a vanish command in here or compatibility hooks.
any idea if this still doesnt work with vanish?
great I will give it a try !! I have a decent size player base around 30, I will post any errors
Packet sending fixed (player list):
http://dev.bukkit.org/server-mods/playersincubes/files/9-players-in-cubes-2-2-1/
VanishNoPacket (and maybe other plugins) have a feature for distance-based hiding, but they do use a quadratic-time-always algorithm, as far as i know. For smaller servers it probably won't matter, but for bigger servers it might matter. I have not tested how big the difference is, pic uses some overhead for sorting players into cubes (...), but pic uses an algorithm that keeps track of players in range and uses constant time for finding the cubes instead of iterating over all players and check again and again, pic also uses some heuristic which should save a lot of performance (only re-evaluate if players moved by a certain amount, tested a lot in RSP and pic - this one vnp could implement too, without too much of difficulty).
@noxturno
It should still work, but the player list is broken currently.
aww this was great while it lasted. my players were so happy noone would find them while underground.
Concerning latest dev builds: use : http://dev.bukkit.org/server-mods/playersincubes/files/8-players-in-cubes-2-2-0/
@Grave9912
Point is this plugin should show vanished players because it will show and hide players based on distance without distinction. So i think this is a simple inevitable collision.
I think i have an idea what i can do to be able to provide compatibility, but i don't have much time at present.
@asofold
Yeah Really weird I tested all my plugins and found this one was causing it.
@Grave9912
Light blue ?!
@asofold
The reason it doesn't work is every time you re log the name is light blue for the Vanished player I really want this to work with VnP otherwise I can't use it :(
@Grave9912
Of course not :) - this plugin has to hide and show players all the time...
if i have a lot of time i will add something to at least be able to vanish completely or see all for admin purposes. What you might manage to do is to exclude some worlds so pic won't handle those, but i dare not say if that would make pic compatible with vnc for those worlds then.
No compatible with VnP :(
@chrishillz
I am runing it on a test server with 1.4.2, can't say too much about details with more people on. I assume it works the same way, unless for CB bugs.
I made this before being part of the NCP project. Also it was like a weekends plugin, more like proof-of-concept, though it is really useful for certain setups.
Integrating into NCP could be an idea, but it would put this pretty much into focus leading to more development pressure, more risk if it breaks, and also a lot of support requests because of possible incompatibilities with other plugins like vanish, disguise etc. Apart from that it would also mean that i have to maintain the integrated part and this one.
Why don't you just integrate this into NCP and have it toggleable?
Edit: Does this work on the development 1.4.2 builds so far?
This plugin is not supporting Citizens? I see all my npc in online players :DD it very funny, but I donĀ“t want it :DD
@Luxius96
This plugin does not prevent seeing through walls. It just should prevent players seeing each other at very long distances.
What is with 55 to 200 - can you describe at what distance players can see each other ?
This plugin need a change..
above
- Player can see people y=55 to 200
underground
- Player can not see people from behind the walls y= 0 to 54
how can i configure for good?
Thanks for the update! Keep up the great work, this should definitely be more popular! Maybe you shouldn't include that last pitfall about the cheat clients as that may give them an idea. ;-)