FoxAPI icon

FoxAPI -----

[1.13-1.19.*] For plugin developers



FoxAPI (for plugin developers):

import net.gempxplay.foxapi.api.network.Network;
import net.gempxplay.foxapi.api.yaml.Yaml;
import net.gempxplay.foxapi.api.files.Files;
import net.gempxplay.foxapi.api.display.Display;


#Display
Display.displayActionBar(<Player>,"<Message>");
Display action bar with message to player (can use "&" colors format)
Display.displayBossBar(<Player>,"<Message>",<Filled (0-100)>,<BarColor>);
Display colored and filled with message boss bar to player (can use "&" colors format)
Display.updateBossBar(<Player>,"<Message>",<Filled (0-100)>,<BarColor>);
Update boss bar for player (if boss bar exist) (can use "&" colors format)
Display.removeBossBar(<Player>);

Remove boss bar for player
Display.displayTitleAndSubTitle(<Player>, "<Title>", @Nullable "<SubTitle>",<FadeIn>,<Stay>,<FadeOut>);
Display title (and subtitle if not null) (can use "&" colors format)

<FadeIn>, <Stay> and <FadeOut> as int (ticks)
Display.createHologram("<Name>", "<Text>", Location, Int
);
Create hologram
Display.createHologramBelow("<Name>", "<Text>", Int );
Create hologram below hologram named <Name>
Display.removeHologram("<Name>");
Remove hologram named <Name>
Display.updateHologram("<Name>", "<Text>");
Update text in hologram named <Name>


#Files
Files.fileExist("<Local file name>");
Check if file exist, return true/false

#Network
String latestVersion = Network.getStringFromUrl("<Url>");
Get string from url and return String
String latestVersion = Network.findStringUsingUrl("<Url>", "<Must contains>");
Get string from url and return String (only line contains <Must contains>)
Network.downloadJarFile("<Url>","<Local file name>");
Downloaded file is saved as .jar!!!


#Yaml
boolean exist = Yaml.getYamlExist("<Local file name>");
Return true if YAML file eixst if not exist return false

Yaml.createYamlFile("<File name>");
Create YAML file (.yml) & required directories if not exist
Yaml.deleteYamlFile("<File name>");
Delete YAML file (.yml)

Yaml.setYamlValue("<Path name>", "<Value>", "<File name>");
Set value on path in YAML file (auto. detect STRING, INT & BOOLEAN)
Yaml.removeYamlValue("<Path name>", "<File name>");
Remove path (set value to null) in YAML file
String value = Yaml.getYamlStringValue("<Path name>", "<File name>");
Return String value
int value = Yaml.getYamlIntValue("<Path name>", "<File name>");
Return int value
boolean value = Yaml.getYamlBooleanValue("<Path name>", "<File name>");
Return boolean value
Resource Information
Author:
----------
Total Downloads: 1,690
First Release: Nov 20, 2021
Last Update: May 19, 2023
Category: ---------------
All-Time Rating:
0 ratings
Find more info at discord.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings