Open TheMrLhuixx opened 2 years ago
This should be handled by another plugin. Which commands do you need to run after the GPS destination is reached?
This should be handled by another plugin. Which commands do you need to run after the GPS destination is reached?
I know that it could be handled from another plugin, but my intention was to have better precision when the player reaches the destination and when "compass_reached" is shown, then at that moment the commands are executed
Nono I mean, I need an example to better understand which commands you wish to execute, let me know.
Because I doubt you want the same exact commands to be executed when you reach a spot. Maybe you also want commands to be defined in a list of set of commands, so you can decide which list of commands to execute based on the location.
For example:
commands:
set_1:
command_1:
cmd: "tell %player_name% hello"
command_2:
cmd: "give %player_name% coal"
set_2:
command_1:
cmd: "give %player_name% diamond"
Then run /rpgcompass LoneDev set world -227 200 136 set_2
.
I'm just thinking out loud
The truth is that I only had in mind to execute commands such as playing a sound and also starting a conversation with npc just at the moment of reaching the destination ... but the way you are giving me the example is not a bad idea
I think I'll implement this idea I had, it's more modular for all the needs of various server. Also you could execute a different sound for each different quest with my idea
I think I'll implement this idea I had, it's more modular for all the needs of various server. Also you could execute a different sound for each different quest with my idea
I think it's great
Could you add the option to execute commands when a player reaches the destination point?