Language

LocatorToggle [1.21.6+] | Allow Users to Toggle the New Locator Bar

LocatorToggle [1.21.6+] | Allow Users to Toggle the New Locator Bar

SpigotMC

Allow users to toggle the new locator bar locally.

498 downloads 5.0 rating
latest v1.3 SpigotMC
1.21 – 1.21

What's this?



LocatorToggle is a lightweight plugin that allows players to toggle the newly introduced locator bar locally.

When toggled off,
the player is also hidden from others’ locator bars, offering a more private gameplay experience.




Gamerule 'locatorBar' must be set to 'true'





Demonstration



[​IMG]





Commands

  • /locator - Toggles the locator bar functionality on/off for the player.
  • /locator radius <value> - Sets the locator bar radius (1-60,000,000 blocks).
  • /locator reload - Reloads the plugin configuration and language files.

Permissions

Permission Node Description Default
locator.toggle Controls usage of the /locator command Everyone
locator.radius Controls usage of the /locator radius subcommand Everyone
locator.reload Controls usage of the /locator reload subcommand Operators


Configuration
Code (YAML):

# Whether new users will have their locator disabled by default.
locator-disabled-by-default
: false

# Maximum radius that players can set using /locator radius.
locator-max-radius
: 60000000

# Default radius when players enable the locator.
# This only applies when the player hasn't set a custom radius yet.
default-locator-radius
: 60000000
 
PlaceholderAPI Support
This plugin provides the following placeholders:
  • %locatortoggle_status% - Returns "enabled" or "disabled" based on the player's preference.
  • %locatortoggle_radius% - Returns the player's custom locator bar radius (if set)

Versions

Release
1.3
·
42
Release
1.2
·
135
Release
1.1
·
74
Release
1.0
·
100

Comments 0

No comments yet. Be the first to share your thoughts.

Download LocatorToggle [1.21.6+] | Allow Users to Toggle the New Locator Bar

Files are served directly from the original source. Modgrid does not host or modify them.