Skip to content

Commit

Permalink
Pre-release of new version (modular trackers)
Browse files Browse the repository at this point in the history
TODO: Tests and bugfixes.
Example: Warning when reload (ConcurrentModificationException)
  • Loading branch information
arboriginal committed Feb 9, 2019
1 parent 3631121 commit a89d0ef
Show file tree
Hide file tree
Showing 18 changed files with 281 additions and 1,347 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ All permissions are listed with a short description in this [plugin.yml](https:/

* **/scompass** visual interface (clickable book)
* **/scompass-option** will show the menu to choose where and when display the compass
* **/sctrack** to tracker a position, coordinates or a player
* **/sctrack** to tracker a position, coordinates or a player (see below)
* **/scompass-reload** will reload the configuration

You can use **/scompass-option** with arguments directly if you prefer (`/scompass-option <option> <type>`).

## Trackers addons

To use the command **sctrack**, you need at least one tracker addon. You can find them here:

* [CoordsTracker](https://github.com/arboriginal/SCT-CoordsTracker): Allows to track specific coordinates.
* [DeathPosTracker](https://github.com/arboriginal/SCT-DeathPosTracker): Allows to track the last death position.
* [PapiPositionTracker](https://github.com/arboriginal/SCT-PapiPositionTracker): Allows to track positions defined using PlaholderAPI placeholders.
* [PlayerTracker](https://github.com/arboriginal/SCT-PlayerTracker): Allows to track players positions.
* [PositionTracker](https://github.com/arboriginal/SCT-PositionTracker): Allows to track static positions.

Have a look at the [Spigot plugin thread](https://www.spigotmc.org/threads/simplecompass.351093/), maybe other addon (made by other developers) will be listed.
140 changes: 7 additions & 133 deletions lang/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ prefix: "&8[&eSimpleCompass&8] " # But you can also decide to remove the {prefi

# Message displayed when using the reload command
configuration_reloaded: "{prefix}&aConfiguration successfully reloaded"
# Message displayed when using the reload command and a tracker can't init correctly
tracker_disabled: "{prefix}&cTracker {tracker} can't be reloaded, it has been disabled."

# Invalid choice in the config file for compasses default settings.
invalid_choice: "{prefix}&cInvalid default choice for {type} ({key}), using default"
Expand All @@ -21,8 +23,8 @@ invalid_bossbar_style: "{prefix}&cInvalid bossbar style, using default"
invalid_bossbar_color_level: "{prefix}&cInvalid bossbar color found in elytra levels."
# Mistake in config file for compass requirements
invalid_items: "{prefix}&cFound invalid items in {section} ({type}) requirement list, &6&l{ignored}&c has been ignored..."
# Mistake in config file for "tracker_settings"
invalid_names: "{prefix}&cFound invalid names in tracker_settings, modified: {modified}."
# Mistake in language file for actions and subcommands names
invalid_names: "{prefix}&cFound invalid names in your locale file, modified: {modified}."
# Information message for cardinals if they have not same length, see "filling_char" for more details
cardinal_length: "{prefix}&eYour cardinal {cardinal} ({key}) has been adjusted to fit the max length of others"
# If you commit an error in trackers priorities list
Expand Down Expand Up @@ -50,8 +52,6 @@ missing_target: "{prefix}&6You must specify a valid target name!"
target_exists: "{prefix}&e{target} &calready exists."
# Unknown target for request
target_not_found: "{prefix}&e{target} &ccannot be found!"
# When a player try to accept / deny an expired request
request_expired: "{prefix}&cNo pending request from &e{player}&c."

# Displayed in compasses when the player no more have required items to use the compass
warnPlayerNoMoreFuel: "&cYou no longer have the necessary items..."
Expand All @@ -66,9 +66,11 @@ interface_book_give_cooldown: "{prefix}&cYou have to wait {delay} before another

# You can define your own action names here (choose something short and understandable by your players)
actions:
ACCEPT: accept
ADD: add
ASK: ask
DEL: del
DENY: deny
HELP: help
START: start
STOP: stop
Expand Down Expand Up @@ -96,13 +98,6 @@ time_display:
minute: "min"
second: "s"

# You can define your own tracker names here (choose something short and understandable by your players)
trackers:
COORDS: coords
DEATH_POSITION: death
PLAYER: player
POSITION: position

# Human name for the compass types
types:
ACTIONBAR: "Action bar"
Expand Down Expand Up @@ -207,131 +202,10 @@ commands:
&8.
sctrack:
COORDS:
list: "{prefix}&rNamed coordinates: {list}."
list_empty: "{prefix}&rNo named coordinates."

ADD: "{prefix}&aNamed coordinate &e{target}&a has been created."
DEL: "{prefix}&aNamed coordinate &e{target}&a has been deleted."
START: "{prefix}&6You are now tracking &e{target}&6 coordinate."
STOP: "{prefix}&6You no longer track &e{target}&6 coordinate."

DEATH_POSITION:
list: "{prefix}&rDeath coordinates: {list}&r."
list_coord: "&6x: &c{x} &r/ &6z: &c{z}"
list_empty: "{prefix}&rNo death coordinates."

START: "{prefix}&6You are now tracking your &elast death&6 position."
STOP: "{prefix}&6You no longer track your &elast death&6 position."

PLAYER:
list: "{prefix}&rTracked players: {list}."
list_empty: "{prefix}&rNo player tracked."

ASK: "{prefix}&rTracking request sent to {target}."
START: "{prefix}&6You are now tracking &e{target}&6."
STOP: "{prefix}&6You no longer track &e{target}&6."

request:
message: |
{prefix}&8--------------------------------------
&8|
&8| &e{player} &7want to track you.
&8|
&8| &8[ {deny} &8] &f/&8 [ {accept} &8] &f?
&8|
&8----------------------------------------------------
accept: "&a&lACCEPT"
accept_hover: |
Click to &e&laccept
&7 -- or type --
&c/sctaccept {player}
deny: "&c&lDENY"
deny_hover: |
Click to &e&ldeny
&7 -- or type --
&c/sctdeny {player}
accepted:
player: "{prefix}&e{target}&r has &aaccepted&r your request."
target: "{prefix}&e{player}&r is now tracking you..."
player_limit_reached: "{prefix}&e{target}&r has &aaccepted&r your request, but you cannot track more players."
target_limit_reached: "{prefix}&e{player}&r cannot track more players and is NOT tracking you for now..."
refused:
player: "{prefix}&e{target}&r has &crefused&r your request."
target: "{prefix}&e{player}&r will not track you."

POSITION:
list: "{prefix}&rNamed positions: {list}."
list_empty: "{prefix}&rNo named positions."

ADD: "{prefix}&aNamed position &e{target}&a has been created."
DEL: "{prefix}&aNamed position &e{target}&a has been deleted."
START: "{prefix}&6You are now tracking &e{target}&6 position."
STOP: "{prefix}&6You no longer track &e{target}&6 position."

help: # See tracker_settings for values substitutions
help:
header: "&e| {prefix} &aHelp &l{tracker} &atracking"
separator: "&e-----------------------------------------------------"

COORDS:
noargs: |
&r- &c/{command} &e{COORDS}
&7 Show the list of your named coordinates.
ADD: |
&r- &c/{command} &e{COORDS} &6{ADD} &3<name> &b<x> <z>
&7 Add a new named coordinate.
DEL: |
&r- &c/{command} &e{COORDS} &6{DEL} &3<name>
&7 Delete a named coordinate.
START: |
&r- &c/{command} &e{COORDS} &6{START} &3<name>
&7 Begin the tracking of this named coordinate.
STOP: |
&r- &c/{command} &e{COORDS} &6{STOP} &3<name>
&7 End the tracking of this named coordinate.
DEATH_POSITION:
noargs: |
&r- &c/{command} &e{DEATH_POSITION}
&7 Show your last death coordinates.
START: |
&r- &c/{command} &e{DEATH_POSITION} &6{START}
&7 Begin the tracking of your last death coordinate.
STOP: |
&r- &c/{command} &e{DEATH_POSITION} &6{STOP}
&7 End the tracking of your last death coordinate.
PLAYER:
noargs: |
&r- &c/{command} &e{PLAYER}
&7 Show list of players you are currently tracking.
ASK: |
&r- &c/{command} &e{PLAYER} &6{ASK} &3<name>
&7 Ask to a player to track his position.
START: |
&r- &c/{command} &e{PLAYER} &6{START} &3<name>
&7 Begin the tracking of this player (without asking).
STOP: |
&r- &c/{command} &e{PLAYER} &6{STOP} &3<name>
&7 End the tracking of this player.
POSITION:
noargs: |
&r- &c/{command} &e{POSITION}
&7 Show list of trackable positions.
ADD: |
&r- &c/{command} &e{POSITION} &6{ADD} &3<name> &b<x> <z>
&7 Create a new trackable position.
DEL: |
&r- &c/{command} &e{POSITION} &6{DEL} &3<name>
&7 Remove this trackable position.
START: |
&r- &c/{command} &e{POSITION} &6{START} &3<name>
&7 Begin the tracking of this named position.
STOP: |
&r- &c/{command} &e{POSITION} &6{STOP} &3<name>
&7 End the tracking of this named position.
limits:
ADD: "{prefix}&cYou have reached the limit of {tracker}."
START: "{prefix}&cYou cannot track more than {limit} {tracker}."
140 changes: 7 additions & 133 deletions lang/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ prefix: "&8[&eSimpleCompass&8] " # Mais tu peux aussi le décider de retirer la

# Message affiché quand la commande reload est utilisée
configuration_reloaded: "{prefix}&aConfiguration rechargée"
# Message affiché quand la commande reload est utilisée et qu'un tracker ne s'initialise pas correctement
tracker_disabled: "{prefix}&cLe tracker {tracker} n'a pas pu être rechargé, il a été désactivé."

# Choix invalide dans le fichier de config pour les réglages par défaut des boussoles.
invalid_choice: "{prefix}&cChoix par défaut invalide pour {type} ({key}), utilisation de ceux par défaut"
Expand All @@ -21,8 +23,8 @@ invalid_bossbar_style: "{prefix}&cStyle de barre de boss invalide, utilisation d
invalid_bossbar_color_level: "{prefix}&cCouleur de barre de boss invalide dans les niveaux liés aux élytres."
# Erreur dans le fichier de config pour les prérequis d'une boussole
invalid_items: "{prefix}&cItems invalides trouvés dans les prérequis de {section} ({type}), &6&l{ignored}&c ont été ignorés..."
# Erreur dans le fichier de config pour "tracker_settings"
invalid_names: "{prefix}&cNoms invalides trouvés dans tracker_settings, modifié : {modified}."
# Erreur dans le fichier de langue pour les noms d'actions et de subcommands
invalid_names: "{prefix}&cNoms invalides trouvés dans le fichier de langue, modifiés : {modified}."
# Message d'information pour les points cardinaux s'ils n'ont pas la même longueur, voir "filling_char" pour plus de détails
cardinal_length: "{prefix}&eTon point cardinal {cardinal} ({key}) a été ajusté pour correspondre à la longueur des autres"
# Si tu as fait une erreur dans la liste de priorité des trackers
Expand Down Expand Up @@ -50,8 +52,6 @@ missing_target: "{prefix}&6Tu dois préciser un nom valide !"
target_exists: "{prefix}&e{target} &cexiste déjà."
# Cible inconnue pour la requête
target_not_found: "{prefix}&e{target} &cest introuvable !"
# Quand un joueur tente d'accepter / refuser une requête expirée
request_expired: "{prefix}&cPas de requête en cours pour &e{player}&c."

# Affiché dans les boussoles quand le joueur n'a plus les items nécessaires pour l'utiliser
warnPlayerNoMoreFuel: "&cTu n'as plus les items requis..."
Expand All @@ -66,9 +66,11 @@ interface_book_give_cooldown: "{prefix}&cTu dois attendre {delay} avant qu'un au

# Tu peux définir tes propres noms d'action ici (choisis quelque chose de court et compréhensible pour les joueurs)
actions:
ACCEPT: accepter
ADD: ajouter
ASK: demander
DEL: supprimer
DENY: refuser
HELP: aide
START: commencer
STOP: stopper
Expand Down Expand Up @@ -96,13 +98,6 @@ time_display:
minute: "min"
second: "s"

# Tu peux définir tes propres noms de trackers ici (choisis quelque chose de court et compréhensible pour les joueurs)
trackers:
COORDS: coords
DEATH_POSITION: mort
PLAYER: joueur
POSITION: position

# Noms des types de boussoles
types:
ACTIONBAR: "Barre d'action"
Expand Down Expand Up @@ -207,131 +202,10 @@ commands:
&8.
sctrack:
COORDS:
list: "{prefix}&rCoordonnées nommées : {list}."
list_empty: "{prefix}&rAucunes coordonnées nommées."

ADD: "{prefix}&aLes coordonnées &e{target}&a ont été créées."
DEL: "{prefix}&aLes coordonnées &e{target}&a ont été supprimée."
START: "{prefix}&6Tu pistes maintenant les coordonnées &e{target}&6."
STOP: "{prefix}&6Tu ne pistes plus les coordonnées &e{target}&6."

DEATH_POSITION:
list: "{prefix}&rDernière mort: {list}&r."
list_coord: "&6x: &c{x} &r/ &6z: &c{z}"
list_empty: "{prefix}&rPas de coordinées de mort."

START: "{prefix}&6Tu pistes maintenant &eta dernière mort&6."
STOP: "{prefix}&6Tu ne pistes plus &eta dernière mort&6."

PLAYER:
list: "{prefix}&rJoueurs pistés : {list}."
list_empty: "{prefix}&rAucun joueur pisté."

ASK: "{prefix}&rDemande pistage envoyée à {target}."
START: "{prefix}&6Tu pistes maintenant &e{target}&6."
STOP: "{prefix}&6Tu ne pistes plus &e{target}&6."

request:
message: |
{prefix}&8--------------------------------------
&8|
&8| &e{player} &7veut te pister.
&8|
&8| &8[ {deny} &8] &f/&8 [ {accept} &8] &f?
&8|
&8----------------------------------------------------
accept: "&a&lACCEPTER"
accept_hover: |
Clique pour &e&laccepter
&7 -- ou tape --
&c/sctaccept {player}
deny: "&c&lREFUSER"
deny_hover: |
Clique pour &e&lrefuser
&7 -- ou tape --
&c/sctdeny {player}
accepted:
player: "{prefix}&e{target}&r a &aaccepté&r ta demande."
target: "{prefix}&e{player}&r te pistes à présent..."
player_limit_reached: "{prefix}&e{target}&r a &aaccepté&r ta demande, mais tu ne peux pas pister d'autre joueurs."
target_limit_reached: "{prefix}&e{player}&r ne peux pas pister d'autre joueurs pour le moment et ne te pistes donc pas..."
refused:
player: "{prefix}&e{target}&r a &crefusé&r ta requête."
target: "{prefix}&e{player}&r ne te pistes plus."

POSITION:
list: "{prefix}&rPositions nommées : {list}."
list_empty: "{prefix}&rAucune position nommée."

ADD: "{prefix}&aLa position &e{target}&a a été créée."
DEL: "{prefix}&aLa position &e{target}&a a été supprimée."
START: "{prefix}&6Tu pistes maintenant la position &e{target}&6."
STOP: "{prefix}&6Tu ne pistes plus la position &e{target}&6."

help: # Voir tracker_settings pour les valeurs de substitution
help:
header: "&e| {prefix} &aAide pistage &l{tracker}"
separator: "&e-----------------------------------------------------"

COORDS:
noargs: |
&r- &c/{command} &e{COORDS}
&7 Affiche la liste des coordonnées nommées.
ADD: |
&r- &c/{command} &e{COORDS} &6{ADD} &3<nom> &b<x> <z>
&7 Crée une coordonnée nommée.
DEL: |
&r- &c/{command} &e{COORDS} &6{DEL} &3<nom>
&7 Supprime une coordonnée nommée.
START: |
&r- &c/{command} &e{COORDS} &6{START} &3<nom>
&7 Démarre le pistage d'une coordonnée nommée.
STOP: |
&r- &c/{command} &e{COORDS} &6{STOP} &3<nom>
&7 Arrête le pistage d'une coordonnée nommée.
DEATH_POSITION:
noargs: |
&r- &c/{command} &e{DEATH_POSITION}
&7 Affiche les coordonnées de ta dernière mort.
START: |
&r- &c/{command} &e{DEATH_POSITION} &6{START}
&7 Démarre le pistage de ta dernière mort.
STOP: |
&r- &c/{command} &e{DEATH_POSITION} &6{STOP}
&7 Arrête le pistage de ta dernière mort.
PLAYER:
noargs: |
&r- &c/{command} &e{PLAYER}
&7 Affiche la liste des joueurs que tu pistes.
ASK: |
&r- &c/{command} &e{PLAYER} &6{ASK} &3<nom>
&7 Demande à un joueur de le pister.
START: |
&r- &c/{command} &e{PLAYER} &6{START} &3<nom>
&7 Démarre le pistage d'un joueur (sans demande).
STOP: |
&r- &c/{command} &e{PLAYER} &6{STOP} &3<nom>
&7 Arrête le pistage d'un joueur.
POSITION:
noargs: |
&r- &c/{command} &e{POSITION}
&7 Affiche la liste des positions nommées.
ADD: |
&r- &c/{command} &e{POSITION} &6{ADD} &3<nom> &b<x> <z>
&7 Crée une position nommée.
DEL: |
&r- &c/{command} &e{POSITION} &6{DEL} &3<nom>
&7 Supprime une position nommée.
START: |
&r- &c/{command} &e{POSITION} &6{START} &3<nom>
&7 Démarre le pistage d'une position nommée.
STOP: |
&r- &c/{command} &e{POSITION} &6{STOP} &3<nom>
&7 Arrête le pistage d'une position nommée.
limits:
ADD: "{prefix}&cTu as atteind la limite de {tracker}."
START: "{prefix}&cTu ne peux pas cibler plus de {limit} {tracker}."
Loading

0 comments on commit a89d0ef

Please sign in to comment.