mirror of
https://github.com/trainerlord/WorldSystem.git
synced 2025-02-09 00:02:59 +01:00
Removed type from method name
This commit is contained in:
parent
0237170fe2
commit
e662ba7d81
@ -88,7 +88,7 @@ public class WSCommand {
|
||||
if (PluginConfig.isMultiChoose()) {
|
||||
if (args.length() > 0) {
|
||||
String key = args.getArgument(0);
|
||||
WorldTemplate template = WorldTemplateProvider.getInstace().getTemplate(key);
|
||||
WorldTemplate template = WorldTemplateProvider.getInstance().getTemplate(key);
|
||||
if (template != null) {
|
||||
// Permission for this specific template
|
||||
if (template.getPermission() != null && !p.hasPermission(template.getPermission())) {
|
||||
@ -111,7 +111,7 @@ public class WSCommand {
|
||||
}
|
||||
WorldChooseGUI.letChoose(p);
|
||||
} else {
|
||||
WorldTemplate template = WorldTemplateProvider.getInstace()
|
||||
WorldTemplate template = WorldTemplateProvider.getInstance()
|
||||
.getTemplate(PluginConfig.getDefaultWorldTemplate());
|
||||
if (template != null)
|
||||
create(p, template);
|
||||
|
@ -66,7 +66,7 @@ public class WorldSettingsCommands {
|
||||
File f = new File(PluginConfig.getWorlddir() + "/" + worldname);
|
||||
|
||||
if (!PluginConfig.isMultiChoose()) {
|
||||
WorldTemplate template = WorldTemplateProvider.getInstace()
|
||||
WorldTemplate template = WorldTemplateProvider.getInstance()
|
||||
.getTemplate(PluginConfig.getDefaultWorldTemplate());
|
||||
if (template != null)
|
||||
createWorld(p, worldname, f, template, sw);
|
||||
|
@ -30,7 +30,7 @@ public class WorldChooseGUI extends OrcInventory {
|
||||
super(GuiConfig.getTitle(GuiConfig.getConfig(), "worldchoose"), GuiConfig.getRows("worldchoose"),
|
||||
GuiConfig.isFill("worldchoose"));
|
||||
|
||||
for (WorldTemplate template : WorldTemplateProvider.getInstace().getTemplates()) {
|
||||
for (WorldTemplate template : WorldTemplateProvider.getInstance().getTemplates()) {
|
||||
// Check if player has permission to see template
|
||||
if (template.getPermission() != null && !player.hasPermission(template.getPermission()))
|
||||
continue;
|
||||
|
@ -229,9 +229,9 @@ public class SystemWorld {
|
||||
WorldCreator creator = new WorldCreator(worldname);
|
||||
|
||||
String templateKey = WorldConfig.getWorldConfig(worldname).getTemplateKey();
|
||||
WorldTemplate template = WorldTemplateProvider.getInstace().getTemplate(templateKey);
|
||||
WorldTemplate template = WorldTemplateProvider.getInstance().getTemplate(templateKey);
|
||||
if (template == null)
|
||||
template = WorldTemplateProvider.getInstace().getTemplate(PluginConfig.getDefaultWorldTemplate());
|
||||
template = WorldTemplateProvider.getInstance().getTemplate(PluginConfig.getDefaultWorldTemplate());
|
||||
|
||||
if (template != null)
|
||||
creator = template.getGeneratorSettings().asWorldCreator(worldname);
|
||||
|
@ -4,7 +4,6 @@ import de.butzlabben.world.config.PluginConfig;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.WorldType;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.entity.Panda;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
@ -17,7 +16,7 @@ public class WorldTemplateProvider {
|
||||
|
||||
private static final WorldTemplateProvider instance = new WorldTemplateProvider();
|
||||
|
||||
public static WorldTemplateProvider getInstace() {
|
||||
public static WorldTemplateProvider getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user