Discord Bot to whitelist players

Discussion in 'Plugin Requests' started by VNGC, Jun 26, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    VNGC

    Plugin category: Bots (i think?)

    Minecraft version: 1.8

    Suggested name: WhitelistBot

    What I want: I would Like to have a Discord bot, where everyone can use the Channel #Whitelist and use !whitelist <IGN> to whitelist him to my Server.

    Ideas for commands: not needed i think?

    Ideas for permissions: not needed i think?

    When I'd like it by:
    as soon as possible, but because it doesnt sounds that easy, you can actually take time.
     
  2. Offline

    Plootonix

  3. Offline

    VNGC

    its not working for 1.8, and there i have to use a command. the players should whitelist theirselfes
     
  4. Offline

    timtower Administrator Administrator Moderator

    @VNGC It has specific permissions so you can have your users add themselves.
    And do you have an error log then?
     
  5. Offline

    VNGC

    i didnt tried it, as it gives himself only for 1.12-1.15, but i can try it.
     
  6. Offline

    Lightcaster5

    it wouldnt be hard, just use the JDA library. Have your a bot.jar and your botplugin.jar and each communicate with a sql db. When a user joins the discord server, add them to the sql db. When a player tries to join, check if they are in the sql db, if so, let them join, if not, set the kick message to something like 'You must join the discord server first! discord.gg/YOUR_SERVER_LINK'

    EDIT: actually, you wouldnt need JDA, only use it if you want a connection to just the plugin, no sql db in between the two. (btw, JDA is a java discord api/wrapper, so instead of using node, you can use java!)
     
  7. Offline

    VNGC

    @timtower i tried the Plugin, and it showed this on startup after configuring:

    Code:
    [16:28:08] [Server thread/ERROR]: Error occurred while enabling DiscordWhitelister v1.3.5 (Is it up to date?)
    java.lang.ExceptionInInitializerError
        at java.lang.Class.forName0(Native Method) ~[?:1.8.0_221]
        at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_221]
        at net.dv8tion.jda.internal.utils.JDALogger.<clinit>(JDALogger.java:49) ~[?:?]
        at net.dv8tion.jda.internal.entities.EntityBuilder.<clinit>(EntityBuilder.java:57) ~[?:?]
        at net.dv8tion.jda.api.EmbedBuilder.build(EmbedBuilder.java:125) ~[?:?]
        at uk.co.angrybee.joe.DiscordClient.BuildStrings(DiscordClient.java:110) ~[?:?]
        at uk.co.angrybee.joe.DiscordClient.InitializeClient(DiscordClient.java:59) ~[?:?]
        at uk.co.angrybee.joe.DiscordWhitelister.InitBot(DiscordWhitelister.java:211) ~[?:?]
        at uk.co.angrybee.joe.DiscordWhitelister.onEnable(DiscordWhitelister.java:61) ~[?:?]
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.loadPlugin(CraftServer.java:356) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.craftbukkit.v1_8_R1.CraftServer.enablePlugins(CraftServer.java:316) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.q(MinecraftServer.java:402) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.k(MinecraftServer.java:370) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.a(MinecraftServer.java:325) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.DedicatedServer.init(DedicatedServer.java:211) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:505) [spigot.jar:git-Spigot-c3c767f-33d5de3]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_221]
    Caused by: java.lang.SecurityException: sealing violation: package org.apache.logging.log4j.spi is sealed
        at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:400) ~[?:1.8.0_221]
        at java.net.URLClassLoader.definePackageInternal(URLClassLoader.java:420) ~[?:1.8.0_221]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:452) ~[?:1.8.0_221]
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_221]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_221]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_221]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_221]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:195) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_221]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_221]
        at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_221]
        at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_221]
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_221]
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[?:1.8.0_221]
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[?:1.8.0_221]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[?:1.8.0_221]
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[?:1.8.0_221]
        at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_221]
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[?:1.8.0_221]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.JavaPluginLoader.getClassByName(JavaPluginLoader.java:195) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:97) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) ~[spigot.jar:git-Spigot-c3c767f-33d5de3]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_221]
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_221]
        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:36) ~[?:?]
        ... 20 more
     
  8. Offline

    timtower Administrator Administrator Moderator

    @VNGC Never seen that one.
    Issue with the plugin is that it is packaging all its required libraries as well.
    Should not be doing that though.
     
  9. Offline

    VNGC

    so what should i do? just wait if somebody will make a plugin for me, or use another? could not find another Plugin
     
    colmalle likes this.
  10. Offline

    colmalle

    I can try if this is still relevant
     
  11. Offline

    colmalle

    Here is the plugin. I have just uploaded it so you might need to wait for approval. If you have any issue or suggestion please open a new issue on the site with the corresponding tag
     
Thread Status:
Not open for further replies.

Share This Page