Inactive [DEV] NarrowtuxLib v1.3.1 - Assistant, Translation, Notifications, etc. [1.2.3-R0.3]

Discussion in 'Inactive/Unsupported Plugins' started by narrowtux, Jul 12, 2011.

  1. Offline

    narrowtux

    NarrowtuxLib
    Version 1.3.1

    This Library has been created by me to have a common base for all of my plugins.
    Feel free to use it's functionality in your own plugins ;)

    Features
    • Assistant API - You may know the Assistants from my Showcase plugin, the classes have now been moved to this plugin, so when multiple plugins use assistants, they won't interfere so much like it is now
    • Translation API - Translations can be in a flatfile (key=value). Translations can have multiple arguments and colors in [COLOR]-Tags.
    • Notification API - Plugins can send notifications to players. When the players are offline, the notifications are gathered and send to them when they come online
    • Some Helper-Classes, like the FlatFileReader or FileUtils which can get/set contents to a file.
    • Auto-Update - so every Server has the latest version of that (thanks @Afforess for this one in your source ;))
    • @nijikonkun 's Register API built in!
    Download
    NarrowtuxLib.jar
    Sourcecode on github

    Plugins that use this Library
    • Showcase
    • PistonChest
    Feel free to drop a message with your plugin here ;)

    Changelog

    Version 1.3.1
    • Compatible build with 1.2.3-R0.3
    [snip...]
    Version 1.0
    • Uses Register.jar as plugin, thus fixes some bugs concerning economy systems.
    Version 0.5
    • Updated for Spout
    • Assistant use the GUI when spoutcraft is installed on the client.
    • Can disable the automatic installation of Spout in the config (use with caution, this will likely break plugins which use the Assistant API)
    Version 0.4
    • Register API
    Version 0.3
    • Notification API
    • BukkitContrib dependency
    Version 0.2
    • First public release
    Todo
    • Documentation with JavaDocs (nearly done)
    • Add a NarrowtuxPlayer class which can handle Item-add/remove and Money, as well as sending messages and notifications (via BukkitContrib)
     
    lolwizard, dark_hunter and woodzy like this.
  2. Offline

    an0x

    dont know i know thats a bad technique to anoy youre enemys and its hard to get this message away but i will give it a try i will flag this as non adware with some different ips in different time.
     
  3. Offline

    slantykins

    Thanks for the quick response narrowtux. The main issue at the moment is that it's downloading Spout 1.0.1 which causes connection problems on Bukkit #1060 unfortunately. Could you update it to use 1.0.2 when you get a sec please :)
     
  4. Offline

    Vas

    Can this be moved to the lib folder on servers rather than be put in the plugins folder?
     
  5. Offline

    narrowtux

    No it has to be a plugin because it listens to chat because of the assistant API.
    You can manually update spout to the dev preview, this wont ever overwrite it!
    But I won't let it download the dev version of spout because it can seriously crash spoutcraft clients.
    So this would make more problems.

    Thanks for your support :)
    Most people won't see this message anyway because this is automatically downloaded already.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 17, 2016
  6. Offline

    slantykins

    I've had to disable the Showcase plugin on all of our 6500 servers currently as it stopped all players connecting as a result :/
     
  7. Offline

    Vas

    What plugin uses mysql-connector-java-bin.jar? It keeps appearing in my plugins folder and causes console errors all the time which is annoying.

    I assume this is the program responsible for the /nt things? Can you make a remove all messages option? I keep getting blank messages and just overall a lot of people use my showcase shop.
     
  8. Offline

    narrowtux

    Did you update to CraftBukkit #1060?
    No, I will never ever use MySQL:D
    Also, no. I find this notification thing very useful. If you find one line of text annoying when you login, I can't help you.
     
  9. Offline

    an0x

    No problem i also donatet 2 you some time ago youre writing the best plugins and all what i can do is support you so i support you ^^
     
  10. Offline

    Vas

    No I mean I can't check all the messages constantly. I want a /nt all option so it'll either mark all as read, or show me all at once or something. rather than typing /nt 1, /nt 2, /nt 3.... Maybe /nt 1-8, /nt 9-17, etc. I dunno. I keep gettling lines with "has bought 0 item for 0 gold" or something as well.
     
  11. Offline

    narrowtux

    Mark all as read is a good idea ;)
     
  12. Offline

    slantykins

    Yep, we're on #1060. If you load Showcase for example with it and you use the Spout 1.0.1 it downloads, see if you can replicate the connection issues :)
     
  13. Offline

    narrowtux

    That's a known issue of spout. You can update to a dev preview to fix.
     
  14. Offline

    slantykins

    If this is a known issue, then this is causing all people new to your Showcase plugin to have to manually update to 1.0.2 which as far as I know isn't a dev preview, it's been released just as 1.0.1 was. Why can you not just use the latest version with your plugin or remove the auto-download feature?
     
  15. Offline

    narrowtux

    Because this isn't a finished version. If it wouldn't crash spoutcraft clients, I'd do it but this happens when you want to use spoutcraft 1.0.1 with spout dev plugin.
     
  16. Offline

    K900

    How do you use assistants? I'm too lazy to look at the source :(
     
  17. Offline

    narrowtux

    Reimplement AssistantPage for each page you want to add, override method AssistantAction onPageInput(String) and do your input handling there.
    Return AssistantAction.CONTINUE by default, CANCEL to cancel, FINISH to finish, REPEAT to repeat this page (for example in case of a mistake), SILENT_REPEAT for repeating without printing the title and text of the page again.
    then, for each page, do assistant.addPage(page).
    After that, you start the assistant by assistant.start();
     
  18. Offline

    shamonj03

    I can't tell if version 6 is locking up my server or not..
    Nvm pretty sure it's called opupdate.
     
  19. Offline

    King_KYl3

    so many dam errors such a good plugin with alot of errors ahahah NOT
     
  20. Offline

    Vezorock

    What is this?
     
  21. Offline

    narrowtux

    It couldn't download spout as it seems. Try to install it manually. You wil find it in this forum ;)
     
  22. Offline

    bastrian

    Please update to 1060 and add iConomy 6 Support!
    2011-09-11 01:18:30 [SEVERE] Could not pass event PLUGIN_ENABLE to NarrowtuxLib
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
    at com.nijikokun.register.payment.methods.iCo4.isCompatible(iCo4.java:54)
    at com.nijikokun.register.payment.Methods.createMethod(Methods.java:55)
    at com.nijikokun.register.payment.Methods.setMethod(Methods.java:95)
    at com.narrowtux.event.NTLServerListener.onPluginEnable(NTLServerListener.java:35)
    at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:548)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:892)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
    SC_AL3X and Alex Berndt like this.
  23. Offline

    Alex Berndt


    Im getting this too!
     
    SC_AL3X likes this.
  24. Offline

    goldseed

    How can I disable the "Notification"s?

    Can it be done?
     
  25. Offline

    SC_AL3X

    Me too!
     
  26. Offline

    narrowtux

    Why would you disable it?
     
  27. Offline

    goldseed

    No one reads them...;;
     
  28. Offline

    narrowtux

    Maybe some read them who care about their shops or whatever.
     
  29. Offline

    Keetveter

    This error I'm getting:
    Code:
    2011-10-07 17:40:53 [SEVERE] Could not pass event PLUGIN_ENABLE to NarrowtuxLib
    java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at com.narrowtux.narrowtuxlib.event.NTLServerListener.onPluginEnable(NTLServerListener.java:51)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:569)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:948)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Can I do something about it?
     
  30. Offline

    Doc

    Please update (as stated above iConomy6 support please)

    Craftbukkit version git-Bukkit-0.0.0-1112-g54a13b2-b1240jnks (MC: 1.8.1)

    Code:
    14:00:49 [INFO] [NarrowtuxLib] v0.8.11 by [narrowtux] enabled.
    14:00:49 [SEVERE] Could not pass event PLUGIN_ENABLE to NarrowtuxLib
    java.lang.NoClassDefFoundError: com/nijiko/coelho/iConomy/iConomy
            at com.nijikokun.register.payment.methods.iCo4.isCompatible(iCo4.java:61)
            at com.nijikokun.register.payment.Methods.createMethod(Methods.java:95)
            at com.nijikokun.register.payment.Methods.setMethod(Methods.java:141)
            at com.narrowtux.narrowtuxlib.event.NTLServerListener.onPluginEnable(NTLServerListener.java:52)
            at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:569)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
            at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:948)
            at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
            at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
            at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassNotFoundException: com.nijiko.coelho.iConomy.iConomy
            at java.net.URLClassLoader$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(Unknown Source)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
            at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 16 more
    Thanks!
     
  31. Offline

    shutara

    hi i have a prob
    Code:
    2011-10-09 02:27:09 [INFO] [NarrowtuxLib] v0.8.11 by [narrowtux] enabled.
    2011-10-09 02:27:09 [SEVERE] Could not pass event PLUGIN_ENABLE to NarrowtuxLib
    java.lang.IncompatibleClassChangeError: Expecting non-static method com.nijikokun.register.payment.Methods.hasMethod()Z
        at com.narrowtux.narrowtuxlib.event.NTLServerListener.onPluginEnable(NTLServerListener.java:51)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:569)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:948)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:280)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:174)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:157)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    
    it began after update of bukkit but when i tryed to return older version f bukkit i have same prob pelp!
     

Share This Page