### YAML Configuration Example for Plugin Hide Pro Source: https://github.com/nononitas/plugin-hide-pro/wiki/Group This YAML snippet demonstrates the configuration structure for defining a group within Plugin Hide Pro. It includes settings for server enablement, command and tab-completion lists per server, priority, custom blocked command messages, and inherited groups. This is used for server-specific command and tab-completion management. ```yaml example: servers: #If no matching server could be found (for example creative) this key will be used. fallback: commands: [ ] tabcomplete: [ ] #Commands listed here will be added to servers where the name starts with "Lobby-" (for example "Lobby-1", "Lobby-230") "Lobby-.*": commands: [ ] tabcomplete: [ ] #Commands listed here will only be added to the server with the name "Survival" Survival: commands: [ ] tabcomplete: [ ] #Commands listed here will be added to every other server automatically. This key (all) is optionally all: commands: [ ] tabcomplete: [ ] #Option for which servers the group should be enabled enabled_servers: - all priority: 1 blocked-command-message: "Unknown command. Type \"/help\" for help." inherited-groups: [ ] ``` -------------------------------- ### MyCommand: Registering a Text Command Source: https://github.com/nononitas/plugin-hide-pro/wiki/Error-causing-plugins This YAML configuration demonstrates how to register a simple text command named 'example_command' for MyCommand. Setting 'register' to true ensures the command is visible in tab completion by default. The command displays '&2Example command' when executed. ```yaml example_command: command: /example type: TEXT text: - '&2Example command' register: true # <--- Must be true to be visible in tabcomplete by default ``` -------------------------------- ### Bypass Group Configuration (Spigot) Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Configuration example for creating a 'Bypass' group in Spigot that allows all commands and tab completions. This group is intended to bypass command restrictions. ```yaml Bypass: commands: ["*"] tabcomplete: ["*"] priority: 20 blocked-command-message: "Unknown command. Type \"/help\" for help." inherited-groups: [] ``` -------------------------------- ### Use Lists in Command and Tab Completion Configuration Source: https://github.com/nononitas/plugin-hide-pro/wiki/Lists This example shows how to reference a defined list using the 'list:listName' syntax within the plugin's configuration for commands and tab completion. This allows for dynamic inclusion of list items into command structures. ```yaml groupName: commands: - help - gamemode creative ~ - gamemode - list:homes tabcomplete: - list:homes - gamemode creative ~ - gamemode priority: 0 blocked-command-message: 'Type "/help" for help.' inherited-groups: [] ``` -------------------------------- ### Bypass Group Configuration (Bungee/Velocity) Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Configuration example for creating a 'Bypass' group in Bungee/Velocity that allows all commands and tab completions across specified servers. This group bypasses command restrictions. ```yaml Bypass: servers: all: commands: ["*"] tabcomplete: ["*"] enabled_servers: - all priority: 20 blocked-command-message: "Unknown command. Type \"/help\" for help." inherited-groups: [] ``` -------------------------------- ### Register Pl-Hide-Pro Event Listener (Java) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Example Java code demonstrating how to register event listeners for Pl-Hide-Pro. It shows how to handle `SetGroupEvent` and `PlayerExecuteCommandEvent` to react to player group changes and command executions. Requires the PlHideAPI. ```java import eu.nononitas.plhideapi.PlHideAPI; import eu.nononitas.plhideapi.annotations.Listener; import eu.nononitas.plhideapi.events.SetGroupEvent; import eu.nononitas.plhideapi.events.PlayerExecuteCommandEvent; public class PlHideListener { @Listener public void onSetGroup(SetGroupEvent event) { // Triggered when a player's group is changed String playerName = event.getPlayer().getName(); String newGroup = event.getNewGroup(); System.out.println(playerName + " assigned to group: " + newGroup); } @Listener public void onPlayerExecuteCommand(PlayerExecuteCommandEvent event) { // Triggered when a player attempts to execute a command String command = event.getCommand(); // Cancel the command execution if (command.startsWith("/dangerous")) { event.setCancelled(true); } } } // Register the listener PlHideAPI.getEventManager().registerListener(new PlHideListener()); ``` -------------------------------- ### AdminAnything: Disable TabComplete Source: https://github.com/nononitas/plugin-hide-pro/wiki/Error-causing-plugins This configuration snippet for AdminAnything shows how to disable tab completion blocking. Ensure the 'enabled' option under 'tabcompletedisable' is set to 'false' in your configuration file. ```yaml tabcompletedisable: enabled: false ``` -------------------------------- ### Get PlHidePlayer Instance in Java Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Retrieves a `PlHidePlayer` object using the `PlHideAPI`. This allows access to player-specific functionalities provided by the plugin. The `player` object is assumed to be an existing player instance. ```java PlHideAPI.getPlayerManager().getPlHidePlayer(player); ``` -------------------------------- ### Pl-Hide-Pro Permission Nodes (YAML) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Defines permission nodes for Pl-Hide-Pro, controlling access to features like bypassing plugin list hiding, assigning players to specific groups, and allowing command execution/tab completion for plugin-named commands. Includes examples for LuckPerms. ```yaml # Bypass plugin list hiding - shows real plugins when using /plugins plhide.bypass.pl-message: true # Assign a specific group to a player plhide.group.{groupname}: true # Example: plhide.group.admin grants the "admin" group # Allow execution of plugin-named commands plhide.unblock-plugin-named-commands.execution: true # Allow tab completion of plugin-named commands plhide.unblock-plugin-named-commands.tabcomplete: true # Example group assignment in LuckPerms lp user Nononitas permission set plhide.group.moderator true lp group admin permission set plhide.group.admin true ``` -------------------------------- ### Get Player Information using Pl-Hide-Pro API (Java) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Java code snippet demonstrating how to retrieve player information, specifically their current group and inherited groups, using the Pl-Hide-Pro API. It retrieves a `PlHidePlayer` object to access this data. ```java import eu.nononitas.plhideapi.PlHideAPI; import eu.nononitas.plhideapi.player.PlHidePlayer; import org.bukkit.entity.Player; import java.util.List; public class PlayerManager { public void getPlayerInfo(Player player) { // Retrieve PlHidePlayer instance PlHidePlayer plHidePlayer = PlHideAPI.getPlayerManager().getPlHidePlayer(player); if (plHidePlayer != null) { // Access player's current group information String currentGroup = plHidePlayer.getGroup(); System.out.println("Player " + player.getName() + " is in group: " + currentGroup); // Get inherited groups List inheritedGroups = plHidePlayer.getInheritedGroups(); System.out.println("Inherited groups: " + String.join(", ", inheritedGroups)); } } } ``` -------------------------------- ### Allowing Base Command and Specific Subarguments Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Shows how to allow the base command along with specific subarguments using the '~' character in conjunction with listed subcommands. This provides granular control over command execution. ```yaml commands: - warp ~ - warp player - warp city ``` -------------------------------- ### Adding All Commands from a Plugin Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Explains how to automatically add all commands from a specific plugin using the 'plugin:' syntax. This simplifies configuration for plugins with many commands. Note limitations with Bukkit/Bungeecord API registration and Velocity plugins. ```plaintext plugin:WorldEdit ``` -------------------------------- ### Blocking Specific Commands with Negation Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Illustrates how to block specific commands using the negation operator '!'. This is useful for excluding certain commands even when a broader permission is granted. The format requires quoted negation. ```plaintext "cmd test" + "!cmd test admin" ``` ```plaintext "*" + "!warp" ``` -------------------------------- ### Assigning Multiple Groups (Spigot) Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Demonstrates how to assign multiple groups to a primary group in the Spigot configuration. This allows for hierarchical permissions where a group inherits settings from others. ```yaml Admin: commands: - ban tabcomplete: - ban priority: 20 inherited-groups: - default - Moderator ``` -------------------------------- ### Whitelisting All Commands with Wildcard Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Provides the method for whitelisting all commands at once by using the '*' wildcard, enclosed in quotation marks, within the commands or tabcomplete list. ```plaintext "*" ``` -------------------------------- ### Using the Wildcard Operator '*' for Commands Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Details the usage of the '*' wildcard operator, which represents any possible word. It can be used in both whitelist and blacklist scenarios for commands and tab completions. ```plaintext "ban * test" ``` ```plaintext "!ban * test" ``` -------------------------------- ### Tab Completion with Spaces Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Shows the special representation 'command%space%arg' for tab-completing commands that include spaces as part of their arguments. This is a specific rule for handling spaces in tab completion entries. ```plaintext command%space%arg ``` -------------------------------- ### Pl-Hide-Pro Administrative Commands (Bash) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Reference for administrative commands used with the Pl-Hide-Pro plugin. Includes commands for reloading configuration, checking player information, and updating group assignments. Commands are provided for Spigot/Paper, Bungeecord, and Velocity proxy environments. ```bash # Spigot/Paper server commands /plhide reload # Reloads the configuration file # Permission: plhide.reload /plhide help # Displays help information about the plugin /plhide updatecheck # Checks for newer plugin versions # Permission: plhide.reload /plhide check PlayerName # Retrieves detailed information about a player's groups # Shows applied groups and inherited groups # Permission: plhide.reload /plhide updategroup PlayerName # Forces an update of the player's group assignment # Permission: plhide.reload # Bungeecord proxy commands /plhide-bungee reload /plhide-bungee check PlayerName /plhide-bungee updategroup PlayerName # Velocity proxy commands /plhide-velocity reload /plhide-velocity check PlayerName /plhide-velocity updategroup PlayerName ``` -------------------------------- ### Basic Spigot Configuration (YAML) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt A basic YAML configuration snippet for the Pl-Hide-Pro plugin on Spigot servers. It shows the version and debug mode settings. ```yaml version: 12 debug: false ``` -------------------------------- ### Include Plugin Hide Pro API with Gradle Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Configure your Gradle build to use the Plugin Hide Pro API. This includes adding the repository to your build script and specifying the dependency for implementation. Replace 'LATEST-VERSION' with the actual version. ```gradle maven { url = uri("https://repo.rafi67000.xyz/nononitas") } ``` ```gradle implementation("eu.nononitas:pl-hide-pro-api:LATEST-VERSION") ``` -------------------------------- ### Blocking All Subarguments of a Command Source: https://github.com/nononitas/plugin-hide-pro/wiki/FAQ's Explains the use of the '~' character to block all subarguments for a given command. This ensures that only the base command can be executed, preventing any further arguments. ```plaintext help ~ ``` -------------------------------- ### PlHidePro Event Handling Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Information on available events and how to create and register listeners for them. ```APIDOC ## PlHidePro Event Handling ### Available Events * SetGroupEvent * PlayerExecuteCommandEvent ### Making a Listener Replace `Event` with a valid event class. ```java @Listener public void onEvent(Event event) { // Your event handling logic here } ``` ### Registering a Listener ```java PlHideAPI.getEventManager().registerListener(new Listener()); ``` ``` -------------------------------- ### Define Custom Lists in YAML Source: https://github.com/nononitas/plugin-hide-pro/wiki/Lists This snippet demonstrates how to define custom lists in YAML files within the plugin's 'lists' folder. These lists allow for grouping commands that can be referenced elsewhere. Ensure the YAML syntax is correct for proper parsing. ```yaml homes: - home - delhome - sethome ``` ```yaml homes: - home - delhome - sethome anotherList: - command1 - command2 ``` -------------------------------- ### Add Pl-Hide-Pro API Dependency (Gradle) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Instructions for adding the Pl-Hide-Pro API as a dependency to a Gradle project. This allows your project to utilize the plugin's API. ```gradle // Gradle maven { url = uri("https://repo.rafi67000.xyz/nononitas") } implementation("eu.nononitas:pl-hide-pro-api:3.0.0") ``` -------------------------------- ### PlHidePro Player Management Source: https://github.com/nononitas/plugin-hide-pro/wiki/API How to retrieve a PlHidePlayer object. ```APIDOC ## PlHidePro Player Management ### Get a PlHidePlayer ```java PlHideAPI.getPlayerManager().getPlHidePlayer(player); ``` ``` -------------------------------- ### PlHidePro Plugin API Integration Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Instructions for integrating the PlHidePro plugin API into your project using Maven or Gradle. ```APIDOC ## PlHidePro Plugin API Integration ### Maven ```xml nononitas https://repo.rafi67000.xyz/nononitas eu.nononitas pl-hide-pro-api LATEST-VERSION provided ``` ### Gradle ```groovy maven { url = uri("https://repo.rafi67000.xyz/nononitas") } ``` ```groovy implementation("eu.nononitas:pl-hide-pro-api:LATEST-VERSION") ``` ``` -------------------------------- ### Include Plugin Hide Pro API with Maven Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Add the Plugin Hide Pro API as a Maven dependency. This involves configuring the repository and adding the dependency to your project's pom.xml. The scope is set to 'provided' as the API is expected to be available at runtime. ```xml nononitas https://repo.rafi67000.xyz/nononitas eu.nononitas pl-hide-pro-api LATEST-VERSION provided ``` -------------------------------- ### Add Pl-Hide-Pro API Dependency (Maven) Source: https://context7.com/nononitas/plugin-hide-pro/llms.txt Instructions for adding the Pl-Hide-Pro API as a dependency to a Maven project. This is necessary for integrating with the plugin's API functionalities. ```xml nononitas https://repo.rafi67000.xyz/nononitas eu.nononitas pl-hide-pro-api 3.0.0 provided ``` -------------------------------- ### Create and Register Event Listener in Java Source: https://github.com/nononitas/plugin-hide-pro/wiki/API Demonstrates how to create an event listener method in Java for the Plugin Hide Pro API. The `@Listener` annotation is used to mark the method that will handle events. Replace 'Event' with a specific event type. ```java @Listener public void onEvent(Event event){ } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.