Hello there!
I think that this plugin is very nice but I missed a thing: a way to report a bug. So I decided to implement that myself and when it was done, post here so you could, if you want, update the plugin.
I was almost done when I got stuck with this error:
Error while compiling: DiscordMessages.cs(587,72): error CS1041: Identifier expected, `false' is a keyword
I spent some time trying to figure out what was the issue but I wasn't able to do so. And by the way, I did not use player data, since I don't think that it's import to keep a track of how many bugs reports a player did. If you want you can add that to open more opportunities like blocking a player from reporting bugs if he has more than X bug reports, feel free to do so but I won't mess with that.
On the other hand, I added a permission to use the command but since I'm not using player data, I used player.HasPermission to check that. The only thing that I would "lose" for not using the player data is the cooldown, but I don't think it's necessary, but, as I said, if you want to edit that and add compatibility with the player data for this command, feel free to do that.
Back to the problem:
I even tried commenting out the lines from 587 to 601 since they just prompt the player if the message was sent or not, but I got the same error (even the line 586 being commented out. I also tried commenting out from 586 to 601 but the error kept the same!).
Since the file has almost 1000 lines, I will upload it somewhere instead of posting the code here so you can look into it.
See the file here: https://pastebin.com/MH5Jt9Ji
For direct download click here
PS.: I obviously added the new variables to the lang/config file but since mine is all translated, I won't upload them. The variables that I added where:
On config file:
On lang file:
Hope that we find out what the problem is soon and that you like this new feature!
Awaiting your response,
Fernando
I think that this plugin is very nice but I missed a thing: a way to report a bug. So I decided to implement that myself and when it was done, post here so you could, if you want, update the plugin.
I was almost done when I got stuck with this error:
Error while compiling: DiscordMessages.cs(587,72): error CS1041: Identifier expected, `false' is a keyword
I spent some time trying to figure out what was the issue but I wasn't able to do so. And by the way, I did not use player data, since I don't think that it's import to keep a track of how many bugs reports a player did. If you want you can add that to open more opportunities like blocking a player from reporting bugs if he has more than X bug reports, feel free to do so but I won't mess with that.
On the other hand, I added a permission to use the command but since I'm not using player data, I used player.HasPermission to check that. The only thing that I would "lose" for not using the player data is the cooldown, but I don't think it's necessary, but, as I said, if you want to edit that and add compatibility with the player data for this command, feel free to do that.
Back to the problem:
I even tried commenting out the lines from 587 to 601 since they just prompt the player if the message was sent or not, but I got the same error (even the line 586 being commented out. I also tried commenting out from 586 to 601 but the error kept the same!).
Since the file has almost 1000 lines, I will upload it somewhere instead of posting the code here so you can look into it.
See the file here: https://pastebin.com/MH5Jt9Ji
For direct download click here
PS.: I obviously added the new variables to the lang/config file but since mine is all translated, I won't upload them. The variables that I added where:
On config file:
- "Bugs - Alert Role": ""
- "Bugs - Embed Color (DECIMAL)": 3329330
- "Bug Report - Webhook URL": "Discord Intro to WeebHooks URL"
On lang file:
- "ReportBugSyntax": "Usage: /bug \"msg\""
- "Embed_BugReportTitle": "Bug Report"
Hope that we find out what the problem is soon and that you like this new feature!
Awaiting your response,
Fernando