<--! To make sure you have all the keys in hand to be able to help you, I invite you to fill out the form as proposed below, including information about your server. Are you ready to go? Let's do it! (just delete wrong informations) -->
Versions:
I'm using a minecraft server [1.19.3] (do /ver in your console)
I'm using skript version [2.6.4] (do /ver skript in your console)
I'm using SkEmail version [1.7] (do /ver skemail in your console)
About the issue:
There are a few issues with the addon:
First of all, the whole documentation about logging in with a gmail account is outdated. Google has removed the option to access with unsecure apps, therefore it's not possible to use a mail and password login. I don't know how you could fix this to allow people to auth with G-Mail, maybe by creating an app on google cloud that asks users to authenticate (via a link in chat). After that the Bearer token that is redirected to a specific URL could be saved in memory for the player to use. No clue how to implement it, however.
Since Gmail is the only provider with this issue, I tried with an outlook mail (live.it), however, after reloading a skript with this code:
command /auth:
trigger:
login to hotmail session "HIDDEN AUTH MAIL@live.it" using pass "HIDDEN"
command /send:
trigger:
make new email:
set object of email to "Test email"
set body of email to "Look my beautiful email my friend!"
set receiver of email to "HIDDEN TARGET MAIL"
send last email created
I got a bunch of warnings in the console, along with a message saying that the provided mail and pw were incorrect.
[17:07:07 WARN]: java.lang.NoSuchFieldException: handlers
[17:07:07 WARN]: at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
[17:07:07 WARN]: at SkEmail-1.7.1-all.jar//com.olyno.skemail.util.ReflectionUtils.getField(ReflectionUtils.java:174)
[17:07:07 WARN]: at SkEmail-1.7.1-all.jar//com.olyno.skemail.util.EffectSection.stopLog(EffectSection.java:79)
[17:07:07 WARN]: at SkEmail-1.7.1-all.jar//com.olyno.skemail.util.EffectSection.loadSection(EffectSection.java:141)
[17:07:07 WARN]: at SkEmail-1.7.1-all.jar//com.olyno.skemail.scopes.ScopeEmailCreation.init(ScopeEmailCreation.java:54)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:255)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.Condition.parse(Condition.java:77)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.sections.SecConditional.init(SecConditional.java:83)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.Section.init(Section.java:69)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:255)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:177)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.Section.lambda$parse$0(Section.java:157)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.Section$SectionContext.modify(Section.java:190)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.lang.Section.parse(Section.java:156)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:1128)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.command.Commands.loadCommand(Commands.java:500)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:708)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.lambda$loadScripts$4(ScriptLoader.java:526)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.lambda$makeFuture$2(ScriptLoader.java:418)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.makeFuture(ScriptLoader.java:434)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:525)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.ScriptLoader.reloadScript(ScriptLoader.java:1061)
[17:07:07 WARN]: at Skript-2.6.4.jar//ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:169)
[17:07:07 WARN]: at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45)
[17:07:07 WARN]: at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:155)
[17:07:07 WARN]: at org.bukkit.craftbukkit.v1_19_R2.CraftServer.dispatchCommand(CraftServer.java:911)
[17:07:07 WARN]: at org.bukkit.craftbukkit.v1_19_R2.command.BukkitCommandWrapper.run(BukkitCommandWrapper.java:64)
[17:07:07 WARN]: at com.mojang.brigadier.CommandDispatcher.execute(CommandDispatcher.java:264)
[17:07:07 WARN]: at net.minecraft.commands.CommandDispatcher.performCommand(CommandDispatcher.java:316)
[17:07:07 WARN]: at net.minecraft.commands.CommandDispatcher.a(CommandDispatcher.java:300)
[17:07:07 WARN]: at net.minecraft.server.network.PlayerConnection.a(PlayerConnection.java:2288)
[17:07:07 WARN]: at net.minecraft.server.network.PlayerConnection.lambda$handleChatCommand$20(PlayerConnection.java:2248)
[17:07:07 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.b(IAsyncTaskHandler.java:59)
[17:07:07 WARN]: at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
[17:07:07 WARN]: at net.minecraft.server.TickTask.run(TickTask.java:18)
[17:07:07 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.d(IAsyncTaskHandler.java:153)
[17:07:07 WARN]: at net.minecraft.util.thread.IAsyncTaskHandlerReentrant.d(IAsyncTaskHandlerReentrant.java:24)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1341)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197)
[17:07:07 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.x(IAsyncTaskHandler.java:126)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.bh(MinecraftServer.java:1318)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.x(MinecraftServer.java:1311)
[17:07:07 WARN]: at net.minecraft.util.thread.IAsyncTaskHandler.c(IAsyncTaskHandler.java:136)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.i_(MinecraftServer.java:1289)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1177)
[17:07:07 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316)
[17:07:07 WARN]: at java.base/java.lang.Thread.run(Thread.java:833)
<--! To make sure you have all the keys in hand to be able to help you, I invite you to fill out the form as proposed below, including information about your server. Are you ready to go? Let's do it! (just delete wrong informations) -->
Versions:
I'm using a minecraft server [1.19.3] (do
/ver
in your console) I'm using skript version [2.6.4] (do/ver skript
in your console) I'm using SkEmail version [1.7] (do/ver skemail
in your console)About the issue:
There are a few issues with the addon:
First of all, the whole documentation about logging in with a gmail account is outdated. Google has removed the option to access with unsecure apps, therefore it's not possible to use a mail and password login. I don't know how you could fix this to allow people to auth with G-Mail, maybe by creating an app on google cloud that asks users to authenticate (via a link in chat). After that the Bearer token that is redirected to a specific URL could be saved in memory for the player to use. No clue how to implement it, however.
Since Gmail is the only provider with this issue, I tried with an outlook mail (live.it), however, after reloading a skript with this code:
I got a bunch of warnings in the console, along with a message saying that the provided mail and pw were incorrect.
How can those errors / bugs be fixed?