### Shadow Ban Command Examples Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Commands-and-Permissions Examples of the shadowban command syntax using various time duration formats. ```text /pq shadowban PlayerName 7d # Ban for 7 days /pq shadowban PlayerName 24h # Ban for 24 hours /pq shadowban PlayerName 30m # Ban for 30 minutes ``` -------------------------------- ### Simple Anarchy Server Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration A basic configuration for an anarchy-style server setup with priority and regular queue types. ```yaml serverName: "&c2b2t Clone" queueServer: "queue" targetServer: "main" alwaysQueue: true enableSourceServer: false queueTypes: PRIORITY: order: 1 slots: 100 permission: "queue.priority" REGULAR: order: 2 slots: 400 permission: "default" ``` -------------------------------- ### Configure Velocity for Premium Servers Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation Define server addresses and set the queue server as the initial connection point. ```toml [servers] main = "127.0.0.1:25566" queue = "127.0.0.1:25567" try = ["queue"] [forced-hosts] # Optional: direct connections "play.example.com" = ["queue"] ``` -------------------------------- ### Test Shadow Ban Command Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Execute a temporary shadow ban to verify the configuration. ```text /pq shadowban TestPlayer 1m ``` -------------------------------- ### Configure Multiple Queue Servers Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Sets up load balancing across multiple queue servers using a global strategy. ```yaml # Global load balancing strategy queueLoadBalancing: "LEAST_PLAYERS" queueGroups: default: queueServers: - "queue1" - "queue2" - "queue3" # ... other settings ``` -------------------------------- ### Configure BungeeCord for Premium Servers Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation Set the queue server as the priority for online-mode BungeeCord instances. ```yaml listeners: - query_port: 25577 priorities: - queue # Players connect to queue first host: 0.0.0.0:25565 max_players: 9999 force_default_server: true player_limit: -1 online_mode: true servers: main: motd: '&1Main Server' address: 127.0.0.1:25566 restricted: false queue: motd: '&1Queue Server' address: 127.0.0.1:25567 restricted: false ``` -------------------------------- ### Configure Audio Settings Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Enables or disables XP sound playback upon receiving proxy plugin messages. ```yaml audio: playXpSound: true # Play sound on proxy plugin message ``` -------------------------------- ### Configure Velocity for Cracked Servers with Auth Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation Define server addresses and set the auth server as the initial connection point. ```toml [servers] auth = "127.0.0.1:25568" main = "127.0.0.1:25566" queue = "127.0.0.1:25567" try = ["auth"] [forced-hosts] "play.example.com" = ["auth"] ``` -------------------------------- ### Configure BungeeCord Servers Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Define the required server entries in the BungeeCord configuration file. ```yaml servers: main: motd: '&1Main Server' address: 127.0.0.1:25566 restricted: false queue: motd: '&1Queue Server' address: 127.0.0.1:25567 restricted: false ``` -------------------------------- ### Default Bukkit Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation The default configuration file generated for the queue server, including settings for location, visibility, communication, and ProtocolLib integration. ```yaml location: enabled: true world: "world_the_end" coordinates: x: 500 y: 256 z: 500 visibility: hidePlayers: true restrictMovement: true forceGamemode: enabled: true mode: "spectator" communication: disableChat: true disableCommands: true audio: playXpSound: true protections: preventExperience: true preventDamage: true preventHunger: true # Requires ProtocolLib protocolLib: disableDebug: true suppressPackets: chunk: true time: true health: true advancement: true experience: true showFullHead: true ``` -------------------------------- ### PermissionsEx Permission Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Commands-and-Permissions Commands to assign priority queue access using PermissionsEx. ```text /pex user add queue.priority /pex group add queue.priority ``` -------------------------------- ### Configure BungeeCord for Cracked Servers with Auth Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation Set the auth server as the priority for offline-mode BungeeCord instances. ```yaml listeners: - query_port: 25577 priorities: - auth # Players authenticate first host: 0.0.0.0:25565 max_players: 9999 force_default_server: true player_limit: -1 online_mode: false servers: auth: motd: '&1Auth Server' address: 127.0.0.1:25568 restricted: false main: motd: '&1Main Server' address: 127.0.0.1:25566 restricted: false queue: motd: '&1Queue Server' address: 127.0.0.1:25567 restricted: false ``` -------------------------------- ### Configure PistonQueue Server Settings Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Defines the primary server names and load balancing strategy for the proxy. ```yaml # Display name for your server (used in messages) serverName: "&cexample.org" # Server names (must match your proxy config exactly) queueServer: "queue" targetServer: "main" # Source server settings (for lobby/auth servers) enableSourceServer: false sourceServer: "lobby" # Force players to the target server even if they try to connect elsewhere forceTargetServer: false # Load balancing strategy for multiple queue servers (see Queue Groups) # Options: ROUND_ROBIN, LEAST_PLAYERS, RANDOM queueLoadBalancing: "LEAST_PLAYERS" ``` -------------------------------- ### Proxy Configuration Settings Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Installation Key settings for the PistonQueue proxy configuration, defining server names and queue behavior. ```yaml # Server names (must match your proxy config) queueServer: "queue" targetServer: "main" # For cracked/lobby servers enableSourceServer: false # Set to true if using auth/lobby sourceServer: "lobby" # Queue behavior alwaysQueue: false # true = always queue, false = only when full ``` -------------------------------- ### Configure Server Down Handling Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Defines behavior and messaging when the target server becomes unavailable. ```yaml # Pause the queue if target server goes down pauseQueueIfTargetDown: true pauseQueueIfTargetDownMessage: "&6The main server is down. We will be back soon!" # Kick new players if servers are down kickWhenDown: false serverDownKickMessage: "%server_name% &6is down please try again later :(" # Which servers to monitor for downtime rawKickWhenDownServers: - "%TARGET_SERVER%" - "%QUEUE_SERVER%" ``` -------------------------------- ### High-Capacity Network Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Advanced configuration supporting multiple queue servers and load balancing. ```yaml serverName: "&62b2t Clone" targetServer: "main" alwaysQueue: true queueLoadBalancing: "LEAST_PLAYERS" queueGroups: default: queueServers: - "queue1" - "queue2" - "queue3" targetServers: - "main" queueTypes: - "PRIORITY" - "REGULAR" defaultGroup: true queueTypes: PRIORITY: order: 1 slots: 200 permission: "queue.priority" REGULAR: order: 2 slots: 800 permission: "default" ``` -------------------------------- ### Configure multiple target servers with queue groups Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Use queue groups to route specific queue types to designated target servers. ```yaml queueGroups: survival: targetServers: - "survival" queueTypes: - "REGULAR" - "PRIORITY" creative: targetServers: - "creative" queueTypes: - "CREATIVE_QUEUE" ``` -------------------------------- ### Define Queue Types in YAML Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Configure priority levels, reserved slots, and tab list messages for different player groups. ```yaml queueTypes: VETERAN: order: 1 # Lower = higher priority slots: 20 # Reserved slots on target server permission: "queue.veteran" header: - "" - " %server_name% " - " Position: &l%position% " - "" footer: - "" - " &6Veteran queue status " - "" PRIORITY: order: 2 slots: 30 permission: "queue.priority" header: - "" - " %server_name% " - " Position: &l%position% " - "" footer: - "" - " &6Priority queue status " - "" REGULAR: order: 3 slots: 50 permission: "default" # "default" = no permission required header: - "" - " %server_name% " - " Position: &l%position% " - "" footer: - "" - " &6Donate for priority: donate.example.com " - "" ``` -------------------------------- ### Configure Velocity Servers Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Define the required server entries in the Velocity configuration file. ```toml [servers] main = "127.0.0.1:25566" queue = "127.0.0.1:25567" ``` -------------------------------- ### LuckPerms Permission Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Commands-and-Permissions Commands to assign queue permissions to users or groups using LuckPerms. ```text /lp user permission set queue.priority true ``` ```text /lp group permission set queue.priority true ``` ```text /lp user permission set queue.admin true ``` ```text /lp user permission set queue.bypass true ``` -------------------------------- ### Configure Shadow Ban Behavior Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Defines how shadow-banned players are handled within the queue system. ```yaml # Shadow ban behavior shadowBanType: LOOP # LOOP, PERCENT, or KICK # For PERCENT type: chance of getting through (1-100) shadowBanPercent: 10 # Message shown to shadow-banned players (if KICK type) shadowBanMessage: "&6You have lost connection to the server" ``` -------------------------------- ### Custom Permission Node Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Commands-and-Permissions YAML configuration snippet for defining custom permission nodes for queue types. ```yaml # Proxy config queueBypassPermission: "queue.bypass" adminPermission: "queue.admin" # Queue types can have custom permissions queueTypes: VIP: permission: "myserver.queue.vip" DONOR: permission: "myserver.queue.donor" REGULAR: permission: "default" # No permission required ``` -------------------------------- ### Configure Queue Behavior Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Controls queue capacity and the rate at which players are moved to the target server. ```yaml # Always queue players, even when the target server isn't full alwaysQueue: false # Maximum players allowed on the queue network queueServerSlots: 9000 # How often to move players from queue to target (milliseconds) queueMoveDelay: 1000 # Maximum players to move per queue tick maxPlayersPerMove: 10 ``` -------------------------------- ### Configure Audio Feedback Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Enables sound effects for specific queue milestones. ```yaml # Play XP sound when player reaches top 5 in queue sendXpSound: true ``` -------------------------------- ### Configure Queue Position Display Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Toggle visibility settings for queue position messages in chat, hotbar, or tab list. ```yaml positionMessageChat: true # Shows in chat positionMessageHotBar: false # Shows above hotbar positionPlayerList: true # Shows in tab list ``` -------------------------------- ### Configure Recovery Settings Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Manages automatic re-queuing for players disconnected from the target server. ```yaml # Send players back to queue if kicked from target ifTargetDownSendToQueue: true ifTargetDownSendToQueueMessage: "&cThe target server is offline now! You have been sent to queue while it goes back online." # Only recover if kick message contains these words (case-insensitive) downWordList: - "restarting" - "closed" - "went down" - "unknown reason" # Re-queue players if connection fails recovery: true recoveryMessage: "&cOops something went wrong... Putting you back in queue." ``` -------------------------------- ### Configure Player Visibility Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Controls player interaction, movement restrictions, and gamemode enforcement while in the queue. ```yaml visibility: hidePlayers: true # Hide players from each other restrictMovement: true # Prevent all movement forceGamemode: enabled: true mode: "spectator" team: enabled: false # Show player's own name in spectator menu name: "%player_name%" ``` -------------------------------- ### Configure Username Validation Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Enforces a regex pattern for player usernames. ```yaml # Validate usernames against a regex pattern enableUsernameRegex: true usernameRegex: "[a-zA-Z0-9_]*" usernameRegexMessage: "&6[PQ] Invalid username please use: %regex%" ``` -------------------------------- ### Configure Queue Groups Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Defines routing rules for different queue types and target servers within a group. ```yaml queueGroups: default: queueServers: # List of queue servers (for load balancing) - "queue1" - "queue2" targetServers: - "main" sourceServers: - "lobby" queueTypes: # Which queue types belong to this group - "REGULAR" - "PRIORITY" - "VETERAN" defaultGroup: true # Is this the default group? ``` -------------------------------- ### Lobby-Based Network Configuration Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Configuration for a network that utilizes a lobby server as a source for the queue. ```yaml serverName: "&bMy Network" queueServer: "queue" targetServer: "survival" enableSourceServer: true sourceServer: "lobby" alwaysQueue: false queueTypes: VIP: order: 1 slots: 50 permission: "queue.vip" REGULAR: order: 2 slots: 150 permission: "default" ``` -------------------------------- ### Set Permission Nodes Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Configures the permission strings required for bypassing the queue and accessing administrative commands. ```yaml # Permission to bypass the queue entirely queueBypassPermission: "queue.bypass" # Permission for admin commands adminPermission: "queue.admin" ``` -------------------------------- ### Configure ProtocolLib Features Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Requires ProtocolLib to suppress specific packets and hide debug information from players. ```yaml protocolLib: disableDebug: true # Hide position from F3 screen suppressPackets: chunk: true # Don't send chunk data time: true # Don't send time updates health: true # Don't send health data advancement: true # Don't send advancements experience: true # Don't send experience showFullHead: true # Show full player head in spectator ``` -------------------------------- ### Configure Position Messages Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Sets the display location and frequency for queue position updates. ```yaml # Where to display queue position positionMessageChat: true positionMessageHotBar: false positionPlayerList: true # Message format (supports color codes and placeholders) queuePosition: "&6Position in queue: &l%position%" # How often to send position updates (milliseconds) positionMessageDelay: 10000 ``` -------------------------------- ### Configure Location Lock Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Sets the specific world and coordinates where players are locked while in the queue. ```yaml location: enabled: true world: "world_the_end" coordinates: x: 500 y: 256 z: 500 ``` -------------------------------- ### Configure Kick Message Hiding Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Allows masking the original kick reason with a custom message. ```yaml # Hide the real kick reason from players enableKickMessage: false kickMessage: "&6You have lost connection to the server" ``` -------------------------------- ### Configure Protections Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Prevents specific player status changes like hunger, damage, or experience gain while in the queue. ```yaml protections: preventExperience: true preventDamage: true preventHunger: true ``` -------------------------------- ### Customize queue position message Source: https://github.com/alexprogrammerde/pistonqueue/wiki/FAQ Modify the queuePosition setting in the configuration to change the message displayed to players. ```yaml queuePosition: "&6Position in queue: &l%position%" ``` -------------------------------- ### Configure Communication Restrictions Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Configuration Disables chat and commands for players currently in the queue. ```yaml communication: disableChat: true disableCommands: true ``` -------------------------------- ### Disable Tab Completion Source: https://github.com/alexprogrammerde/pistonqueue/wiki/Commands-and-Permissions Configuration setting to disable tab completion for PistonQueue commands. ```yaml registerTab: false ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.