Skip to content

Commit

Permalink
make data directory protected, version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
LabyStudio committed May 16, 2021
1 parent 0f43519 commit 91d2f59
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'de.labystudio.pluginloader'
version '1.0.0'
version '1.0.1'

repositories {
mavenCentral()
Expand Down
30 changes: 15 additions & 15 deletions src/main/java/de/labystudio/pluginloader/plugin/Plugin.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package de.labystudio.pluginloader.plugin;

import de.labystudio.pluginloader.plugin.meta.PluginMeta;
import de.labystudio.pluginloader.Core;
import de.labystudio.pluginloader.PluginLoader;
import de.labystudio.pluginloader.plugin.meta.PluginMeta;

import java.io.File;

Expand All @@ -27,17 +27,17 @@ public abstract class Plugin {
/**
* Plugin meta information from the json
*/
private PluginMeta pluginMeta;
protected PluginMeta pluginMeta;

/**
* Data folder of the plugin for configuration files
*/
private File dataFolder;
protected File dataDirectory;

/**
* The loaded jar file of the plugin
*/
private File jarFile;
protected File jarFile;

/**
* This function is called when the plugin is loaded.
Expand Down Expand Up @@ -68,17 +68,17 @@ public Plugin() {
/**
* Initialize the plugin
*
* @param core The instance of the core project
* @param pluginLoader Plugin loader instance
* @param meta Plugin meta information from the json
* @param dataFolder Data folder of the plugin for configuration files
* @param jarFile The loaded jar file of the plugin
* @param core The instance of the core project
* @param pluginLoader Plugin loader instance
* @param meta Plugin meta information from the json
* @param dataDirectory Data directory of the plugin for configuration files
* @param jarFile The loaded jar file of the plugin
*/
public void init(Core core, PluginLoader pluginLoader, PluginMeta meta, File dataFolder, File jarFile) {
public void init(Core core, PluginLoader pluginLoader, PluginMeta meta, File dataDirectory, File jarFile) {
this.core = core;
this.pluginLoader = pluginLoader;
this.pluginMeta = meta;
this.dataFolder = dataFolder;
this.dataDirectory = dataDirectory;
this.jarFile = jarFile;
}

Expand Down Expand Up @@ -110,11 +110,11 @@ public PluginLoader getPluginLoader() {
}

/**
* Get data folder of the plugin for configuration files
* Get data directory of the plugin for configuration files
*
* @return Data folder of the plugin for configuration files
* @return Data directory of the plugin for configuration files
*/
public File getDataFolder() {
return dataFolder;
public File getDataDirectory() {
return dataDirectory;
}
}

0 comments on commit 91d2f59

Please sign in to comment.