Some documentation and updates

This commit is contained in:
Norbi Peti 2020-02-05 16:49:07 +01:00
parent 26971459ac
commit d58a7e819a
4 changed files with 8 additions and 32 deletions

View file

@ -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.

View file

@ -194,12 +194,6 @@
<version>${branch}-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.milkbowl</groupId> <!-- net.milkbowl.vault -->
<artifactId>VaultAPI</artifactId>
<version>master-SNAPSHOT</version> <!-- 1.6 -->
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.ess3</groupId>
<artifactId>EssentialsX</artifactId>

View file

@ -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<Permission> permsProvider = Bukkit.getServer().getServicesManager()
.getRegistration(Permission.class);
perms = permsProvider.getProvider();
return perms != null;
}
}

View file

@ -7,4 +7,4 @@ softdepend:
- Essentials
commands:
discord:
website: 'https://github.com/TBMCPlugins/DiscordPlugin'
website: 'https://github.com/TBMCPlugins/Chroma-Discord'