Name: Player Tracker What I want: A plugin that makes any compass point to the nearest player (not the one holding it) and showing the name and distance in the item name of the compass, NOT the hotbar please as I am using that for something else The compass should not track players in a specific region, defineable in config with these options: notrackxyz1: (X1),(Y1),(Z1) notrackxyz2: (X2),(Y2),(Z2) Additionally, there should be a format of how the item name is going to look like, with the variables %DISTANCE% and %PLAYER% supporting color codes trackitemnameformat: &3Tracking: &7%PLAYER% &8(%DISTANCE%)
Im working on it, but i need few thing from you. What if there is only 1 player online? and what should trigger update for the tracker? If player moves or it should be updated every x ticks?
The compass should rotate if theres nobody online and display a different configurable message in the item name noplayeronlinemessage: "" It should update every configurable amount of ticks, if you cant do it, use 20 ticks
This results in constant flickering because inventory is always updated (skip to 0:40 directly, couldnt be bothered to cut)
Here it is. [Old link] [Edit] Here is the updated version https://www.dropbox.com/s/ysk032w6kdmez4j/CompassTracker.jar?dl=0
@Matroxko Downloaded your plugin out of curiosity how you addressed the issue, but it doesn't seem to work for me (compass direction and name display)
is there any error in console? I think i know what was your problem. The runnable is started when player joins the server so it didnt work because you probably didnt reconnect. I edited it so now it will work every time. So here is the newer version: [Old link] [Edit] New version: https://www.dropbox.com/s/ysk032w6kdmez4j/CompassTracker.jar?dl=0 EDIT by Moderator: merged posts, please use the edit button instead of double posting.
So the plugin is working now, but if I join with my alt, only one compass points in the right direction. Can you fix that? Im testing it with another person now
Thats jsut the same result and I dont like the distance with a number after the comma, because its always .0 So it jsut doens tpoint at my alt account
As far as I can tell, this could be a client issue. Try having a player circling around around another player who has a compass and see if the compass changes it needle like it should.
I now have another person online and it still doenst point correctly [ View attachment 32511 EXTREMELY weirdly enough, it only works in thirdperson
Hm thats weird. But if the name of the compass displays the correct player name, nothing should be wrong. Though, I have no idea how the method setCompassTarget(Location) is written, so no clue on my behalf.