You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[GuildApi] Delete confirmed message if GuildCreateEvent is canceled #267
I want to deny create of guild if there have same name
Actually, the Guild plugin will not take § like same name so a guild can have §aHello and another one §bHello so i make a plugin do check name and prefix if equals (prefix is something i make for my server, so its not something i ask for in guild plugin directly)
Your Environment
Guilds version : 3.5.3.7
MC Version : 1.12.2
Thanks for reading !
PS : Maybe its needed for every event that have a /confirm command ?
If not canceled the player will have : "Action confirmed" and the message for the guild creation like "Your guild has been created" !
If canceled the player will just have "Action confirmed" but its can be confusing for the player if he see this :p
Ahh, I see what you are saying. I think I know a way to handle this. So currently the messages are tied to the confirm / deny commands. I can just move the messages from those to the individual commands where events are taking place and then just send the message at the end.
Sorry for the delay on this. I also totally forgot about it. I'm releasing an update soon and it sadly won't be in it (totally my fault for forgetting). If you want it quicker, you could just PR it for me. It's kind of a mess since I need to assess where all the issues might be.
No worries about that, but if i understand, i should remove CommandConfirm.java and put the message in (For guild creation for example) to CommandCreate.java after if the event is canceled ?
Activity
darbyjack commentedon Nov 27, 2019
If I understand this correctly, cancelling a CreateEvent with the API causes it to send a message as if the user confirmed it?
Flashback083 commentedon Nov 27, 2019
If not canceled the player will have : "Action confirmed" and the message for the guild creation like "Your guild has been created" !
If canceled the player will just have "Action confirmed" but its can be confusing for the player if he see this :p
darbyjack commentedon Nov 27, 2019
Ahh, I see what you are saying. I think I know a way to handle this. So currently the messages are tied to the confirm / deny commands. I can just move the messages from those to the individual commands where events are taking place and then just send the message at the end.
darbyjack commentedon Dec 26, 2019
Sorry for the delay on this. I also totally forgot about it. I'm releasing an update soon and it sadly won't be in it (totally my fault for forgetting). If you want it quicker, you could just PR it for me. It's kind of a mess since I need to assess where all the issues might be.
Flashback083 commentedon Dec 27, 2019
No worries about that, but if i understand, i should remove CommandConfirm.java and put the message in (For guild creation for example) to CommandCreate.java after if the event is canceled ?