LoneDev6 / RPGhuds

Customized HUDs for ItemsAdder
https://www.spigotmc.org/resources/addon-rpghuds-for-itemsadder.97486/
Other
17 stars 13 forks source link

I have a suggestion #2

Open TheMrLhuixx opened 2 years ago

TheMrLhuixx commented 2 years ago

Could you add the option to execute commands when a player reaches the destination point?

LoneDev6 commented 2 years ago

This should be handled by another plugin. Which commands do you need to run after the GPS destination is reached?

TheMrLhuixx commented 2 years ago

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" compass_reached is shown, then at that moment the commands are executed

LoneDev6 commented 2 years ago

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

TheMrLhuixx commented 2 years ago

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

LoneDev6 commented 2 years ago

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

TheMrLhuixx commented 2 years ago

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