Skip to content

Commit

Permalink
feature: server related events
Browse files Browse the repository at this point in the history
  • Loading branch information
NecrossIT committed Jun 10, 2023
1 parent a017c1a commit e8b4ed2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions listener.go
Original file line number Diff line number Diff line change
@@ -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
}

Expand All @@ -11,7 +13,7 @@ type HostingListenerInterface interface {
Execute() error
}

func (hl *HostingListener) GetName() string {
func (hl *HostingListener) GetName() events.ServerEvent {
return hl.Name
}

Expand Down

0 comments on commit e8b4ed2

Please sign in to comment.