Skip to content

Commit 6d76fb8

Browse files
fix(punishment): resolve compilation errors in punishment module
Fix wrong mainClass (FriendService -> PunishmentService), add public static void main(String[] args) signature, add missing tags parameter to MuteCommand's PunishPlayerMessage constructor, remove unused import.
1 parent 1e69773 commit 6d76fb8

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

service.punishment/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
}
3838

3939
application {
40-
mainClass.set("net.swofty.service.punishment.FriendService")
40+
mainClass.set("net.swofty.service.punishment.PunishmentService")
4141
}
4242

4343
tasks {

service.punishment/src/main/java/net/swofty/service/punishment/PunishmentService.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
import net.swofty.service.generic.SkyBlockService;
77
import net.swofty.service.generic.redis.ServiceEndpoint;
88

9-
import java.io.ObjectInputFilter;
109
import java.util.List;
1110

1211
public class PunishmentService implements SkyBlockService {
1312

14-
static void main() {
13+
public static void main(String[] args) {
1514
String mongoUri = ConfigProvider.settings().getMongodb();
1615
new PunishmentDatabase(null).connect(mongoUri);
1716
SkyBlockService.init(new PunishmentService());

type.generic/src/main/java/net/swofty/type/generic/command/commands/MuteCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import net.swofty.type.generic.user.categories.Rank;
2121

2222
import java.io.IOException;
23+
import java.util.List;
2324
import java.util.UUID;
2425
import java.util.concurrent.CompletableFuture;
2526
import java.util.concurrent.TimeUnit;
@@ -104,6 +105,7 @@ private void mutePlayer(CommandSender sender, UUID targetUuid, MuteType type, UU
104105
PunishmentType.MUTE.name(),
105106
reason,
106107
senderUuid,
108+
List.of(),
107109
actualTime > 0 ? expiryTime : -1
108110
);
109111

0 commit comments

Comments
 (0)