mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancydialogs: Add DialogImpl
This commit is contained in:
@@ -43,6 +43,10 @@ public class FancyDialogsPlugin extends JavaPlugin {
|
||||
this.fancyLogger = new ExtendedFancyLogger("FancyDialogs", LogLevel.INFO, List.of(consoleAppender, jsonAppender), new ArrayList<>());
|
||||
}
|
||||
|
||||
public static FancyDialogsPlugin get() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoad() {
|
||||
dialogRegistry = new DialogRegistry();
|
||||
@@ -71,11 +75,6 @@ public class FancyDialogsPlugin extends JavaPlugin {
|
||||
fancyLogger.info("Successfully disabled FancyDialogs version %s".formatted(getDescription().getVersion()));
|
||||
}
|
||||
|
||||
public static FancyDialogsPlugin get() {
|
||||
return INSTANCE;
|
||||
}
|
||||
|
||||
|
||||
public ExtendedFancyLogger getFancyLogger() {
|
||||
return fancyLogger;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.fancyinnovations.fancydialogs.dialog;
|
||||
|
||||
import com.fancyinnovations.fancydialogs.api.Dialog;
|
||||
import com.fancyinnovations.fancydialogs.api.data.types.DialogType;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public class DialogImpl extends Dialog {
|
||||
|
||||
public DialogImpl(@NotNull String id, @NotNull Type type, @NotNull DialogType dialog) {
|
||||
super(id, type, dialog);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void open(Player player) {
|
||||
// TODO open dialog packet
|
||||
}
|
||||
|
||||
@Override
|
||||
public void close(Player player) {
|
||||
// TODO close dialog packet
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user