|
|
|
There are a few Functions that can be used to achieve ones Goals!
|
|
|
|
|
|
|
|
<h4>Set Custom Path</h4>
|
|
|
|
|
|
|
|
Here you can set a custom Path, ex(/logs)
|
|
|
|
```java
|
|
|
|
.setCustomPath(String);
|
|
|
|
```
|
|
|
|
|
|
|
|
<h4>Use Default Path</h4>
|
|
|
|
|
|
|
|
This will tell the Plugin to use the Default path if none is provided.<br>
|
|
|
|
<b>This will be TRUE by default if no other path has been defined!</b>
|
|
|
|
```java
|
|
|
|
.useDefaultPath(boolean);
|
|
|
|
```
|
|
|
|
|
|
|
|
<h4>Use Path Preset</h4>
|
|
|
|
|
|
|
|
There are a few Path Presets listed below:
|
|
|
|
```java
|
|
|
|
SERVER_FOLDER,
|
|
|
|
PLUGIN_FOLDER
|
|
|
|
```
|
|
|
|
|
|
|
|
They can be used, by adding the following to your creation Command:
|
|
|
|
```java
|
|
|
|
.usePathPreset(SERVER_FOLDER);
|
|
|
|
//or
|
|
|
|
.usePathPreset(PLUGIN_FOLDER);
|
|
|
|
```
|
|
|
|
|
|
|
|
<b><=>SERVER_FOLDER<=></b><br>
|
|
|
|
If used without changing, will create a folder, under the server Directory, named<br>
|
|
|
|
<b>Name: %PLUGIN_NAME%log</b><br>
|
|
|
|
<b>Example: /LogThemlog</b>
|
|
|
|
|
|
|
|
<b><=>PLUGIN_FOLDER<=></b><br>
|
|
|
|
If used without changing, will create a folder under the <br><b>'/plugins/%PLUGIN_NAME%'</b> folder in the server Directory named<br>
|
|
|
|
<b>Name: log</b><br>
|
|
|
|
<b>Example: /plugins/LogThem/log</b>
|
|
|
|
|
|
|
|
<h4>Customized Presets</h4>
|
|
|
|
|
|
|
|
Preset Paths can also be modified (Used as a starting place)
|
|
|
|
By Selecting a Path and then putting <b>'.setSubPath(String)'</b> behind it, it will use the Selected path as a "Source":
|
|
|
|
```java
|
|
|
|
SERVER_FOLDER.setSubPath(String);
|
|
|
|
```
|
|
|
|
They can be applied by simply adding:
|
|
|
|
```java
|
|
|
|
.usePathPreset(SERVER_FOLDER.setSubPath(String));
|
|
|
|
```
|
|
|
|
|
|
|
|
<b><=>SERVER_FOLDER<=></b><br>
|
|
|
|
If used with changes, will create a folder, under the server Directory, named<br>
|
|
|
|
<b>Name: %SET_SUBPATH%</b><br>
|
|
|
|
<b>Example: /LogThemLogs</b>
|
|
|
|
|
|
|
|
<b><=>PLUGIN_FOLDER<=></b><br>
|
|
|
|
If used with changes, will create a folder under the <br><b>'/plugins/%SET_SUBPATH%'</b> folder in the server Directory named<br>
|
|
|
|
<b>Name: %SET_SUBPATH%</b><br>
|
|
|
|
<b>Example: /plugins/LogThem/LargeLogs</b> |
|
|
|
\ No newline at end of file |