Custom storage
Create your custom storage
1
StorageManager manager = this.getProvider(StorageManager.class);
2
manager.setCustomStorage(new IStorage() {
3
4
@Override
5
public void updateTransaction(List<Transaction> transactions) {
6
// TODO Auto-generated method stub
7
8
}
9
10
@Override
11
public void updateItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
12
// TODO Auto-generated method stub
13
14
}
15
16
@Override
17
public void update(AuctionPlugin plugin, StorageType type) {
18
// TODO Auto-generated method stub
19
20
}
21
22
@Override
23
public void storeTransaction(Transaction transaction) {
24
// TODO Auto-generated method stub
25
26
}
27
28
@Override
29
public void saveTransactions(List<Transaction> transactions) {
30
// TODO Auto-generated method stub
31
32
}
33
34
@Override
35
public void saveItems(AuctionPlugin plugin, List<AuctionItem> auctionItems, StorageType type) {
36
// TODO Auto-generated method stub
37
38
}
39
40
@Override
41
public void saveItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
42
// TODO Auto-generated method stub
43
44
}
45
46
@Override
47
public void save(AuctionPlugin plugin) {
48
// TODO Auto-generated method stub
49
50
}
51
52
@Override
53
public void removeItem(AuctionPlugin plugin, AuctionItem auctionItem, StorageType type) {
54
// TODO Auto-generated method stub
55
56
}
57
58
@Override
59
public void load(StorageManager storageManager, AuctionPlugin plugin) {
60
// TODO Auto-generated method stub
61
62
}
63
64
@Override
65
public List<Transaction> getTransactions() {
66
// TODO Auto-generated method stub
67
return null;
68
}
69
70
@Override
71
public List<AuctionItem> getItems(AuctionPlugin plugin, StorageType type) {
72
// TODO Auto-generated method stub
73
return null;
74
}
75
});
Copied!
​
Last modified 1mo ago
Copy link