CompassTracker icon

CompassTracker -----

Track a player or a location with your compass in one command !



[​IMG]
Track a player or a location with your compass in one command !
Description
CompassTracker is a simple plugin allowing you to track a location or a player using your compass.
This system can be very useful for RolePlay servers, because it will allow you to help your players to go in a chosen direction.
The plugin also includes commands to force players to track a direction or a player.
Note that when you track a player, you track the location of the player when the command is typed. This location does not update.

Installation
  1. Copy the ReportSystem plugin into the plugins file
  2. Start the server !
Subsequently, you can configure all the possible permissions in the same config file and all the messages of the plugin from A to Z using the messages.yml file.

Configurations
The plugin has two configuration files allowing you to configure the entire plugin.
The config.yml file corresponds to the main configuration file: You will find the configuration of all permissions as well as notifications for players and le cooldown de la commande /track.

Here is the default config.yml file:
Code (YAML):

#   CompassTracker main configuration file generated by version 1.0

#You can setup all commands permission.
trackCommand
: "compasstracker.use"
trackCooldownBypass
: "compasstracker.cooldownbypass"
trackPlayer
: "compasstracker.player"
trackLocation
: "compasstracker.location"
trackPlayerToOthers
: "compasstracker.player.other"
trackLocationToOthers
: "compasstracker.location.other"
trackReloadPermission
: "compasstracker.reload"
trackReset
: "compasstracker.reset"

#Should players be notified if their tracking has been forced to change ?
#These messages are modifiable in messages.yml file.
notifyForcePlayerTargetChange
: true
notifyForceLocationTargetChange
: true

#Setup cooldown for /track command. Set "0" to disable. (seconds)
trackCooldown
: 300
 
The second file, as its name suggests ( message.yml), allows you to configure all the messages sent by the plugin entirely as you wish.
Here is the default messages.yml file:
Code (YAML):

#   CompassTracker message configuration file generated by version 1.0

trackHelpHeading
: "&8[&6&lCompassTracker&8] &8Error. Please use a command below:"
trackHelpPlayer
: "&8 - Track a current player location: /track <target>"
trackHelpLocation
: "&8 - Track a specific location: /track <X> <Y> <Z>"
trackHelpPlayerOther
: "&8 - Force a player to track a current player location : /track <player> <target>"
trackHelpLocationOther
: "&8 - Track a specific location: /track <player> <X> <Y> <Z>"

noPerm
: "&8[&4&lCompassTracker&8] &8You don't have permission."
executeFromPlayer
: "&8[&4&lCompassTracker&8] &8Only players can perform this command."

commandOnCooldown
: "&8[&4&lCompassTracker&8] &8You're executing this command too quickly! Please wait %cd% seconds."
reloadSuccessful
: "&8[&3&lCompassTracker&8] &8Reload successful."
reloadInProgress
: "&8[&3&lCompassTracker&8] &8Reload in progress..."

locationFormat
: "%X%/%Y%/%Z%"
unknownOrDisconnectedPlayer
: "&8[&4&lCompassTracker&8] &8Player %target% not found."
targetPlayerSet
: "&8[&3&lCompassTracker&8] &8You are now tracking %target% current location."
targetLocationSet
: "&8[&3&lCompassTracker&8] &8You are tracking %location% location."
targetPlayerToOtherSet
: "&8[&3&lCompassTracker&8] &8You forced %player% to track %target%"
targetLocationToOtherSet
: "&8[&3&lCompassTracker&8] &8You forced %player% to track location: %location%"
targetReset
: "&8[&3&lCompassTracker&8] &8You have reseted your track target."

notifyForcePlayerTargetChange
: "&8[&3&lCompassTracker&8] &8You are now tracking %target% current location."
notifyForceLocationTargetChange
: "&8[&3&lCompassTracker&8] &8You are tracking %location% location."
 

Commands
  • /track
    Main command of the plugin, allowing to track.
    • /track <player>
      Track a player
    • /track <X> <Y> <Z>
      Track a special location
    • /track <player> <target>
      Force a player to track another player actual location
    • /track <player> <X> <Y> <Z>
      Force a player to track a location
    • /track reset (no cooldown !)
      Reset compass target. Compass will now target the spawn of the world where the player is
  • /trackreload
    Reload the plugin and its configurations.

Permissions
Note: All the permissions listed below are configurable as you wish in the config.yml file. These are therefore the default permissions of the plugin.
  • compasstracker.use
    Access to /track command.
  • compasstracker.player
    Allow to track a player.
  • compasstracker.location
    Allow to track a location
  • compasstracker.player.other
    Allow to force a player to track another player
  • compasstracker.location.other
    Allow to force a player to track a location
  • compasstracker.reset
    Allow to reset player compass target
  • compasstracker.reload
    Access to /trackreload
  • compasstracker.cooldownbypass
    Bypass /track cooldown

Did you like it? Do not hesitate to leave a comment!
→ Need help ? Do not hesitate to contact me !
→ If you need a special addition, customization or a plugin, don't hesitate to ask me!
Resource Information
Author:
----------
Total Downloads: 183
First Release: May 2, 2021
Last Update: May 2, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings