diff --git a/pom.xml b/pom.xml index 6485fa9..054e847 100644 --- a/pom.xml +++ b/pom.xml @@ -1,132 +1,132 @@ - - 4.0.0 - - com.github.tbmcplugins - DiscordPlugin - 0.0.1-SNAPSHOT - jar - - DiscordPlugin - http://maven.apache.org - - - src/main/java - - - src - - **/*.java - - - - src/main/resources - - *.properties - *.yml - *.csv - *.txt - - true - - - DiscordPlugin - - - maven-compiler-plugin - 3.3 - - 1.8 - 1.8 - - - - org.apache.maven.plugins - maven-shade-plugin - 2.4.2 - - - package - - shade - - - - - com.github.austinv11:Discord4J - - - - - - - - - - - - - org.apache.maven.plugins - maven-resources-plugin - 3.0.1 - - - copy - compile - - copy-resources - - - target - - - resources - - - - - - - - - - - UTF-8 - - - - - spigot-repo - https://hub.spigotmc.org/nexus/content/repositories/snapshots/ - - - jcenter - http://jcenter.bintray.com - - - jitpack.io - https://jitpack.io - - - - - - junit - junit - 3.8.1 - test - - - org.spigotmc - spigot-api - 1.9.2-R0.1-SNAPSHOT - - - com.github.austinv11 - Discord4j - 2.6.0 - - - - + + 4.0.0 + + com.github.tbmcplugins + DiscordPlugin + 0.0.1-SNAPSHOT + jar + + DiscordPlugin + http://maven.apache.org + + + src/main/java + + + src + + **/*.java + + + + src/main/resources + + *.properties + *.yml + *.csv + *.txt + + true + + + DiscordPlugin + + + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + org.apache.maven.plugins + maven-shade-plugin + 2.4.2 + + + package + + shade + + + + + org.spigotmc:spigot-api + + + + + + + + + + + + + org.apache.maven.plugins + maven-resources-plugin + 3.0.1 + + + copy + compile + + copy-resources + + + target + + + resources + + + + + + + + + + + UTF-8 + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + jcenter + http://jcenter.bintray.com + + + jitpack.io + https://jitpack.io + + + + + + junit + junit + 3.8.1 + test + + + org.spigotmc + spigot-api + 1.9.2-R0.1-SNAPSHOT + + + com.github.austinv11 + Discord4j + 2.6.0 + + + + diff --git a/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java b/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java index cdfab07..ac710d4 100644 --- a/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java +++ b/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java @@ -5,7 +5,7 @@ import org.bukkit.Bukkit; import org.bukkit.plugin.java.JavaPlugin; import com.google.common.base.Charsets; -import sx.blah.discord.api.ClientBuilder; +import sx.blah.discord.api.*; /** * Hello world! @@ -17,8 +17,8 @@ public class DiscordPlugin extends JavaPlugin { try { Bukkit.getLogger().info("Initializing DiscordPlugin..."); ClientBuilder cb = new ClientBuilder(); - cb.withToken(IOUtils.toString(getClass().getResourceAsStream("Token.txt"), Charsets.UTF_8)); - cb.login(); + cb.withToken(IOUtils.toString(getClass().getResourceAsStream("/Token.txt"), Charsets.UTF_8)); + IDiscordClient dc = cb.login(); } catch (Exception e) { e.printStackTrace(); Bukkit.getPluginManager().disablePlugin(this);