-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdvancedGodVanish.cs
58 lines (52 loc) · 1.83 KB
/
AdvancedGodVanish.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
using System.IO;
using JetBrains.Annotations;
using Rocket.API.Collections;
using Rocket.Core.Logging;
using Rocket.Core.Plugins;
namespace RedstonePlugins.AdvancedGodVanish
{
public class AdvancedGodVanish : RocketPlugin
{
public static AdvancedGodVanish Instance;
public override TranslationList DefaultTranslations => new TranslationList
{
{
"god_turned_on","{0} has turned on the god mode for the player {1}"
},
{
"god_turned_off","{0} has turned off the god mode for the player {1}"
},
{
"vanish_turned_on","{0} has turned on the vanish mode for the player {1}"
},
{
"vanish_turned_off","{0} has turned off the vanish mode for the player {1}"
},
{
"your_vanish_turned_on", "Your vanish mode has been turned on."
},
{
"your_vanish_turned_off", "Your vanish mode has been turned off."
},
{
"your_god_turned_on", "Your god mode has been turned on."
},
{
"your_god_turned_off", "Your god mode has been turned off."
}
};
[CanBeNull] public string CurrentDirectory = System.IO.Directory.GetCurrentDirectory() + "/..";
protected override void Load()
{
Instance = this;
if (!File.Exists(CurrentDirectory + "/GodVanishLog.txt"))
File.CreateText(CurrentDirectory + "/GodVanishLog.txt");
Logger.Log("Plugin loaded correctly! by educatalan02#1236");
Logger.Log($"Version {Assembly.GetName().Version}");
}
protected override void Unload()
{
Instance = null;
}
}
}