protected override void Load() { Instance = this; U.Events.OnPlayerConnected += voteTrigger; if (Configuration.Instance.EnableRewardBundles) { OnPlayerVoted += Votifier_OnPlayerVoted; } }
public CommandReward(IPlugin plugin) { _votifier = (Votifier)plugin; }
public void Execute(IRocketPlayer caller, params string[] command) { Votifier.Vote((UnturnedPlayer)caller); }