mirror of
https://github.com/songoda/EpicHeads.git
synced 2024-11-29 22:13:44 +01:00
Updated to 2.2.0 (resolved some issues and patches).
This commit is contained in:
parent
f98aac586f
commit
cabe8de692
@ -23,9 +23,9 @@ breaking-head-names:
|
|||||||
default-name: 'Decoration Head'
|
default-name: 'Decoration Head'
|
||||||
commands:
|
commands:
|
||||||
heads:
|
heads:
|
||||||
label: 'heads'
|
label: 'deluxeheads'
|
||||||
aliases:
|
aliases:
|
||||||
- 'head'
|
- 'heads'
|
||||||
description: 'Ottieni Teste fantastiche'
|
description: 'Ottieni Teste fantastiche'
|
||||||
sub-commands:
|
sub-commands:
|
||||||
# open menu is when no arguments are supplied
|
# open menu is when no arguments are supplied
|
||||||
|
@ -70,6 +70,8 @@ public class DeluxeHeads extends JavaPlugin implements Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
|
csender = this.getServer().getConsoleSender();
|
||||||
|
instance = this;
|
||||||
if (Version.isBelow(Version.v1_8)) {
|
if (Version.isBelow(Version.v1_8)) {
|
||||||
print("&c-------------------------------------------------------------------");
|
print("&c-------------------------------------------------------------------");
|
||||||
print("&c DeluxeHeads no longer supports versions below Minecraft 1.8.");
|
print("&c DeluxeHeads no longer supports versions below Minecraft 1.8.");
|
||||||
@ -78,7 +80,6 @@ public class DeluxeHeads extends JavaPlugin implements Listener {
|
|||||||
Bukkit.getPluginManager().disablePlugin(this);
|
Bukkit.getPluginManager().disablePlugin(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
instance = this;
|
|
||||||
Clock timer = Clock.start();
|
Clock timer = Clock.start();
|
||||||
loadCache();
|
loadCache();
|
||||||
try {
|
try {
|
||||||
@ -138,11 +139,11 @@ public class DeluxeHeads extends JavaPlugin implements Listener {
|
|||||||
unregisterCommands();
|
unregisterCommands();
|
||||||
}
|
}
|
||||||
SimpleCommandMap commandMap = CraftServer.get().getCommandMap();
|
SimpleCommandMap commandMap = CraftServer.get().getCommandMap();
|
||||||
RuntimeCommand heads = new RuntimeCommand(mainConfig.getHeadCommand());
|
RuntimeCommand heads = new RuntimeCommand("deluxeheads");
|
||||||
heads.setExecutor(new HeadsCommand());
|
heads.setExecutor(new HeadsCommand());
|
||||||
heads.setDescription(mainConfig.getHeadDescription());
|
heads.setDescription(mainConfig.getHeadDescription());
|
||||||
heads.setAliases(Arrays.asList(mainConfig.getHeadAliases()));
|
heads.setAliases(Arrays.asList(mainConfig.getHeadAliases()));
|
||||||
commandMap.register("heads", heads);
|
commandMap.register("deluxeheads", heads);
|
||||||
commandsRegistered = true;
|
commandsRegistered = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,7 +168,7 @@ public class DeluxeHeads extends JavaPlugin implements Listener {
|
|||||||
if (!getDataFolder().exists() && !getDataFolder().mkdirs())
|
if (!getDataFolder().exists() && !getDataFolder().mkdirs())
|
||||||
throw new RuntimeException("Unable to create the data folder to save plugin files");
|
throw new RuntimeException("Unable to create the data folder to save plugin files");
|
||||||
if (!getDataFolder().isDirectory())
|
if (!getDataFolder().isDirectory())
|
||||||
throw new RuntimeException("plugins/Heads should be a directory, yet there is a file with the same name");
|
throw new RuntimeException("plugins/DeluxeHeads should be a directory, yet there is a file with the same name");
|
||||||
return new File(getDataFolder(), "heads.cache");
|
return new File(getDataFolder(), "heads.cache");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,7 +2,8 @@ name: DeluxeHeads
|
|||||||
main: nl.marido.deluxeheads.DeluxeHeads
|
main: nl.marido.deluxeheads.DeluxeHeads
|
||||||
description: Enhance your server with over 17,000 awesome unique heads with amazing features.
|
description: Enhance your server with over 17,000 awesome unique heads with amazing features.
|
||||||
author: Marido
|
author: Marido
|
||||||
version: 2.1.9
|
website: https://marido.host/deluxeheads
|
||||||
|
version: 2.2.0
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
softdepend: [Vault, PlayerPoints, BlockStore]
|
softdepend: [Vault, PlayerPoints, BlockStore]
|
||||||
loadbefore: [DeluxeMenus]
|
loadbefore: [DeluxeMenus]
|
||||||
|
@ -23,9 +23,9 @@ breaking-head-names:
|
|||||||
default-name: 'Decoration Head'
|
default-name: 'Decoration Head'
|
||||||
commands:
|
commands:
|
||||||
heads:
|
heads:
|
||||||
label: 'heads'
|
label: 'deluxeheads'
|
||||||
aliases:
|
aliases:
|
||||||
- 'head'
|
- 'heads'
|
||||||
description: 'Get cool heads'
|
description: 'Get cool heads'
|
||||||
sub-commands:
|
sub-commands:
|
||||||
# open menu is when no arguments are supplied
|
# open menu is when no arguments are supplied
|
||||||
|
Loading…
Reference in New Issue
Block a user