Page cover image

Configuración

Next, I will present each feature of the Lobby configuration. These settings are available in the configs/lobby.yml file, where you can make adjustments to customize the welcome experience on your server.

enabled: true

This option determines whether the feature is enabled. If set to false, players will receive a message indicating that this feature is disabled.

force_disable: false

Setting this option to true will disable the feature completely, as if it did not exist in the plugin. This is useful if you have another plugin that handles this functionality. If this is not the case, do not activate this option. Please note that a server restart is required for the changes to take effect.

high_priority: false

You can set this to true if there is another plugin interfering with the commands for this DeluxeTeleport feature and it will try to pass them through, the only problem with this is that the tab (chat autocomplete) may not work correctly according to DeluxeTeleport and you will have to fix it with the plugin that is causing the interference.

commands_alias:
  - hub
  - lobby2

Here you can add alias commands in addition to /lobby. If you don't want any aliases, simply leave the option as commands_alias: []. Remember to restart your server after adding or removing an alias for the changes to take effect.

lobby_mode:
  mode: Server
  server: lobby
  • mode: In this option you can choose the way the /lobby command will work.

    • Available options:

      • Server: Allows you to establish one or more lobbies within the same server.

      • Proxy: Sends players to another server in a BungeeCord environment.

  • server: Name of the server that will be used as a lobby when in Proxy mode.

multiple_lobbies: false

If you enable this option, you will be able to establish multiple lobbies. This will allow you to set up more than one lobby in the same world or in different worlds, giving you greater flexibility in organizing welcome areas on your server.

teleport_in_multiple:
  enabled: false
  lobby: General
  specify: Lobby

This is for when multiple_lobbies is true and the /lobby command is used without specifying a lobby.

  • enabled: Determines whether this feature will be enabled. If this option is false and multiple_lobbies is true, a lobby will need to be specified in the /lobby command.

  • lobby: Available options:

    • General: Send to the general lobby (if there is one).

    • Specify: Send to a specific lobby.

  • specify: If the lobby option is set to Specify, specify here the name of the lobby you want the player to go to.

teleport_delay:
  enabled: true
  time: 3s
  cancel_on_move: true

Teleport delay settings

  • enabled: Enable or disable teleportation delay.

  • time: Defines how much delay time will be applied (you can see which time formats to use [HERE]).

  • cancel_on_move: Determines whether the teleport should be canceled if the player moves during the cooldown.

cooldown:
  enabled: true
  time: 10m
  count_when_teleporting: true
  by_rank:
    enabled: true
    ranks:
      vip: 5m
      staff: 1m 30s
    auto_ranks:
      enabled: true
      permissions_plugin: LuckPerms
    prioritize_time: SHORTEST
  save_playerdata: true

Cooldown settings between each use of the /lobby command

  • enabled: Enables or disables the timeout between each use of the /lobby command. If set to true, cooldown will be triggered.

  • time: Sets the cooldown time between each use of the command.

  • by_rank: This section allows you to adjust the cooldown according to the player's rank.

    • enabled: Enables or disables range cooldown functionality.

    • ranks: Here you can set the specific cooldown time for different ranges.

      • Each range is defined with a name and a time. For example, vip has a 5 minute cooldown.

  • auto_ranks: Setting to automatically assign permissions based on player rank.

    • enabled: If enabled (true), cooldowns will be automatically assigned to users with a supported permissions plugin.

    • permissions_plugin: Indicates the permissions plugin to use for automatic assignment. Currently only LuckPerms is available.

  • prioritize_time: Indicates whether the longest or shortest time should be used in case a user has more than one cooldown time assigned.

    • The available options are LONGEST or SHORTEST.

  • save_playerdata: If set to true, cooldown data will be saved in each player's data file, meaning it will not be lost when the server shuts down.

teleport_conditions:
  conditions:
    money:
      type: 'has money'
      amount: 500
      enabled: false
      deny_actions:
        insuficient:
          type: message
          message: "%prefix_spawn%&cNo tienes suficiente dinero, necesitas 500/%vault_money%"

In this section you can define conditions to be met before making the teleport, you can perform actions if any condition is met or even if it is not met.

teleport_actions:
  default_messages: true
  actions:
    sound1:
      type: sound
      when: during_delay
      sound: ENTITY_EXPERIENCE_ORB_PICKUP
    actionbar1:
      type: actionbar
      when: during_delay
      message: "&aTeletransportarse en &b%lobby_delay_formatted%"
    sound2:
      type: sound
      when: cancel_delay
      sound: BLOCK_ANVIL_LAND
    actionbar2:
      type: actionbar
      when: cancel_delay
      message: "&cTeletransportación cancelada"
      duration: 3
    sound3:
      type: sound
      when: after_delay, none
      sound: ENTITY_PLAYER_LEVELUP
    actionbar3:
      type: actionbar
      when: after_delay, none
      message: "&aTeletransportado"
      duration: 2

In this section, you can define actions that will be executed before, during or after the player's teleport. These actions allow you to further customize the teleportation process.

Last updated

Was this helpful?