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

    Plague

    how about I moved this to Tools section instead?
     
  3. Offline

    narrowtux

    That's okay, although it's a real plugin ;)
     
  4. Offline

    Plague

    I was really asking, not pushing you :) I thought it's just a library of sorts, so okay released.
     
  5. Offline

    DerKB

    Question about this lib and if you download BukkitContrib in some kind of way?
    I use PistonChest on my server and i can not get why i get BukkitContrib redownloadet over and over again after i did delete it, it is causing some real problems on my server and i can not get rid of it.
    Your plugins/lib is the only way that could use it in any point.

    Hope you can help me out about this.
    Regards
    DerKB
     
  6. Offline

    narrowtux

    Yes, it downloads BukkitContrib by itself.
    What kind of problems does it create?
     
  7. Offline

    Kalais

    I use Showcase. I'd prefer not to have two other plugins (narrowtuxlib and BukkitContrib) automatically installed.
     
    royfort likes this.
  8. Offline

    y1985

    I have to downgrade Showcase to previous version. NarrowtuxLib and BukkitContrib got me a lot of [severe], don't know why.
     
    royfort likes this.
  9. Offline

    narrowtux

    But they're needed because I use the classes of NarrowtuxLib and BukkitContrib in Showcase.
    The Assistant API had to be moved out of Showcase because it would have produced conflicting issues between Showcase and other plugins that wanted to use the Assistant API.
    Also, Showcase now uses the Notification API in NarrowtuxLib to notify offline users when someone bought from their showcases.
    I think it's a better solution to put that into an additional plugin to provide this functionality to other plugin developers.

    It would be nice if you posted them.

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

    y1985

    Sorry for that. I need to rollback my server. Just a couple of minutes :)

    Thx for reply.
     
  11. Offline

    narrowtux

    No Problem ;)
     
  12. Offline

    DerKB

    The mainproblem comes from bukkitcontrib as it is running and using stuff of RB1000 wich i can not use for some reasons.
    The first is an unkown methode: perm

    Code:
    2011-07-19 16:44:59 [INFO] Veonas [/78.55.153.197:3896] logged in with entity id 1073 at ([world] 492.69999998807907, 49.0, 767.1761135511152)
    2011-07-19 16:44:59 [SEVERE] java.lang.NoSuchFieldException: perm
    2011-07-19 16:44:59 [SEVERE]    at java.lang.Class.getDeclaredField(Class.java:1899)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkitcontrib.player.ContribCraftPlayer.<init>(ContribCraftPlayer.java:87)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkitcontrib.player.ContribCraftPlayer.updateBukkitEntity(ContribCraftPlayer.java:587)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkitcontrib.ContribPlayerListener.onPlayerJoin(ContribPlayerListener.java:27)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    2011-07-19 16:44:59 [SEVERE]    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.Packet1Login.a(SourceFile:43)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    2011-07-19 16:44:59 [SEVERE]    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    This comes up every time a user loggs in, as you can see it comes from bukkitcontrib ... made me mad to find out were the auto download came from.

    After some time it can lead to some errors that crash the server while using PistonChest.
    Code:
    2011-07-19 16:43:39 [WARNING] Failed to handle packet: java.lang.ArrayIndexOutOfBoundsException: 7
    java.lang.ArrayIndexOutOfBoundsException: 7
            at net.minecraft.server.BlockPistonExtension.doPhysics(SourceFile:189)
            at net.minecraft.server.World.k(World.java:451)
            at net.minecraft.server.World.applyPhysics(World.java:426)
            at net.minecraft.server.World.update(World.java:399)
            at net.minecraft.server.ItemBlock.a(ItemBlock.java:100)
            at net.minecraft.server.ItemStack.placeItem(ItemStack.java:56)
            at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:223)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    Then something seems to happen what brakes the server and i have to restart it / let the wrapper do it.

    I would upgrade to 1000 if i could, cause 2 plugins are not working together for now on 1000 i have to stay on 953 for some time.

    But well, the whole thing made me hope i can run BukkitContrib in the future, did like to test it but got some problems with it in the past (did not like Tombstone) but now it seems to work, well so this was a bad and good thing.

    So for now i can handel the trouble it makes.

    Regards
    DerKB
     
  13. Offline

    narrowtux

    the second stacktrace you reported has nothing to do with PistonChest, it's just a CraftBukkit error.
     
  14. Offline

    y1985

    Code:
    [SEVERE] java.lang.NoSuchFieldException: perm
    [SEVERE]       at java.lang.Class.getDeclaredField(Unknown Source)
    [SEVERE]       at org.bukkitcontrib.player.ContribCraftPlayer.<init>(ContribCraftPlayer.java:87)
    [SEVERE]       at org.bukkitcontrib.player.ContribCraftPlayer.updateBukkitEntity(ContribCraftPlayer.java:587)
    [SEVERE]       at org.bukkitcontrib.ContribPlayerListener.onPlayerJoin(ContribPlayerListener.java:27)
    [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
    [SEVERE]       at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    [SEVERE]       at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    [SEVERE]       at net.minecraft.server.Packet1Login.a(SourceFile:43)
    [SEVERE]       at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    [SEVERE]       at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Happened when each player login, sometime make login player freeze a little.
    I try to figure it out what causes it and when I downgrade to use previous version of show case, it solved.
     
  15. Offline

    narrowtux

    you need to have bukkit version 1000!
     
  16. Offline

    Deltawp

    Can you make a compatibility of your plugin Show case whit build 953 whit out BukkitContrib dependency ?
     
  17. Offline

    narrowtux

    Just download an older version. I personally don't like to maintain multiple versions of a plugin.
     
  18. Offline

    Deltawp

    ok thanks !
     
  19. Offline

    topsub

    So we have to use an older version without these new features because of conflicting plugins? Still confused as to what is causing this issue.

    Edit: i get the same .. perm. error as everyone else.. Also link to my thread in my sig.
     
  20. Offline

    narrowtux

    Nag @Afforess about that.
     
  21. Offline

    topsub

    I have posted several times in there. Doesn't seem like the guy is on.
     
  22. Offline

    y1985

    Now with CB 1000 error's gone but I lost all the sound, occurs after use Show case+NarrowtuxLib+BukkitContrib


    NVM, I got it fixed :)
    Thanks for replying me
     
  23. Offline

    narrowtux

    He might also want some free time ;)
    You can't expect that every dev in here will reply to you within minutes.
    I think he is pretty much aware of this and will fix it ASAP.
     
  24. Offline

    phaed

    I think its very shady what you are doing. This Auto-Downloading of BukkitContrib on unsuspecting people's servers. Why don't you state that clearly? "so every server has the latest version of that"? It should read:

    Auto-Update - so every Server has the latest version of BukkitContrib
     
  25. Offline

    narrowtux

    I only download BukkitContrib when it's not available.
    The auto-update is only applicable for the plugin itself.
     
  26. Offline

    narrowtux

    Version 0.4 is up!
    Adds Register API. You can simply get the Method by
    PHP:
    NarrowtuxLib.getMethod()
    This method will show a warning if no economy plugin was found and therefore Method==null.
     
  27. Offline

    narrowtux

    Version 0.5 is out, adds a few nice things.
     
  28. It does. it adds a billion errors. All i did was paste the new jar over the old one and i get this when i join:
    http://pastebin.com/dRSGdw7m
     
  29. Offline

    kynian

    same thing happened for me -_- and it still registers it as being v0.4? instead of 0.5
     

Share This Page