Player Tracker is a simple plugin that allows your players to track each other. The General Tracker shows the nearest players and tells them how many blocks away they are. By default, if there isn't a player within 200 blocks, it won't show anything; this 200 blocks is changeable in the config.
The Player Tracker allows a player to track another player specifically. A player would first get an unbound tracker that can then be bound to the other player using a command. Once bound, upon clicking the tracker, the coordinate range of the player will show up. This coordinate range is random between 1 and a custom value of blocks either way of each coordinate, configured in the config.yml. The Unbound Player Tracker can be made craftable with a custom recipe in the config.yml file.
A nearby command allows players to use the functionality of the General Tracker as a command, showing a list of people nearby and how many blocks away they are. A maximum limit on the players can be configured in the config.yml.
All messages are customisable in the config.yml and, can be translated to any language at will as there aren't any in-game messages that can't be changed.
Code (YAML):
#Player Tracker V1.2.5 by candinoDev #Change anything you want about this #Please note that all messages sent by the plugin have, by default, the prefix before it
#Plugin Prefix for In-Game messages Prefix: "&6[&2&lTracker&6] " #Distance for player tracker to search for nearby players Distance: 200
#General colour for the main body of messages - make sure you include the "&" otherwise it won't work GeneralColour: "&6" #Colour for making important bits of information stand out in a message - make sure you include the "&" otherwise it won't work ImportantColour: "&2&l"
#All settings for the General Tracker GeneralTracker: #Item name for General Tracker Item: "CLOCK" #Is there a limit on how many players are shown LimitOnMax: true
#Limit number (Only works if LimitOnMax is true) LimitNumber: 10
#Message for when a General Tracker is given to a player GiveTracker: "&6The Gods have given you this tracker before you" #Name of the General Tracker - changes all references to it in messages Name: "&6&l&nGod Tracker" #Lore of the General Tracker Lore: -
"&2Made by the Gods" -
"&6This is a test" #Message sent to the player - only use of placeholders BlocksAway: "&6The player &2&l%player% &6is &2&l%distance% &6blocks from you." #Message for when the General Tracker breaks TrackerBreak: "&6Your tracker broke" #Option to allow uses limit UsesLimit: true
#Name of the General Tracker (Only works if UsesLimit is false) UsesLimitName: "&6&l&nGod Tracker"
#All settings for the Player Tracker PlayerTracker: #Item name for Player Tracker Item: "CLOCK" #Message for when an Unbound Player Tracker is given to a player GiveTracker: "&6The Gods have given you this Unbound Player Tracker" #The name of a Player Tracker - before the "Unbound" or "Tracking" Name: "&6&l&nPlayer Tracker" #Message for when a player tries to bind an already bound Player Tracker AlreadyBound: "&6This player tracker is already bound to another player" #Error message for when "/target" is used when a player tracker in not in main hand NoTracker: "&6You don't seem to have a Player tracker in your main hand" #Option to send bind message to target player TargetOnBindSend: true
#Message for when a Player Tracker is bound - sent to the player who it is bound to (Only works if TargetOnBindSend is true) TargetOnBind: "&6A Player tracker has just been bound to you" #Optio to send message to target player when tracked TargetOnClickSend: true
#Message for when a Player Tracker is used - sent to the player who it is bound to (Only works if TargetOnClickSend is true) TargetOnClick: "&6A Player tracker has just released your coordinate range" #Max value either side of actual x coordinate (It is randomised) xCoordsRange: 100
#Max value either side of actual y coordinate (It is randomised) yCoordsRange: 10
#Max value either side of actual z coordinate (It is randomised) zCoordsRange: 100
#Option to allow Player Tracker to be craftable Craftable: false
#Layout for crafting: # 1-1 | 1-2 | 1-3 # _______________ # 2-1 | 2-2 | 2-3 # _______________ # 3-1 | 3-2 | 3-3 1-1: "AIR" 1-2: "AIR" 1-3: "AIR" 2-1: "AIR" 2-2: "AIR" 2-3: "AIR" 3-1: "AIR" 3-2: "AIR" 3-3: "AIR"
#All settings for '/nearby' Nearby: #Is the '/nearby' command enabled Enabled: true
#Does the command require the 'tracker.nearby' permission to use RequirePermission: true
#Search radius for nearby players DefaultBlocksAway: 200
#Max search radius for nearby players (You can't give a permission bigger than this number) MaxBlocksAway: 500
#Is there a limit on how many players are shown LimitOnMax: true
#Limit number (Only works if LimitOnMax is true) LimitNumber: 10
#The message configuration NearbyPlayers: #The Format for the Nearby message is:
#Prefix + Header Line #Player 1 (Nearest) #Player 2 (2nd Nearest) #... #Footer Line
#To remove the Header or Footer from the message, set them to "NONE" #The prefix is not used here
#Error message for when there are no players in the block distance specified in "Distance:" NoPlayersNearby: "&6There are no players nearby" #Error message for when "/target" is being attempted to be bound to an offline player PlayerNotOnline: "&6This player is not online"
#Make player untrackable if in creative mode DisableCreative: true
#Make player untrackable if in spectator mode DisableSpectator: true
#Make player untrackable if in survival mode DisableSurvival: false
#Make player untrackable if in survival mode DisableAdventure: false
#Error message for when the player is in an untrackable gamemode Untrackable: "&6This player is currently untrackable, try again in a bit"
#No permission message NoPerm: "&cYou don't have permission to do that" #Include prefix in no permision message - "true" includes prefix and "false" doesn't UsePrefixForNoPerm: true
Code (YAML):
permissions:
tracker.target:
description: Allows use of '/targettracker' to get an unbound target tracker
default: op
tracker.tracker:
description: Allows use of '/tracker' to get a general tracker
default: op
tracker.nearby:
description: Allows use of '/nearby' to show nearby players
default: op
tracker.nearby.NUMBER:
description: Allows use of '/nearby' with a different search range
default: op
/tracker {player} {uses} - Gives player a god tracker with specified number of uses (OP)
/targettracker {player} - Gives player an unbound target tracker (OP)
/nearby - Shows nearby players to yourself (OP)
/target {player} - Changes unbound target tracker in main hand to targeting specified player (Default)
/tracker help - Shows help menu (Default)
If you like my plugin, please leave a review, it helps me a lot.
Please don't claim the plugin for yourself If you find a bug, don't write a bad review, let me know and I can fix it Please don't private message me on Discord because I won't reply, just ask for help in the support server If you use this plugin, let me know and I will feature your server on here!
Any feature requests please join the Discord Support Server or message me here and I'll be happy to look into it