Skip to content

Commit

Permalink
1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
codedcosmos committed Jul 12, 2020
1 parent 376bce1 commit e3085ed
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 19 deletions.
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group 'codedcosmos'
version '1.3.1'
version '1.4'
mainClassName = 'codedcosmos.enderbot.core.EnderBot'

sourceCompatibility = 1.8
Expand Down Expand Up @@ -35,15 +35,13 @@ sourceSets {
}

dependencies {
compile ('net.dv8tion:JDA:4.1.1_101') {
exclude module: 'opus-java'
}
compile 'net.dv8tion:JDA:4.2.0_175'

compile 'com.google.api-client:google-api-client:1.23.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0'
compile 'com.google.apis:google-api-services-drive:v3-rev110-1.23.0'

compileOnly 'org.spigotmc:spigot:1.15.2-R0.1-SNAPSHOT'
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
}

jar {
Expand Down
6 changes: 6 additions & 0 deletions enderbot.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Ender Bot Configuration File
world-backups-channel-name=minecraft-backups
world-backups-enabled=False
minecraft-ingame-channel-name=minecraft-in-game
world-backups-frequency-in-days=30
discord_bot_token=
4 changes: 2 additions & 2 deletions res/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: EnderBot
version: 1.3.1
version: 1.4
author: codedcosmos
main: codedcosmos.enderbot.plugin.MinecraftPlugin
api-version: 1.15
api-version: 1.16

commands:
enderbackup:
Expand Down
2 changes: 1 addition & 1 deletion src/codedcosmos/enderbot/core/EnderBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

public class EnderBot {

private static final String VERSION = "1.3.1";
private static final String VERSION = "1.4";
private static boolean runningInSpigot = false;

public static void load(boolean runningInSpigot) {
Expand Down
2 changes: 1 addition & 1 deletion src/codedcosmos/enderbot/discord/JDABot.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void initBot() {
Guilds.init();

try {
JDABuilder builder = new JDABuilder(ConfigManager.discord_bot_token);
JDABuilder builder = JDABuilder.createDefault(ConfigManager.discord_bot_token);

builder.setActivity(Activity.playing("Minecraft"));
builder.addEventListeners(new DiscordChatListener());
Expand Down
10 changes: 0 additions & 10 deletions src/codedcosmos/enderbot/plugin/commands/BackupCommand.java
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
package codedcosmos.enderbot.plugin.commands;

import codedcosmos.enderbot.core.ConfigManager;
import codedcosmos.enderbot.core.EnderBot;
import codedcosmos.enderbot.utils.GoogleDrive;
import net.minecraft.server.v1_15_R1.ItemMapEmpty;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import org.bukkit.material.MaterialData;
import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.List;

public class BackupCommand implements CommandExecutor {
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
Expand Down

0 comments on commit e3085ed

Please sign in to comment.