-
Notifications
You must be signed in to change notification settings - Fork 1
/
Main.cs
65 lines (60 loc) · 2.76 KB
/
Main.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
using System;
using System.Linq;
using System.Reflection;
using Rocket.API;
using Rocket.Unturned.Player;
using UnityEngine;
using SDG.Unturned;
using Rocket.Core.Plugins;
using Rocket.Core.Logging;
using Rocket.API.Collections;
using Rocket.Unturned.Chat;
using Rocket.Core;
using System.Collections.Generic;
namespace coolpuppy24.rpevents
{
public class Main : RocketPlugin<RPEventsConfiguration>
{
public static string version = "1.0.2.0";
public static Main Instance = null;
protected override void Load()
{
Instance = this;
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Made by: Coolpuppy24");
Rocket.Core.Logging.Logger.LogWarning("-----------------------------");
if (Configuration.Instance.RaidDelay) {
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Raid Delay is Enabled.");
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Minutes Until Raid: " + Configuration.Instance.MinutesUntilRaid);
} else
{
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Raid Delay is Disabled.");
}
Rocket.Core.Logging.Logger.LogWarning("-----------------------------");
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Start Color " + Configuration.Instance.StartColor);
Rocket.Core.Logging.Logger.LogWarning("[RPEvents] Finish Color " + Configuration.Instance.FinishColor);
Rocket.Core.Logging.Logger.Log("Successfully Loaded!");
}
protected override void Unload() { }
public override TranslationList DefaultTranslations
{
get
{
return new TranslationList(){
{"player_not_found","Player not found."},
{"command_rob_help","Please Specify a player to Rob!"},
{"command_raid_help","Please Specify an area to Raid!"},
{"command_arrest_help","Please Specify a player to Arrest!"},
{"command_rob","{0} Has Called a Rob on {1}!"},
{"command_robfinish","The Rob on {0} is Over."},
{"command_raid_delay","{0} Has Called a Raid on {1}, Starting in {2} Minutes!"},
{"command_raid","{0} Has Called a Raid on {1}!"},
{"command_raidfinish","The Raid on {0} is Over."},
{"command_arrest","{0} Has Called an Arrest on {1}!" },
{"command_arrestfinish","The Arrest on {0} is Over."},
{"command_assistance", "{0} Is Requesting Backup!"},
{"command_assistance_specified", "{0} Is Requesting Backup at {1}!"},
};
}
}
}
}