-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Small update of config operations
- Loading branch information
Showing
3 changed files
with
48 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package ru.nukkit.dblib.util; | ||
|
||
import cn.nukkit.plugin.Plugin; | ||
import cn.nukkit.utils.SimpleConfig; | ||
|
||
public class DbLibCfg extends SimpleConfig { | ||
public DbLibCfg(Plugin plugin) { | ||
super(plugin); | ||
} | ||
|
||
@Path(value = "DbLib.use-MySQL") | ||
public boolean dbUseMySQL; | ||
|
||
@Path(value = "SQLite.file-name") | ||
public String dbFileName; | ||
|
||
@Path(value = "MySQL.host") | ||
public String dbMySqlUrl; | ||
|
||
@SimpleConfig.Path(value ="MySQL.port") | ||
public int dbMySqlPort; | ||
|
||
@SimpleConfig.Path(value ="MySQL.database") | ||
public String dbMySqlDatabase; | ||
|
||
@SimpleConfig.Path(value ="MySQL.username") | ||
public String dbMySqlUsername; | ||
|
||
@SimpleConfig.Path(value = "MySQL.password") | ||
public String dbMySqlPassword; | ||
|
||
@SimpleConfig.Path(value ="DbLib.ORMLite-debug") | ||
public boolean debugLog; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: DbLib | ||
main: ru.nukkit.dblib.DbLibPlugin | ||
version: "0.0.5" | ||
version: "0.0.6" | ||
author: fromgate, nukkit.ru | ||
api: ["1.0.0"] | ||
description: SQLite/MySQL library for Nukkit plugins |