mirror of
https://github.com/plexusorg/ItemizerX.git
synced 2024-11-22 04:05:01 +00:00
FIx initial errors
This commit is contained in:
parent
72218f9268
commit
dc1b460c6a
@ -20,37 +20,45 @@ public class ItemizerX extends JavaPlugin {
|
|||||||
case "v1_20_R1": {
|
case "v1_20_R1": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_20_R1.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_20_R1.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_20_R1.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_20_R1.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_19_R3": {
|
case "v1_19_R3": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R3.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R3.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R3.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R3.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_19_R2": {
|
case "v1_19_R2": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R2.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R2.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R2.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R2.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_19_R1": {
|
case "v1_19_R1": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R1.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_19_R1.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R1.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_19_R1.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_18_R2": {
|
case "v1_18_R2": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R2.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R2.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R2.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R2.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_18_R1": {
|
case "v1_18_R1": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R1.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_18_R1.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R1.ItemizerXTab());
|
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_18_R1.ItemizerXTab());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
case "v1_17_R1": {
|
case "v1_17_R1": {
|
||||||
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_17_R1.ItemizerXCommand());
|
getCommand("itemizer").setExecutor(new dev.plex.itemizerx.v1_17_R1.ItemizerXCommand());
|
||||||
getCommand("itemizer").setTabCompleter(new dev.plex.itemizerx.v1_17_R1.ItemizerXTab());
|
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("You are trying to run ItemizerX on an incompatible server version.");
|
||||||
getLogger().severe("ItemizerX only supports versions 1.17 to 1.20, disabling plugin.");
|
getLogger().severe("ItemizerX only supports versions 1.17 to 1.20, disabling plugin.");
|
||||||
getServer().getPluginManager().disablePlugin(this);
|
getServer().getPluginManager().disablePlugin(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public String getNMSVersion() {
|
public String getNMSVersion() {
|
||||||
String v = getServer().getClass().getPackage().getName();
|
String v = getServer().getClass().getPackage().getName();
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
name: ItemizerX
|
name: ItemizerX
|
||||||
version: 3.0
|
version: 2.0
|
||||||
api-version: 1.20
|
api-version: 1.17
|
||||||
description: A rewrite of Itemizer
|
description: A rewrite of Itemizer
|
||||||
author: Focusvity, Telesphoreo
|
author: Focusvity, Telesphoreo
|
||||||
main: dev.plex.itemizerx.ItemizerX
|
main: dev.plex.itemizerx.ItemizerX
|
||||||
|
folia-supported: true
|
||||||
softdepend:
|
softdepend:
|
||||||
- CoreProtect
|
- CoreProtect
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user