Skip to content

kainlighty/LightVanish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LightVanish

Dependencies: LuckPerms

Optional: PlaceholderAPI

› Features:

  1. Hiding by group weight: Multi-level invisibility support

  2. Hiding in the online count in server list (for paper)

  3. Hiding sounds and actions

    Example: chest, block, doors sound, etc...

  4. Prohibition on break of the specified blocks

  5. Disabling invisibility in certain worlds

  6. The ability to issue temporary vanished (this will be indicated by a special symbol in the list and actionbar)

  7. Time in vanished by hovering to the nickname of the player in the list

  8. No hunger, no entity target and damage

  9. Own menu of abilities

    SCREENSHOT

    image

API:

<repository>
   <id>jitpack.io</id>
   <url>https://jitpack.io</url>
</repository>

<dependency>
    <groupId>com.github.kainlighty</groupId>
    <artifactId>LightVanish</artifactId>
    <version>1.3.0</version>
    <scope>provided</scope>
</dependency>

PlayerHideEvent:

  • getVanishedPlayers();

  • getVanishedPlayer();

  • getViewers();

  • isTemporary();

  • isVanished();

PlayerShowEvent:

  • getVanishedPlayers();

  • getVanishedPlayer();

  • isTemporary();

  • isVanished();

  • showAll();

Methods

  • LightVanishAPI.getAllVanished();

  • LightVanishAPI.getVanishedPlayers();

  • LightVanishAPI.getSettings();

  • LightVanishAPI.getVanishedPlayer():

    player(), toggle(), hide(), show(), isTemporary(), getViewers()

  • LightVanishAPI.isVanished();

  • LightVanishAPI.showAll();

Check for vanished without using API:

boolean isVanished(Player player) {
    return player.hasMetadata("vanished");
}

› Placeholders:

  • %LightVanish_isVanished%

› Commands and Permissions

Command Permission Description
lightvanish / lv lightvanish.use Hide self
lightvanish <player> (<time>) lightvanish.use.other Hide player or hide temporary, if time > 0
lightvanish list lightvanish.list See all vanished players
lightvanish settings lightvanish.settings Allow to open the settings menu with abilities
lightvanish show-all lightvanish.show-all Show all vanished players
lightvanish reload None Reload all configurations (only for console)
lightvanish reconfig None Update all configurations (only for console)
None lightvanish.use.* None
None lightvanish.chest.editing Allow editing silent chest
None lightvanish.bypass.worlds Allow to remain invisible in the disabled-worlds
None lightvanish.bypass.world.<name> Allow you to remain invisible in the specified world
None lightvanish.bypass.place Allow blocks place in invisible
None lightvanish.bypass.* None
None lightvanish.* All rights
MAIN CONFIGURATION
# Only when the server loading
update-notification: true

#English, Russian
language: English

abilities:
  prevent-join-quit-message: true #  !The change requires a server reboot
  # ---------------------------------------------------------------------
  # With the status FALSE in the server menu, hidden players will not be included in the online count
  # Paper or paper forks only
  include-in-online-count: true # ! The change requires a server reboot
  # ---------------------------------------------------------------------
  # Invisibility works by group weight
  # --- Example: If your weight is 10, then players with a weight less than 10 will not see you
  # Recommended = true
  by-group-weight: true # ! The change requires a server reboot
  # ---------------------------------------------------------------------
  animations: true  # ! The change requires a server reboot
  # ---------------------------------------------------------------------
  # Require default values;
  # complicated: false - change on spectator mode and back previous
  # complicated: true - fake synchronized inventory
  # interval - time to change previous gamemode or update interval for fake chest inventory
  #
  # Permissions:
  # lightvanish.silent.chest
  # lightvanish.silent.chest.editing
  # lightvanish.silent.chest.*
  silent-chest: # ! The change requires a server reboot
    complicated: false
    interval: 0
  # ---------------------------------------------------------------------
  # If the player moves to the specified worlds, then he comes out of invisibility
  # Except players with permission: lightvanish.bypass.world.<NAME> or lightvanish.bypass.worlds
  disabled-worlds: # ! The change requires a server reboot
    - 'test'
  # ---------------------------------------------------------------------
  # These blocks cannot be placed in vanished
  # Except players with permission: lightvanish.bypass.place
  blocked-place:
    - barrier
    - bedrock
    - diamond_ore
    - emerald_ore
    - golden_ore
    - golden_block
    - emerald_block
    - diamond_block
MESSAGES CONFIGURATION
player-offline: "&c&l » &fPlayer <username> is offline"
player-not-found: "&c&l » &fPlayer <username> not found"
has-vanished-before: "&c&l » &fYou have never been in vanished before"

list:
header: " &m   &9&l VANISHED PLAYERS &r&m   "
body: "&8- &r<prefix> <username>"
footer: "&7 Total in vanish: <count>"
empty: "&c&mThere are no players in vanish"
time: "&e&lVANISHED TIME: <minutes>m. <seconds>s."

enable:
actionbar: "&9&lYOUR VANISHED"
self: "&9&l » &fYou have entered invisibility mode"
other:
sender: "&9&l » &fPlayer <username> is vanished"
player: "&b&l » &fStaff <username> enabled vanish for you"

disable:
all: "&a&l » &fAll the invisible have become visible :)"
self: "&9&l » &fYou are out of invisibility mode"
other:
sender: "&9&l » &fPlayer <username> unvanished"
player: "&b&l » &fStaff <username> disable vanish mode for you"

About

Hide yourself from the lower ones

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages