forked from notnoahj/Votifier
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPlayerVotedEvent.cs
More file actions
28 lines (24 loc) · 914 Bytes
/
Copy pathPlayerVotedEvent.cs
File metadata and controls
28 lines (24 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using fr34kyn01535.Votifier.Config;
using Rocket.API.Eventing;
using Rocket.API.Player;
using Rocket.Core.Player.Events;
namespace fr34kyn01535.Votifier
{
public class PlayerVotedEvent : PlayerEvent, ICancellableEvent
{
public ServiceDefinition Service { get; }
public PlayerVotedEvent(IPlayer player, ServiceDefinition service) : base(player)
{
Service = service;
}
public PlayerVotedEvent(IPlayer player, ServiceDefinition service, bool global = true) : base(player, global)
{
Service = service;
}
public PlayerVotedEvent(IPlayer player, ServiceDefinition service, EventExecutionTargetContext executionTarget = EventExecutionTargetContext.Sync, bool global = true) : base(player, executionTarget, global)
{
Service = service;
}
public bool IsCancelled { get; set; }
}
}