📜  spigot hide player - Java (1)

📅  最后修改于: 2023-12-03 15:20:11.952000             🧑  作者: Mango

Spigot Hide Player - Java

Spigot Logo

Spigot Hide Player is a Java-based plugin for the Minecraft Spigot server. It allows server administrators to hide players from other players on the server. This can be useful for various purposes such as creating hidden areas, disguising players, or maintaining privacy.

Features
  1. Hide Players: The plugin provides a simple API to hide players from other players on the server.

    // Hide player 'playerToHide' from all other players on the server
    HidePlayerAPI.hidePlayer(playerToHide);
    
  2. Toggle Visibility: Players can toggle their visibility on or off using a command or a GUI.

    // Toggle visibility for player 'player'
    ToggleVisibilityCommand.toggleVisibility(player);
    
  3. Permissions: Administrators can set permissions for specific groups of players to control who can use the hide player feature.

    // Set the permission 'hideplayer.use' for a group 'admins'
    PermissionsAPI.setPermission(admins, "hideplayer.use");
    
  4. Configurable: The plugin is highly configurable and allows server admins to customize various aspects such as messages, commands, and permissions.

  5. Compatibility: Spigot Hide Player is compatible with the latest version of Spigot and can be easily integrated into existing Spigot server setups.

Installation

To use the Spigot Hide Player plugin, follow these steps:

  1. Download the Spigot Hide Player JAR file.

  2. Place the downloaded JAR file into the 'plugins' directory of your Spigot server.

  3. Start or restart the Spigot server.

  4. Configure the plugin by modifying the 'config.yml' file located in the 'plugins/SpigotHidePlayer' directory.

Usage

Players can use the following commands to interact with the plugin:

  • /hideplayer: Toggles the visibility of the player.
  • /hideplayer show: Shows the hidden players.
  • /hideplayer hide: Hides the player from others.
  • /hideplayer reload: Reloads the configuration file.
Permissions

The plugin uses the following permissions:

  • hideplayer.toggle: Allows players to toggle their visibility.
  • hideplayer.show: Allows players to use the show command.
  • hideplayer.hide: Allows players to use the hide command.
  • hideplayer.reload: Allows players to reload the configuration file.
Configuration

The 'config.yml' file allows server admins to customize various aspects of the plugin, including messages, commands, and permissions. Here is an example configuration:

messages:
  toggle-on: "&aYou are now visible."
  toggle-off: "&cYou are now hidden."
commands:
  toggle: "/hideplayer"
  show: "/hideplayer show"
  hide: "/hideplayer hide"
  reload: "/hideplayer reload"
permissions:
  toggle: "hideplayer.toggle"
  show: "hideplayer.show"
  hide: "hideplayer.hide"
  reload: "hideplayer.reload"
Conclusion

Spigot Hide Player is a powerful tool for server administrators looking to add hidden player functionality to their Minecraft Spigot server. Its simple API, easy installation process, and extensive configuration options make it a popular choice among Minecraft server operators. So why wait? Download and install Spigot Hide Player now to take control of player visibility on your server!