Economy
Integrated Economy
This Plugin has its own economy system what requires a stable mysql connection.
Is no mysql connection available will the plugin automatically try to use the Vault Economy.
Vault Economy
The Plugin will automatically connect to this form of economy if the Integrated Economy wont work.
This Economy System will only work if the required plugin Vault is installed and enabled.
Commands
Amount
This Plugin contains about 55 different commands.
Essentials
This Plugin has almost every command the Essentials plugin has.
Additionals
This Plugin also has commands replicated from other Plugins such as.
HolographicDisplays
GSit
Maintenance
Friends
Addons
Firma
This Plugin connects to my Firma Plugin found on SpigotMC.
The Plugin manages the economic site of your business.
ChestShop
This Plugin connects to my ChestShop Plugin
This Plugin manages the economic site of your chest shop.
LAPI ~ LEssentialsAPI
This is the integrated api that will be accessable for use for developers to easily manage LEssentials Systems via LAPI.
LAPI will be available as a standalone Plugin (API)
API Installation
Either the LEssentials Plugin will be added to your Buildpath of your plugin project or the standalone LAPI will be added.
API Setup
import org.bukkit.plugin.java.JavaPlugin;
import de.isa.lessentials.api.LEssentialsAPI;
public class Main extends JavaPlugin {
private static LEssentialsAPI lapi;
public static LEssentialsAPI getLApi() {
return lapi;
}
public void onEnable() {
lapi = new LEssentialsAPI(this);
}
}
API Features
getLApi().getBanAPI()
getLApi().getEconomyAPI()
getLApi().getVaultEconomy()
getLApi().getMuteAPI()
getLApi().getGuildAPI()
getLApi().getFriendsAPI()
getLApi().getEventAPI()
getLApi().getGiftAPI()
getLApi().getHoloAPI()
getLApi().getDiscordAPI()
getLApi().getTranslationAPI()
getLApi().getEssentialAPI()
getLApi().getConfigAPI()
Essentials API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (sender instanceof Player) {
Player player = (Player) sender;
if (Test.getLApi().isPlayerNew(player)) {
Test.getLApi().changePlayerData(player, "hasPlayed", true);
} else {
player.sendMessage(Core.getLanguageText("noPerm", Core.getLanguage(player)));
}
} else {
sender.sendMessage(Core.getLanguageText("noPlayer", Core.getLanguage(sender)));
}
return false;
}
}
Discord API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
Test.getLApi().getDiscordAPI().setWebhook("hereshouldbeyourwebhook");
Test.getLApi().getDiscordAPI().sendMessageViaWebhook("This is a regular message in discord");
Test.getLApi().getDiscordAPI().sendMessageViaWebhook("Title","This is a message with title in discord");
return false;
}
}
Config API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
Test.getLApi().getConfigAPI().createConfig("config", Test.getInstance()); // The File type is automatically set by the API "config.json"
Test.getLApi().getConfigAPI().getConfig().setDefaultValue("test.user",true);
Test.getLApi().getConfigAPI().getConfig().setValue("test.user", false); //This is a boolean
Test.getLApi().getConfigAPI().getConfig().getBoolean("test.user"); //getBoolean, getString, getInt, getLong etc. (for lists: getIntList, getStringList)
Test.getLApi().getConfigAPI().getConfig().save();
return false;
}
}
Holo API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (Core.isPlayer(sender, true)) { // CommandSender to identify and true for it needs to be a player (messages
// are automatically sent via TranslationAPI)
Player player = (Player) sender;
if (Core.hasPermission(player, Core.getPermission("test.use"))) { // Same as player.hasPermission but sends
// automatically messages if permissions
// are not given via TranslationAPI
Test.getLApi().getHoloAPI().createHolo("Hello World!", player.getLocation());
}
}
return false;
}
}
Ban API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (Core.isPlayer(sender, true)) { // CommandSender to identify and true for it needs to be a player (messages
// are automatically sent via TranslationAPI)
Player player = (Player) sender;
if (Core.hasPermission(player, Core.getPermission("test.use"))) { // Same as player.hasPermission but sends
// automatically messages if permissions
// are not given via TranslationAPI
//This example is how u can ban urself via BanAPI
Test.getLApi().getBanAPI().banPlayer(player, BanReason.HACKING); // Using Enum BanReason
Test.getLApi().getBanAPI().banPlayer(player, "Hacking"); // Using Custom Reasons
}
}
return false;
}
}
Mute API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (Core.isPlayer(sender, true)) { // CommandSender to identify and true for it needs to be a player (messages
// are automatically sent via TranslationAPI)
Player player = (Player) sender;
if (Core.hasPermission(player, Core.getPermission("test.use"))) { // Same as player.hasPermission but sends
// automatically messages if permissions
// are not given via TranslationAPI
//This example is how u can ban urself via MuteAPI
Test.getLApi().getMuteAPI().mutePlayer(player);
}
}
return false;
}
}
Friends API
public class TestCommand implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
if (Core.isPlayer(sender, true)) { // CommandSender to identify and true for it needs to be a player (messages
// are automatically sent via TranslationAPI)
Player player = (Player) sender;
if (Core.hasPermission(player, Core.getPermission("test.use"))) { // Same as player.hasPermission but sends
// automatically messages if permissions
// are not given via TranslationAPI
//This example is how u can friend urself via FriendsAPI
Test.getLApi().getFriendsAPI().sentFriendRequest(player, player); // Sending the request
Test.getLApi().getFriendsAPI().acceptFriendRequest(player, player); // Accepting the request
}
}
return false;
}
}