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

28
pom.xml
View File

@@ -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>
<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>
<!-- Discord API dependency --> <!-- JDA (Java Discord API) -->
<!-- https://mvnrepository.com/artifact/net.dv8tion/JDA -->
<dependency> <dependency>
<groupId>net.dv8tion</groupId> <groupId>net.dv8tion</groupId>
<artifactId>JDA</artifactId> <artifactId>JDA</artifactId>
<version>5.0.0-beta.22</version> <!-- or the latest version available --> <version>1.2.2_139</version> <!-- Update version to the latest stable version -->
</dependency> </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>

View File

@@ -58,8 +58,7 @@ 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

View File

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

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