diff --git a/README.md b/README.md index 59aa0de..1ad64c6 100755 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # DiscordPlugin -A plugin that controls the ChromaBot Discord bot and provides Minecraft chat functionality and other features. +A plugin that provides Minecraft chat functionality and other features. -## Features -### Announce new posts from /r/ChromaGamers -If it's a (distinguished) moderator post, it'll be posted to the \#announcements channel, otherwise it'll be posted and pinned to \#general. +## Setup +This plugin needs Chroma-Core to work. If you have that and this plugin, start the server, and follow the instructions. +You'll need a Discord application made, and a bot account created for it. +You can restart the plugin using /discord reset without having to restart the whole server. -### Announce server restarts -It announces server starts/stops and restarts, as well as if the server shut down unexpectedly. - -**For more, see:** http://chromapedia.wikia.com/wiki/ChromaBot +## Building +Maven is used to build this project with all of its dependencies. You will need Spigot 1.12.2 and 1.14.4 built using BuildTools. diff --git a/pom.xml b/pom.xml index ef176c3..6082237 100755 --- a/pom.xml +++ b/pom.xml @@ -194,12 +194,6 @@ ${branch}-SNAPSHOT provided - - com.github.milkbowl - VaultAPI - master-SNAPSHOT - provided - net.ess3 EssentialsX diff --git a/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java b/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java index a38389a..8f8a257 100755 --- a/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java +++ b/src/main/java/buttondevteam/discordplugin/DiscordPlugin.java @@ -33,7 +33,6 @@ import discord4j.core.object.util.Snowflake; import discord4j.store.jdk.JdkStoreService; import lombok.Getter; import lombok.val; -import net.milkbowl.vault.permission.Permission; import org.bukkit.Bukkit; import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.entity.Player; @@ -284,20 +283,4 @@ public class DiscordPlugin extends ButtonPlugin { } public static final ReactionEmoji DELIVERED_REACTION = ReactionEmoji.unicode("✅"); - - public static Permission perms; - - private boolean setupProviders() { - try { - Class.forName("net.milkbowl.vault.permission.Permission"); - Class.forName("net.milkbowl.vault.chat.Chat"); - } catch (ClassNotFoundException e) { - return false; - } - - RegisteredServiceProvider permsProvider = Bukkit.getServer().getServicesManager() - .getRegistration(Permission.class); - perms = permsProvider.getProvider(); - return perms != null; - } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index f7ffcf1..6316a13 100755 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -7,4 +7,4 @@ softdepend: - Essentials commands: discord: -website: 'https://github.com/TBMCPlugins/DiscordPlugin' +website: 'https://github.com/TBMCPlugins/Chroma-Discord'