52
52
import org .apache .commons .lang3 .tuple .Triple ;
53
53
import org .bstats .bukkit .Metrics ;
54
54
import org .bukkit .Bukkit ;
55
+ import org .bukkit .NamespacedKey ;
55
56
import org .bukkit .command .PluginCommand ;
56
57
import org .bukkit .command .TabExecutor ;
57
58
import org .bukkit .event .Listener ;
@@ -65,6 +66,7 @@ public class PostBoxPlugin extends JavaPlugin implements Listener {
65
66
private static final Logger LOG = Logger .getLogger (PostBoxPlugin .class .getName ());
66
67
public static PostBoxPlugin instance = null ;
67
68
69
+ private NamespacedKey namespacedKey ;
68
70
private HashMap <String , TabExecutor > commandMap ;
69
71
private Updater updater ;
70
72
private LuckPerms luckPermsApi ;
@@ -110,6 +112,8 @@ public void onEnable() {
110
112
.getString (CurrentEntries .CONF_UPDATER_CLASSIFIER .toString ()),
111
113
Bukkit .getUpdateFolderFile ());
112
114
115
+ this .namespacedKey = new NamespacedKey (instance , "PostBox_c765a011bcd709a9c8d417be90a7f090" );
116
+
113
117
this .commandMap .put ("postbox" , new CommandPostBox ());
114
118
this .commandMap .put ("postbox-open" , new CommandPostBoxOpen ());
115
119
this .commandMap .put ("postbox-openother" , new CommandPostBoxOpenOther ());
@@ -219,4 +223,8 @@ public ProfileService getProfileService() {
219
223
public ArrayList <Triple <UUID , Inventory , UUID >> getInventoryMappings () {
220
224
return inventoryMappings ;
221
225
}
226
+
227
+ public NamespacedKey getNamespacedKey () {
228
+ return namespacedKey ;
229
+ }
222
230
}
0 commit comments