-
Notifications
You must be signed in to change notification settings - Fork 0
/
WipeTime.cs
47 lines (37 loc) · 1.24 KB
/
WipeTime.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
using System;
using Oxide.Core;
using Oxide.Core.Plugins;
namespace Oxide.Plugins
{
[Info("Wipe Time", "NoxTGM", "1.0.0")]
[Description("Affiche la date du prochain wipe au dessus des autres status en bas à droite.")]
internal class WipeTime : CovalencePlugin
{
#region Variables
[PluginReference]
private Plugin StatusFramework;
[PluginReference]
private Plugin ImageLibrary;
#endregion
#region Hooks
private void OnServerInitialized() {
ImageLibrary.Call<bool>("AddImage", "https://i.imgur.com/MLRiCM0.png", "wave", 0UL);
Func<BasePlayer, bool> condition = (player) => { return true; };
StatusFramework?.Call("CreateStatus",
"wipe.timer",
"0.972 0.922 0.890 0.04",
"NEXT WIPE", // Text that will be displayed before the date
"1 1 1 0.8",
"01/01/2024", // Edit with the following wipe's date
"1 1 1 1",
"wave",
"1 1 1 0.5",
condition
);
}
private void Unload() {
StatusFramework?.Call("DeleteStatus", "wipe.timer");
}
#endregion
}
}