PlayersInCubes

7.1k Downloads

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