summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorKeuin <[email protected]>2021-03-01 22:39:47 +0800
committerkeuin <[email protected]>2021-03-01 22:40:10 +0800
commitd5f6f8226da591c6202508203bbbc1ab5c0636dd (patch)
tree8668ca0b9e9436f7a0eb24f1378d4697d943f41b /src/main
parent45419f1d97ba8c0e687af23c802a00369a42b50c (diff)
refactor
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java2
-rw-r--r--src/main/java/com/keuin/kbackupfabric/backup/provider/PrimitiveBackupInformation.java14
2 files changed, 1 insertions, 15 deletions
diff --git a/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java b/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
index a8c3e0c..2b2865e 100644
--- a/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
+++ b/src/main/java/com/keuin/kbackupfabric/KBPluginEvents.java
@@ -41,11 +41,11 @@ public final class KBPluginEvents implements ModInitializer, ServerStartCallback
@Override
public void onStartServer(MinecraftServer server) {
+ // Buggy: this does not work
if (!(server instanceof MinecraftDedicatedServer))
throw new RuntimeException("KBackup is a server-side-only plugin. Please do not use it in client-side.");
// Bind fabric events
-
OnPlayerConnect.ON_PLAYER_CONNECT.register((connection, player)
-> NotificationManager.INSTANCE.notifyPlayer(DistinctNotifiable.fromServerPlayerEntity(player)));
diff --git a/src/main/java/com/keuin/kbackupfabric/backup/provider/PrimitiveBackupInformation.java b/src/main/java/com/keuin/kbackupfabric/backup/provider/PrimitiveBackupInformation.java
deleted file mode 100644
index 53f049c..0000000
--- a/src/main/java/com/keuin/kbackupfabric/backup/provider/PrimitiveBackupInformation.java
+++ /dev/null
@@ -1,14 +0,0 @@
-package com.keuin.kbackupfabric.backup.provider;
-
-import com.keuin.kbackupfabric.backup.name.BackupFileNameEncoder;
-
-import java.time.LocalDateTime;
-
-public class PrimitiveBackupInformation extends BackupFileNameEncoder.BackupBasicInformation {
- public final long sizeBytes;
-
- public PrimitiveBackupInformation(String customName, LocalDateTime time, long sizeBytes) {
- super(customName, time);
- this.sizeBytes = sizeBytes;
- }
-}