SmartYamlConfig

This project is abandoned and its default file will likely not work with the most recent version of Minecraft. Whether this project is out of date or its author has marked it as abandoned, this project is no longer maintained.

Tired of the buggy yaml config files of bukkit ? Accents that don't work at all and make everything plant ? And the mistake of placing a tabulation inadvertently ?

SmartYamlConfig (SYC) is an API for developers who always wanted to easily create and manage yaml configuration files for their plugins, with full UTF8 support (and ISO-8859-1 too) wich means that tabulations & accents are supported so you can let your french or spanish customers create their own string in your config file without the problem of partial UTF8 support / crash. You can ofcourse use UTF8 smileys in your config !

SYC implements 3 levels (class) to create & manage yaml config files :

NameDescription
0YamlConfigOnly in memory (similar to basic bukkit yaml interface, but with full UTF8 & tabulations support.
1YamlConfigFileInherit from YamlConfig and is attached to a specific file
2SmartYamlConfigYCF linked with the config.yml in your (plugin).jar and load / save intelligently the right config in the right file with a debug output in the console

Each layer implement a lot of methods for create, load, manage, save ... yaml configs in addition to the basic functions of Bukkit and allows you to create one or more configuration files for your plugin super-easily with a better stability. You can choose between 3 encodings : UTF8 (by default, Universal, Unicode), ISO 8859-1 (Latin 1, Europe, ASCII) or US-ASCII for fun.

For Developers :

How to create a config file for your plugin with SmartYamlConfig :

  1. Open Eclipse and setup the JavaProject of your plugin.
  2. First you need to add .jar file of SYC in the dependencies of the Java project of your plugin.
  3. Next, add in you plugin.yml "depend: SmartYamlConfig".
  4. And finally, add some code like this [weblink expected]

For Users :

==== Installation ====

  • Just pur the .jar file of SYC in the plugins directory of your server.
  • Run your server !

==== Configuration ====

  • All is directly explicated in the config file.

==== Commands ====

  • configreload:
  1. usage : "/configreload <plugin>"'
  2. description: Reload configs of a plugin which use SYC API.
  3. aliases: [reloadconfig, reloadconf, confreload, configreload]
  4. permission: syc.reload.plugin
  • configsave:
  1. usage : "/configsave <plugin>"'
  2. description: Save configs of a plugin which use SYC API.
  3. aliases: [saveconfig, saveconf, confsave, configsave]
  4. permission: syc.save.plugin
  • configreloadall:
  1. usage : "/configreloadall"'
  2. description: Reload configs of every plugin wich use SYC API.
  3. aliases: [reloadallconfig, reloadallconfigs, reloadallconf, confreloadall, configreloadall]
  4. permission: syc.reload.all
  • configsaveall:
  1. usage : "/configsaveall"'
  2. description: Save configs of every plugin wich use SYC API.
  3. aliases: [saveallconfig, saveallconfigs, saveallconf, confsaveall, configsaveall]
  4. permission: syc.save.all

==== Permissions ====

  • syc.* : Gives Access To All SYC Commands.
  • syc.save.* : Gives Access To All SYC Save Commands.
  • syc.reload* : Gives Access To All SYC Reload Commands.
  • syc.save.plugin : Gives Access To SYC ConfigSaveCommand.
  • syc.save.all : Gives Access To SYC ConfigSaveAll Command.
  • syc.reload.plugin : Gives Access To SYC ConfigReload Command.
  • syc.reload.all : Gives Access To SYC ConfigReloadAll Command.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    90599
  • Created
    Mar 25, 2015
  • Last Released File
    Never
  • Total Downloads
    0
  • License

Categories

Members

Recent Files

No files uploaded yet.