Sueta

ForeverAlone

1.2

Prevent players from executing commands if they are too close to other players

·Plugin

ForeverAlone
Prevent your players from executing commands, unless they are alone!

Features

  • Configurable, per group radius
  • Command whitelist
  • Configurable messages
  • Exclude gamemodes (configurable)
  • Ghost mode

Default config:

# Permission to reload the config (/falone reload) is foreveralone.reload

# Global radius
default-min-distance: 10

# Per-group radius
# To put players in a group, give them permission foreveralone.<groupname>
# If a player has one or more group, default-min-distance is ignored and
# the smallest radius is used.
min-distance-per-group:
  vip: 5
  reload: 0

messages:
  # Sent to a player when a command is denied
  # Available parameters:
  #   %displayname% -> Nearest player's display name
  #   %name%        -> Nearest player's name
  #   %mindistance% -> Required distance to execute the command
  #   %distance%    -> Current distance (floored down) to the nearest player
  too-close: "&cYou cannot execute commands while %displayname% (%name%) is less than %mindistance% blocks away from you (current: %distance%)"

# Whitelisted commands
# Will also take in account command aliases (unless the command is vanilla)
# You can also restrict the command to specific parameters by appending them
#   In this case, the command AND parameters must be an exact match
#   e.g. 'falone' will allow '/falone', '/falone reload' and '/falone now'
#         However, 'falone reload' will ONLY allow 'falone reload'
whitelist:
  - help
  - msg
  - falone reload

# Bypasses distance requirements if the command executor is in either of the specified gamemodes
# Also makes the player "invisible" to others, e.g. if one creative player is near a survival player,
#   they both can execute commands
exclude-gamemodes:
  - creative
  - spectator

Planned features

  • Vanilla teams integration (configurable)
  • WorldEdit regions support (configurable)
  • Create configuration commands (paid)
  • Notify players when they can type a command again (paid, configurable)
  • Factions integration (paid, configurable)
  • Handle other types of entities (paid, configurable)

Please vote for/suggest features in the comments!

Similar projects

Plugin →