1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice
We welcome you on our site. This site is devoted to the Nukkit project and all that is connected with him. Here you can communicate, download plugins, also many other things get acquainted! Register the account right now :3

DbLib 0.2.1

Library that includes ORMlite engine, SQLite and MySQL drivers

  1. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
    Пользователь fromgate разместил новый ресурс:


    DbLib - Library that includes ORMlite engine, SQLite and MySQL drivers

    Узнать больше об этом ресурсе...
     
  2. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  3. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  4. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
    fromgate updated DbLib with a new update entry:


    Minor changes in config, fixed mysql bug

    Read the rest of this update entry...
     
  5. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
    Andrey likes this.
  6. Andrey

    Andrey Пользователь

    Messages:
    5
    Likes Received:
    0
    What are the Import statements?
     
  7. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
    Here is example plugin, I think could be useful for you: DbExample

    If you working with MySQL (or SQLIte) using JDBC - you will be able to work like it defined in tons for example around the net.

    If you going to use ORMLite - you can use method DbLib.getConnectionSource() to obtain default ORMLite connection. DbLib - is singleton, so you can just add DbLib.jar.
     
    Andrey likes this.
  8. Andrey

    Andrey Пользователь

    Messages:
    5
    Likes Received:
    0
    Yes but what are the import statements if I want to use the MySQL part of it?
     
  9. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  10. Andrey

    Andrey Пользователь

    Messages:
    5
    Likes Received:
    0
    Thanks :)
     
  11. Andrey

    Andrey Пользователь

    Messages:
    5
    Likes Received:
    0
    Can you help me begin developing plugins for Nukkit? I already know the PocketMine API, I just need to know how to set up IntelliJ for developing plugins, such as what modules and libraries to use. Perhaps you could make a tutorial for people to show them how to set up IntelliJ for Nukkit Plugin Development?
     
  12. M4Gn1T

    M4Gn1T Developer (Level 2)

    Messages:
    43
    Likes Received:
    14
    Minecraft:
    M4Gn1T
    He has already written but it's in Russian (http://nukkit.ru/threads/s-chego-nachat-pervyj-plagin.81/)
     
    Last edited: 15/2/16
    Andrey likes this.
  13. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  14. MrPowerGamerBR

    MrPowerGamerBR Developer

    Messages:
    8
    Likes Received:
    6
    Minecraft:
    MrPowerGamerBR
    @fromgate just a FYI


    When loading the plugin for the first time, this error happens:

    Code:
    2016-3-11 18:19:07 [INFO] [DbLib] DbLib 0.0.6 created by fromgate for nukkit.ru
    2016-3-11 18:19:07 [ALERT] java.lang.NullPointerException
    at ru.nukkit.dblib.util.Message.getText(Message.java:174)
    at ru.nukkit.dblib.util.Message.log(Message.java:58)
    at ru.nukkit.dblib.DbLibPlugin.initDb(DbLibPlugin.java:37)
    at ru.nukkit.dblib.DbLibPlugin.onEnable(DbLibPlugin.java:31)
    at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89)
    at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:117)
    at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:452)
    at cn.nukkit.Server.enablePlugin(Server.java:600)
    at cn.nukkit.Server.enablePlugins(Server.java:589)
    at cn.nukkit.Server.reload(Server.java:659)
    at cn.nukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:27)
    at cn.nukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151)
    at cn.nukkit.Server.dispatchCommand(Server.java:612)
    at cn.nukkit.command.CommandReader.run(CommandReader.java:66)
    
    This error didn't happen after restarting the server.

    Anyway, awesome plugin, I needed it because I wanted to create a economy plugin, but Nukkit doesn't provide the default MySQL drivers, this plugin fixes it :)
     
    fromgate likes this.
  15. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  16. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  17. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  18. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  19. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186
  20. fromgate

    fromgate Administrator

    Messages:
    665
    Likes Received:
    186

Share This Page