fix all but 1 pom exception
This commit is contained in:
36
pom.xml
36
pom.xml
@@ -23,21 +23,41 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Google API dependency -->
|
<!-- Google dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.google.api-client</groupId>
|
<groupId>com.google.api-client</groupId>
|
||||||
<artifactId>google-api-client</artifactId>
|
<artifactId>google-api-client</artifactId>
|
||||||
<version>2.4.0</version>
|
<version>2.4.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- Discord API dependency -->
|
|
||||||
<!-- https://mvnrepository.com/artifact/net.dv8tion/JDA -->
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.dv8tion</groupId>
|
<groupId>com.google.http-client</groupId>
|
||||||
<artifactId>JDA</artifactId>
|
<artifactId>google-http-client</artifactId>
|
||||||
<version>5.0.0-beta.22</version> <!-- or the latest version available -->
|
<version>1.44.1</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.google.http-client</groupId>
|
||||||
|
<artifactId>google-http-client-jackson2</artifactId>
|
||||||
|
<version>1.44.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- JDA (Java Discord API) -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>net.dv8tion</groupId>
|
||||||
|
<artifactId>JDA</artifactId>
|
||||||
|
<version>1.2.2_139</version> <!-- Update version to the latest stable version -->
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- JFLAC / Sound Codec-->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.jflac</groupId>
|
||||||
|
<artifactId>jflac-codec</artifactId>
|
||||||
|
<version>1.5.2</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.googlecode.soundlibs</groupId>
|
||||||
|
<artifactId>tritonus-all</artifactId>
|
||||||
|
<version>0.3.7.2</version>
|
||||||
|
</dependency>
|
||||||
<!-- Add other dependencies as needed -->
|
<!-- Add other dependencies as needed -->
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@@ -58,9 +58,8 @@ public class MCbot extends JavaPlugin {
|
|||||||
if (playerList.isEmpty()) {
|
if (playerList.isEmpty()) {
|
||||||
return "No players are currently online.";
|
return "No players are currently online.";
|
||||||
} else {
|
} else {
|
||||||
StringBuilder playerList = new StringBuilder("Players online: ");
|
for (Player player : playerList) {
|
||||||
for (Player player : onlinePlayers) {
|
playerList.append(player.getName()).append(", ");
|
||||||
playerList.append(player.getName()).append(", ");
|
|
||||||
}
|
}
|
||||||
// Remove the trailing comma and space
|
// Remove the trailing comma and space
|
||||||
playerList.setLength(playerList.length() - 2);
|
playerList.setLength(playerList.length() - 2);
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
import net.dv8tion.jda.api.JDABuilder;
|
import net.dv8tion.jda.api.JDABuilder;
|
||||||
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
|
||||||
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
import net.dv8tion.jda.api.hooks.ListenerAdapter;
|
||||||
|
import net.dv8tion.jda.api.entities.TextChannel;
|
||||||
|
|
||||||
|
|
||||||
import javax.security.auth.login.LoginException;
|
import javax.security.auth.login.LoginException;
|
||||||
|
|
||||||
|
@@ -1,3 +0,0 @@
|
|||||||
C:\Users\hbmann\Documents\Projects\__MCchatbot\MCbot_bryce\src\main\java\MCbot.java
|
|
||||||
C:\Users\hbmann\Documents\Projects\__MCchatbot\MCbot_bryce\src\main\java\disMCbot.java
|
|
||||||
C:\Users\hbmann\Documents\Projects\__MCchatbot\MCbot_bryce\src\main\java\MCchatbotyt.java
|
|
Reference in New Issue
Block a user