Pack: Spectator Alts - teakivy/teaks-tweaks GitHub Wiki

Pack: Spectator Alts (spectator-alts)

Spectator Alts allows players to add their own alts to the server's whitelist, which are automatically set to spectator mode.

Config

The config for this pack can be found in the config.yml file for the plugin.

# Spectator Alts
# Allow players to add their own alt accounts as spectators
#
# Commands:
# /alts <add/remove/list> <alt> [player] (Permission: teakstweaks.command.alt / teakstweaks.command.alt.manage)
spectator-alts:
  enabled: false
  # Which gamemode to put alts in when they join
  # Options: spectator, creative, survival, adventure
  gamemode: spectator
  # Whether or not to force alts to stay in spectator mode
  force-gamemode: true
  # Maximum amount of alts a player can have
  # OP players have no limit
  # Set to 0 to only allow OP players to set alts
  # Set to -1 to allow all players to set unlimited alts
  # OP players can add alts to other players by using /alts add <alt>   <player>
  max-alts: 1
  # Whether or not to allow alts to teleport to other players
  # Alts will always be able to teleport to their main account
  allow-player-teleport: true

Options

enabled

  • Type - boolean
  • Default - false
  • Description - Controls whether the pack is enabled.

gamemode

  • Type - string
  • Default - spectator
  • Description - Sets the gamemode the alt will be set into. Options are spectator, survival, adventure, or creative.

force-gamemode

  • Type - boolean
  • Default - true
  • Description - Forces the player to remain in their gamemode.

max-alts

  • Type - int
  • Default - 1
  • Description - Sets the maximum amount of alt accounts a player can add. Set to 0 to only allow OP players to add alts. Set to -1 to allow all players to set unlimited alts.

allow-player-teleport

  • Type - boolean
  • Default - true
  • Description - Controls whether the alt can teleport to other players using spectator controls. Alts can always teleport to their owning player.

Linked Commands

Permissions

teakstweaks.command.alts

  • Default - true
  • Description - Controls whether the player can use the /alts command.

teakstweaks.command.alts.manage

  • Default - true
  • Description - Controls whether the player can use the /alts command to manage other player's alt accounts.

Messages

"spectator_alts.name": "Spectator Alts",
"spectator_alts.description": "Allow players to add their own alt accounts as spectators.<newline>Command",

spectator_alts.name

  • Default - Spectator Alts

spectator_alts.description

  • Default - Allow players to add their own alt accounts as spectators.<newline>Command
⚠️ **GitHub.com Fallback** ⚠️