TheNextLvlTheNextLvl

Access Control

Manage portal permissions, costs, and cooldowns

GitHub Edit on GitHub

Access Control

Access control allows you to restrict portal usage with permissions, entry fees, and cooldowns.
Create VIP portals, premium teleports, or prevent portal spam.

Commands

Set Entry Permission

Sets a permission requirement for using the portal.
Usage: /portal permission <portal> [<permission>]

Examples:

# Require VIP permission
/portal permission vip-portal server.vip

# Require admin permission
/portal permission admin-portal server.admin

# Require custom permission
/portal permission premium-portal portals.premium

# Require donor permission
/portal permission donor-portal server.donor

# See current permission
/portal permission admin-portal

Players without the required permission will be denied entry.

Set Entry Cost

Sets an entry fee that players must pay to use the portal.
Usage: /portal cost <portal> [<amount>]

Examples:

# Set cost of 100
/portal cost spawn-portal 100

# Set cost of 500
/portal cost vip-portal 500

# Set cost of 1000
/portal cost premium-portal 1000

# Remove cost
/portal cost free-portal 0

# See current cost
/portal cost vip-portal

Entry costs require Vault and an economy plugin to be installed.
Economy must be enabled in the configuration file.

Set Cooldown

Sets a cooldown period between portal uses for each player.
Usage: /portal cooldown <portal> [<cooldown>]

Examples:

# Set 30 second cooldown
/portal cooldown spawn-portal 30s

# Set 60 second cooldown
/portal cooldown random-portal 60s

# Set 5 minute cooldown
/portal cooldown premium-portal 300s

# Remove cooldown
/portal cooldown instant-portal 0

# See current cooldown
/portal cooldown spawn-portal    

Cooldowns are per-player and prevent portal spam.

Entry Denial

When a player is denied entry to a portal, they will:

  1. Be pushed back from the portal (if knockback is enabled)
  2. Not be charged or put on cooldown

Players can be denied for:

  • Missing required permission
  • Portal still on cooldown from previous use
  • Insufficient funds for entry fee

Knockback speed and whether knockback is enabled can be configured in the config file.

Last updated on