FIx initial errors

This commit is contained in:
Telesphoreo 2023-06-15 17:57:36 -05:00
parent 72218f9268
commit dc1b460c6a
No known key found for this signature in database
GPG Key ID: 68B745F7F8C2FADA
2 changed files with 12 additions and 3 deletions

View File

@ -20,35 +20,43 @@ public class ItemizerX extends JavaPlugin {
case "v1_20_R1": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_20_R1.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_20_R1.ItemizerXTab());
return;
}
case "v1_19_R3": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R3.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R3.ItemizerXTab());
return;
}
case "v1_19_R2": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R2.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R2.ItemizerXTab());
return;
}
case "v1_19_R1": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R1.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R1.ItemizerXTab());
return;
}
case "v1_18_R2": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R2.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R2.ItemizerXTab());
return;
}
case "v1_18_R1": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R1.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R1.ItemizerXTab());
return;
}
case "v1_17_R1": {
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_17_R1.ItemizerXCommand());
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_17_R1.ItemizerXTab());
return;
}
default:
default: {
getLogger().severe("You are trying to run ItemizerX on an incompatible server version.");
getLogger().severe("ItemizerX only supports versions 1.17 to 1.20, disabling plugin.");
getServer().getPluginManager().disablePlugin(this);
}
}
}

View File

@ -1,9 +1,10 @@
name: ItemizerX
version: 3.0
api-version: 1.20
version: 2.0
api-version: 1.17
description: A rewrite of Itemizer
author: Focusvity, Telesphoreo
main: dev.plex.itemizerx.ItemizerX
folia-supported: true
softdepend:
- CoreProtect
commands: