From e8b4ed2204087a20328697cdaf76ec0af6e3db0e Mon Sep 17 00:00:00 2001 From: NecrossIT <2foralp@googlemail.com> Date: Sat, 10 Jun 2023 12:54:20 +0200 Subject: [PATCH] feature: server related events --- listener.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/listener.go b/listener.go index 0dfe50e..d93313a 100644 --- a/listener.go +++ b/listener.go @@ -1,7 +1,9 @@ package Hosting_System_Plugin_Library +import "github.com/Cerberus-Labs-Technologies/Hosting-System-Plugin-Library/events" + type HostingListener struct { - Name string + Name events.ServerEvent Handler func() error } @@ -11,7 +13,7 @@ type HostingListenerInterface interface { Execute() error } -func (hl *HostingListener) GetName() string { +func (hl *HostingListener) GetName() events.ServerEvent { return hl.Name }