Skip to content

Commit

Permalink
Updated ReadMe + Changed Permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
notTamion committed Jul 7, 2023
1 parent 370cbe7 commit 4baa3ca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 26 deletions.
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,6 @@
# DiscordConnector
A Minecraft Plugin that combines Discord and Minecraft
### Commands
- /setbottoken - Set token of your bot
- /setguildid - Set ID of your Discord guild
- /setmcsyntax {syntax} - Change how messages sent on Discord get sent in Minecraft - Example Syntax: [DC]{username}: {message}
- /setdcsyntax {syntax} - Change how messages sent on Minecraft get sent in Discord - Example Syntax: [MC]{username}: {message}
- /setjoinsyntax {syntax} - Change how join messages get sent in Discord - Example Syntax: [MC]{username} joined the Server!
- /setleavesyntax {syntax} - Change how leave messages get sent in Discord - Example Syntax: [MC]{username} left the Server!
- /setstartsyntax {syntax} - Change how start messages get sent in Discord - Example Syntax: Bot Online!
- /setstopsyntax {syntax} - Change how stop messages get sent in Discord - Example Syntax: Bot Offline!
A Minecraft Plugin that connects Discord and Minecraft

If you want to disable a feature just leave the syntax empty
### Channels
Every Channel that has "MCCHAT" in its Description/Topic will act as Bridge for Minecraft and Discord Chat.\
Every Channel that has "MCCONSOLE" in its Description/Topic will act as Minecraft Console. \
The first Channel that has a Description/Topic that starts with "MCSYNTAX:" will have its name changed according to the Syntax that follows after the ":" - Example Syntax: {players} currently online (Because of Discords api this channel can only get Updated every 5 minutes)
### Permissions
- DCChat.token - /setbottoken
- DCChat.id - /setguildid
- DCChat.syntax - /setdcsyntax /setmcsyntax /setjoinsyntax /setleavesyntax
- Manage Server - Execute Commands from Console on Discord
[![Documentation](https://img.shields.io/badge/Documentation-37a779?style=for-the-badge)](https://nottamion.github.io/DiscordConnector/)

For questions or help please contact me on Discord @tamion or SpigotMC.
For questions or help please contact me on Discord: tamion or SpigotMC.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>de.tamion</groupId>
<artifactId>DiscordConnector</artifactId>
<version>2.2.2</version>
<version>2.2.3</version>
<packaging>jar</packaging>

<name>DiscordConnector</name>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tamion/minecraft/MCMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void onEnable() {
getCommand("setstopsyntax").setExecutor(new SetStopSyntax());
getCommand("setguildid").setExecutor(new SetGuildID());

Metrics metrics = new Metrics(this, 19003);
Metrics metrics = new Metrics(this, 19019);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tamion/minecraft/commands/SetGuildID.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class SetGuildID implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String label, @NotNull String[] args) {
if(!sender.hasPermission("DCChat.id")) {
if(!sender.hasPermission("DiscordConnector.id")) {
sender.sendMessage("You are not allowed to execute this Command!");
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tamion/minecraft/commands/SetToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class SetToken implements CommandExecutor {
@Override
public boolean onCommand(@NotNull CommandSender sender, @NotNull Command cmd, @NotNull String label, @NotNull String[] args) {
if(!sender.hasPermission("DCChat.token")) {
if(!sender.hasPermission("DiscordConnector.token")) {
sender.sendMessage("You are not allowed to execute this Command!");
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/tamion/others/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public static void sendtoconsole(MessageEmbed emb) {
});
}
public static String setsyntax(CommandSender sender, String loc, String syntax) {
if(!sender.hasPermission("DCChat.syntax")) {
if(!sender.hasPermission("DiscordConnector.syntax")) {
return "You are not allowed to execute this Command!";
}
MCMain.getPlugin().getConfig().set(loc, syntax);
Expand Down

0 comments on commit 4baa3ca

Please sign in to comment.