!!! PROJECT IS DEPRACATED !!!
This project is no longer needed, you should checkout Skript-Yaml it's a bit more complicated but offers all the features I coded to SkUtilities and more. (It's also 10x faster then SkUtilities)
https://github.com/Sashie/skript-yaml
This project is no longer needed, you should checkout Skript-Yaml it's a bit more complicated but offers all the features I coded to SkUtilities and more. (It's also 10x faster then SkUtilities)
https://github.com/Sashie/skript-yaml
Support Group
https://discord.gg/U2xYB4q
Warning: Due to how skript handles loading the scripts, this may not load before your code. Due to this you are allowed to insert the entire API into your code but you MUST link back to the spigot page if you do so. If you are distributing or selling this code you must provide the API link so the user can update it. This includes spigot resources, forum posts, or giving it / selling it privately.
TobiasAPI:
Generally you don't need to configure anything. There is no config right now, but an auto updated may come.
This handles player files, configs, lists and more for my skripts. Doing it with this method saves ram on your server and with how I make my skripts they are very CPU efficient. I strive to make my skripts as efficient as java.
If your getting errors in chat, this is due to creating variables SkUtilities throws an error because it checks if it's set and if it isn't it errors. To fix this go into the SkUtilities folder and make sure broadcastErrors is false, by default it is true. I may add this to automatically happen in the core soon.
Skripts that use this:
- None yet...
Dependencies:
- Skript
- SkUtilities ( Here)
For developers:
Spoiler: Click to show developers info
- You can
create player data in one line, this will only go off if it's not set.
createPlayerData(player, "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can make/edit player data in one line
savePlayerData(player, "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can load player's data in one line
loadPlayerData(player, "SKRIPT NAME", "TAG") Fill out green data. Returns object
- You can create config data in one line, if the data is already there nothing happens. This can be used to make configs.
createConfigData("CONFIG NAME", "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can make/edit config data in one line
saveConfigData("CONFIG NAME", "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can load a config data in one line
loadConfigData("CONFIG NAME", "SKRIPT NAME", "TAG") Fill out green data. Returns object
- You can delete a config data in one line
deleteConfigData("CONFIG NAME", "SKRIPT NAME", "TAG") Fill out green data. Returns object
# LISTS
- You can add data to a list if it's not set:
createConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", LIST) Fill out green data.
- You can make a list in one line
saveConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", "DATA") Fill out green data.
- You can load a list in one line
loadConfigList("CONFIG NAME", "SKRIPT NAME", "LIST") Fill out green data. Returns list
- You can edit a list in one line
editConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", "NEW DATA") Fill out green data
- You can delete a list in one line
deleteConfigList("CONFIG NAME", "SKRIPT NAME", "LIST") Fill out green data
- You can create in list data in one line, if the data is already there nothing happens. This can be used to make configs.
createConfigSublist("CONFIG NAME", "SKRIPT NAME", "LIST", "SUB LIST", "DATA") Fill out green data
- You can edit a sub list in one line
saveConfigSublist("CONFIG NAME", "SKRIPT NAME", "LIST", "SUB LIST", "DATA") Fill out green data
- You can delete a sub list in one line
deleteConfigSublist(" CONFIG NAME ", " SKRIPT NAME ", " LIST ", " SUB LIST ") Fill out green data
- You can load a sub list in one line
loadConfigSublist(" CONFIG NAME ", " SKRIPT NAME ", " LIST ", " SUB LIST ") Fill out green data, returns object
Tags are what value you're storing the data under. Like this:
tag: data
Config Name is the name that you wish to set the config as, generally putting Config is best unless you plan to have multiple configuration files.
Skript name is the name of the folder it will save everything in, if you wish multiple skripts to use the same files set them all to the same skript name.
More detailed examples and documentation is available in the code.
Example:
Player data:
createPlayerData(player, "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can make/edit player data in one line
savePlayerData(player, "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can load player's data in one line
loadPlayerData(player, "SKRIPT NAME", "TAG") Fill out green data. Returns object
- You can create config data in one line, if the data is already there nothing happens. This can be used to make configs.
createConfigData("CONFIG NAME", "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can make/edit config data in one line
saveConfigData("CONFIG NAME", "SKRIPT NAME", "TAG", "DATA") Fill out green data.
- You can load a config data in one line
loadConfigData("CONFIG NAME", "SKRIPT NAME", "TAG") Fill out green data. Returns object
- You can delete a config data in one line
deleteConfigData("CONFIG NAME", "SKRIPT NAME", "TAG") Fill out green data. Returns object
# LISTS
- You can add data to a list if it's not set:
createConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", LIST) Fill out green data.
- You can make a list in one line
saveConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", "DATA") Fill out green data.
- You can load a list in one line
loadConfigList("CONFIG NAME", "SKRIPT NAME", "LIST") Fill out green data. Returns list
- You can edit a list in one line
editConfigList("CONFIG NAME", "SKRIPT NAME", "LIST", "NEW DATA") Fill out green data
- You can delete a list in one line
deleteConfigList("CONFIG NAME", "SKRIPT NAME", "LIST") Fill out green data
- You can create in list data in one line, if the data is already there nothing happens. This can be used to make configs.
createConfigSublist("CONFIG NAME", "SKRIPT NAME", "LIST", "SUB LIST", "DATA") Fill out green data
- You can edit a sub list in one line
saveConfigSublist("CONFIG NAME", "SKRIPT NAME", "LIST", "SUB LIST", "DATA") Fill out green data
- You can delete a sub list in one line
deleteConfigSublist(" CONFIG NAME ", " SKRIPT NAME ", " LIST ", " SUB LIST ") Fill out green data
- You can load a sub list in one line
loadConfigSublist(" CONFIG NAME ", " SKRIPT NAME ", " LIST ", " SUB LIST ") Fill out green data, returns object
Tags are what value you're storing the data under. Like this:
tag: data
Config Name is the name that you wish to set the config as, generally putting Config is best unless you plan to have multiple configuration files.
Skript name is the name of the folder it will save everything in, if you wish multiple skripts to use the same files set them all to the same skript name.
More detailed examples and documentation is available in the code.
Example:
Player data:
Code (Text):
on join:
wait 20 ticks
send "&8&m---------------------------------------"
savePlayerData(player, "api", "uuid", player's uuid)
send "&eSetting test player data!"
set {_data} to loadPlayerData(player, "api", "uuid")
send "&eTest data loaded: %{_data}%"
send "&8&m---------------------------------------"
wait 20 ticks
send "&8&m---------------------------------------"
savePlayerData(player, "api", "uuid", player's uuid)
send "&eSetting test player data!"
set {_data} to loadPlayerData(player, "api", "uuid")
send "&eTest data loaded: %{_data}%"
send "&8&m---------------------------------------"
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
TobiasAPI is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 954 times (via Spigot). Download it and open it directly in the game.