AreaShop icon indicating copy to clipboard operation
AreaShop copied to clipboard

Execute command when walking into or exiting a region: title and action bar messages

Open maxlehot1234 opened this issue 8 years ago • 6 comments

By NLThijs48: Current solution, use WorldGuard Extra Flags


HI

I just want to know if you can ADD titles when player enter inside an areashop region.

It will be MUCH better than the chat messages. Also, I think you should remove the message that say to the areashop region owner: greeting-rented: "%region% is rented by %player% until %until%." It was not necessary I think.

Thank you so much

maxlehot1234 avatar Dec 23 '17 05:12 maxlehot1234

Until realization this may be partially achieved by using a plugin called WorldGuardExtraFlags. This allows to to execute commands on player entering/leaving a region. To say execute a title message for a certain player. However it is not a direct integration into AS, therefore all these flags have to be set manually.

EvilOlaf avatar Dec 23 '17 08:12 EvilOlaf

@EvilOlaf And for this: Also, I think you should remove the message that say to the areashop region owner: greeting-rented: "%region% is rented by %player% until %until%." It was not necessary I think.

Is it possible?

maxlehot1234 avatar Dec 24 '17 00:12 maxlehot1234

Go to flagProfiles: section and simply comment or remove the line beginning with greeting:

EvilOlaf avatar Dec 24 '17 08:12 EvilOlaf

@EvilOlaf I disable EVERY greeting: things and I continue to see the: image

It was my OWN shop. Is it possible to hide this message ONLY for the areashop region owner? But display it to all other players?

Thank you

maxlehot1234 avatar Dec 24 '17 16:12 maxlehot1234

@maxlehot1234 You can only have the message active for anyone, or for nobody, it cannot be different per player. AreaShop simply uses the greeting flag of WorldGuard regions, which only offers this option.

The reason that the greeting sticks is that AreaShop only touches the flags that you told it to change. Simply change the greeting lines to greeting: '' instead of commenting them out and AreaShop will remove the greeting flags when you reload.

NLthijs48 avatar Dec 29 '17 13:12 NLthijs48

@EvilOlaf

Might also want to consider that WGExtraFlags has a hard dependency on WG 6.1.3 or higher.

A lot of servers (mine included) still use WG 6.1.2 bc of things like custom plugins & custom flags which work perfectly with that WG version.

More info: 6.1.2 -> 6.1.3 is actually a major version change. 6.1.3 is the version that WG added their own custom flags API, which broke the WGCustomFlags plugin on bukkit. This is the plugin that keeps a lot of servers running WG6.1.2. This plugin and WG6.1.3 handle custom flags differently, so 6.1.3 rekt this plugin, but everyone's custom plugins relied (still rely) on WGCustomFlags which only supports 6.1.2

Flavourized avatar Dec 30 '17 03:12 Flavourized