SimpleClans icon indicating copy to clipboard operation
SimpleClans copied to clipboard

Option for always Clanchat without command

Open vaporvee opened this issue 4 years ago • 14 comments

Is your feature request related to a problem? Please describe. I have the discord integration on and the clan system is a big part on my server. But its annoying to type /. every time i want to chat.

Describe the solution you'd like It would be cool if you could turn on something in the config.yml that swaps this whole situation. So that you type /. to chat globaly and when you are in a clan you type just normaly in chat wich automatically sends it to the clan chat. Then you would also have somehow a option to add a tag for messages wich are sent in global chat and a tag for clan messages. For example '[Global Chat]cmod31 > hi' and '[Clan Chat][Clannameher]cmod31 > hi' or something

Also nice plugin thanks

vaporvee avatar Dec 26 '21 22:12 vaporvee

There is the sub command "join" that does a similar thing. You run /. join and everything you write in chat goes to the clan chat. Also works for ally chat.

RoinujNosde avatar Dec 26 '21 22:12 RoinujNosde

Is there an config option that activates it as default?

vaporvee avatar Dec 26 '21 23:12 vaporvee

Nope.

RoinujNosde avatar Dec 26 '21 23:12 RoinujNosde

so could this be added?

vaporvee avatar Dec 26 '21 23:12 vaporvee

so could this be added?

You could probably run this command by players' join. I guess, there are a lot of ways to do it. 👀

Tomut0 avatar Dec 27 '21 11:12 Tomut0

can i run this command after something detects that the player has been added to a clan? When yes then how?

vaporvee avatar Dec 27 '21 12:12 vaporvee

Only clan members are able to use that command. Others will just get a warning message.

RoinujNosde avatar Dec 27 '21 13:12 RoinujNosde

hm still want a config feature then but its your plugin all good Edit: oh you meant members yeah thats good but how can i run a comand when the player joins a clan

vaporvee avatar Dec 27 '21 13:12 vaporvee

how can i run a comand when the player joins a clan

That could be done using SimpleClans' API.

RoinujNosde avatar Dec 27 '21 18:12 RoinujNosde

An option could be added where sending /. without any arguments could access the clan chat?

SrBedrock avatar Dec 27 '21 21:12 SrBedrock

@cmod31, Just a continue of my mind.

You could use Denizen:

# Runs clan chat command after player join
myclan_script:
  type: world
  events:
    after player join:
      - execute as_player "/. join" silent

If you will use Depenizen (it's an extension for Denizen) and PlaceholderAPI:

# Runs clan chat command after player join, also checks if player is joined in clan or not
myclan_script:
 type: world
 events:
   after player join:
     - if <placeholder[simpleclans_in_clan]>:
       - execute as_player "/. join" silent

Tomut0 avatar Dec 27 '21 22:12 Tomut0

ok i'll try would be cool if you add me vaporvee#4320 on discord i'll write you if i can't get the script to work edit: how can i write normaly in chat again i would really like to swap the functionality of /. also its just after player join not when the player gets in the clan

vaporvee avatar Dec 27 '21 23:12 vaporvee

We also have a Discord server for support, you can join on https://discord.gg/CkNwgdE

how can i write normaly in chat again

/. leave

RoinujNosde avatar Dec 28 '21 00:12 RoinujNosde

i meant its not a solution when i want to flip global chat and clan chat

vaporvee avatar Dec 28 '21 11:12 vaporvee