fix all but 1 pom exception

This commit is contained in:
nzBryce101
2024-04-12 10:42:18 +12:00
parent f660f10263
commit 0d8bea51e4
5 changed files with 32 additions and 14 deletions

36
pom.xml
View File

@@ -23,21 +23,41 @@
<scope>provided</scope>
</dependency>
<!-- Google API dependency -->
<!-- Google dependencies -->
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client</artifactId>
<version>2.4.0</version>
</dependency>
<!-- Discord API dependency -->
<!-- https://mvnrepository.com/artifact/net.dv8tion/JDA -->
<dependency>
<groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId>
<version>5.0.0-beta.22</version> <!-- or the latest version available -->
</dependency>
<groupId>com.google.http-client</groupId>
<artifactId>google-http-client</artifactId>
<version>1.44.1</version>
</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 -->
</dependencies>

View File

@@ -58,9 +58,8 @@ public class MCbot extends JavaPlugin {
if (playerList.isEmpty()) {
return "No players are currently online.";
} else {
StringBuilder playerList = new StringBuilder("Players online: ");
for (Player player : onlinePlayers) {
playerList.append(player.getName()).append(", ");
for (Player player : playerList) {
playerList.append(player.getName()).append(", ");
}
// Remove the trailing comma and space
playerList.setLength(playerList.length() - 2);

View File

@@ -1,6 +1,8 @@
import net.dv8tion.jda.api.JDABuilder;
import net.dv8tion.jda.api.events.message.MessageReceivedEvent;
import net.dv8tion.jda.api.hooks.ListenerAdapter;
import net.dv8tion.jda.api.entities.TextChannel;
import javax.security.auth.login.LoginException;

View File

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