forked from mrtwidget/Vaults
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathVaults.cs
54 lines (47 loc) · 2.21 KB
/
Vaults.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
using Logger = Rocket.Core.Logging.Logger;
using Rocket.Core.Plugins;
using System;
using Rocket.API.Collections;
namespace NEXIS.Vaults
{
public class Vault : RocketPlugin<VaultConfiguration>
{
public static Vault Instance;
public DatabaseManager Database;
protected override void Load()
{
Instance = this;
Database = new DatabaseManager();
Logger.Log("Vaults have been successfully loaded!", ConsoleColor.Yellow);
}
protected override void Unload()
{
Logger.Log("Vaults have been successfully unloaded!", ConsoleColor.Yellow);
}
public void FixedUpdate()
{
}
public override TranslationList DefaultTranslations
{
get
{
return new TranslationList() {
{"vault_disabled", "Whoops! Sorry, but Vaults are currently disabled. ='("},
{"vault_invalid_item", "You do not have that item! You can only Vault items in your inventory."},
{"vault_action_invalid", "Invalid action! Type \"/vault help\" for more information."},
{"vault_params_invalid", "Invalid parameters! Type \"/vault help\" for more information."},
{"vault_opened", "You open a Vault and receive the contents inside!"},
{"vault_opened_error", "There was an error opening your Vault!"},
{"vault_saved", "You have saved an item to your Vault!"},
{"vault_saved_inventory", "You saved all items to your Vault!"},
{"vault_saved_error", "There was an error saving your Vault!"},
{"vault_saved_noitems", "You don't have any items to save!"},
{"vault_full", "All of your Vaults are full! You must first clear your vault by typing: /vault delete"},
{"vault_empty", "No Vault exists for you to open! You must save some items first."},
{"vault_delete_empty", "You have no Vaults to delete! Try saving one first: /vault save"},
{"vault_deleted", "You have deleted a Vault!"}
};
}
}
}
}