TuxTwoLib

This library does nothing on it's own and is re-compiled every minecraft version to provide a stable API for several of my plugins of some craftbukkit internals.

Which Download do I Need?

All the downloads are versioned with the craftbukkit version they are for, followed by an optional revision number, and then build number. So if you are on Craftbukkit for Minecraft server version 1.4.4, you would look for a version like this: 1.4.4-b1, with the b1 being the build number. (Always get the version with the highest build number for your version of minecraft) If an incompatibility exists in the builds, it also has a number corresponding to the build, like this: 1.4.5-R0.2-b1 would be compatible for all of 1.4.5-R0.2 builds and up for that version of minecraft.

Features

  • Self aware auto updater will only update the plugin if there is an update available for your minecraft version.
  • Set it to auto update only on Minecraft version changing, whenever there is an update available, or not at all.
  • Will warn you upon login and in console when your version of Minecraft is incompatible with the version installed.
  • Will notify you when new updates are installed.
  • Provides a method for getting offline player data

Permissions

  • tuxtwolib.notices - User can recieve notices about new updates and incompatible Minecraft version errors.

Purpose

For Developers

A recent commit to CraftBukkit now requires any plugins that accesses native "net.minecraft.server" or "org.bukkit.craftbukkit" classes to modify its imports for every new Minecraft version update.
This library abstracts these native classes so that whenever Minecraft updates, only this library needs to be updated. Plugins which use this library can potentially be coded to be compatible with multiple versions of Minecraft.

For Server Admins

If you have multiple plugins that utilize native Minecraft code, you will now have to update each one of them for each update.
Fortunately, if you use any plugins which utilize this library, you only need to update one plugin for them. Just grab the version of this library made for your Minecraft version and you're done!

How to Use:

For Server Admins

  1. Download the correct version of this plugin for your Minecraft version. (follow the instructions above)
    • You can find the different versions of this plugin by clicking the "Files" tab above
    • Make sure you remember where you downloaded the file to!
  2. Select the file you just downloaded and "copy" it to your "/plugins" folder.
    • On Windows, you can use ctrl+c or right click then press "copy". Then use ctrl+v or right-click to paste it in the proper folder.
    • If you are using the terminal, you should know how to use the "cp" command or Midnight Commander.
    • If you need to use FTP, be sure to read the documentation. (connect to the correct IP, traverse directories, etc.)
  3. Run your server as you usually would.
    • Typically this involves a run script or an admin panel. (this part is very important)

For Developers

  1. Check through this library's JavaDocs to see if we have the hooks you require.
    • Because this library is new, it likely does not yet have the hooks you need.
    • If we do not have them, create a Support Ticket for an enhancement. We can add it in for you!
  2. If we do, just examine the JavaDocs and hook into it with your plugin.
    • Do not forget to add "depend: [TuxTwoLib]" to your plugin.yml! (This makes sure that the library is loaded before your plugin)
  3. On your plugin's description make sure you tell users that they need to have this library installed on their server!



JavaDocs: http://javadocs.yu8.me/tuxtwolib/

Thread on how to use the book API: http://forums.bukkit.org/threads/simple-temp-book-api.93562/
A lot of classes taken from: http://forums.bukkit.org/threads/lib-prettyscarylib.110164/

FAQ

Q. I'm getting this in my console: INFO java.lang.NoClassDefFoundError
A. You downloaded the wrong version of the library, or a version that's compatible with your version of minecraft isn't released yet. Please double check and make sure you got the right download.

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of Phoenix616 Phoenix616 Dec 17, 2014 at 20:41 UTC - 0 likes

    Could you fix the javadocs please? :)

    Moep.tv - because why not?

  • Avatar of Tux2 Tux2 Dec 03, 2014 at 01:35 UTC - 1 like

    @orgin_org: Go

    @NewtPvP: Go

    Of course! You guys are so impatient... I was visiting family over Thanksgiving here in the States and didn't have time to update it... I just uploaded the new version!

    http://myfavs.me/bcs.pngDonate Bitcoins?1Lr7prAnqYpZe2UizvPKV2Cg4KSuj2weXb
    If you didn't take the time to read how my plugins work, don't expect me to take the time to diagnose your stupidity.
    If updates to my plugins depended on donations, they would never update. Donate!

  • Avatar of NewtPvP NewtPvP Dec 02, 2014 at 00:29 UTC - 0 likes

    Are you going to update to 1.8? The current version does not work with 1.8

  • Avatar of orgin_org orgin_org Nov 30, 2014 at 09:07 UTC - 0 likes

    Will you create a new version compatible with craftbukkit 1.8 that the spigot team has created?

    I keep getting:

    [10:02:25 INFO]: [TuxTwoLib] Enabling TuxTwoLib v1.7.10-b3
    [10:02:25 WARN]: [TuxTwoLib] Current version incompatible with this version of Craftbukkit! Checking for and downloading a compatible version.
    [10:02:25 ERROR]: [TuxTwoLib] New version download was unsuccessful. Please download the correct version of the library from http://dev.bukkit.org/server-mods/tuxtwolib/

    My server: colonies-playground.com

    Website: www.colonies-playground.com

  • Avatar of TNTUP TNTUP Nov 30, 2014 at 06:38 UTC - 0 likes

    @ssamjh: Go

    It _does_ work I guess because MultiInv works between worlds (each world has its own inv) although waiting update :S

    BFAK:95066,dd3bd97af6e0c8de224582d02370f079170eea468d01c5afc6a4b2b0119a2840

  • Avatar of ssamjh ssamjh Nov 29, 2014 at 20:25 UTC - 1 like

    Version 1.7.10-b3 is not working with the latest Spigot 1.8 build.

    [TuxTwoLib] Enabling TuxTwoLib v1.7.10-b3
    [09:13:02] [Server thread/WARN]: [TuxTwoLib] Current version incompatible with this version of Craftbukkit! Checking for and downloading a compatible version.
    [09:13:04] [Server thread/ERROR]: [TuxTwoLib] New version download was unsuccessful. Please download the correct version of the library from http://dev.bukkit.org/server-mods/tuxtwolib/
    
  • Avatar of TNTUP TNTUP Nov 29, 2014 at 18:45 UTC - 0 likes

    @mmuziek: Go

    Bugs may arise while running on Spigot 1.8:

    [13:34:39] [Server thread/INFO]: [TuxTwoLib] Enabling TuxTwoLib v1.7.10-b3 [13:34:39] [Server thread/WARN]: [TuxTwoLib] Current version incompatible with this version of Craftbukkit! Checking for and downloading a compatible version. [13:34:55] [Server thread/ERROR]: [TuxTwoLib] New version download was unsuccessful. Please download the correct version of the library from http://dev.bukkit.org/server-mods/tuxtwolib/ [13:34:55] [Server thread/INFO]: [MultiInv] Enabling MultiInv v3.3.1-dev [13:34:56] [Server thread/INFO]: [MultiInv] No groups.yml found. Creating example file... [13:34:56] [Server thread/ERROR]: [MultiInv] Unable to get server version! Inaccurate XP handling may occurr! [13:34:56] [Server thread/ERROR]: [MultiInv] Server Version String: git-Spigot-"03affcf" (MC: 1.8)

    but it works though, as it says inaccurate XP handling may occur....

    (repost from Multiinv)

  • Avatar of mmuziek mmuziek Nov 28, 2014 at 18:18 UTC - 1 like

    can you update it for spigot 1.8?

    http://dl.bitcubes.org/Bitcubesbanner.gif

    ->-> http://bitcubes.org or join at play.bitcubes.org<-<-

  • Avatar of ClassifiedLife ClassifiedLife Oct 11, 2014 at 16:04 UTC - 0 likes

    @rheuer22: Go

    If you are using the v1.7.10-b3 version. Notice how it says when you click on it, "Only for 1.7.10."

    $ Do you enjoy PvP plugins? Check out EnchantMore! $

Facts

Date created
Dec 08, 2012
Category
Last update
Dec 03, 2014
Development stage
Release
License
GNU Lesser General Public License version 3 (LGPLv3)
Curse link
TuxTwoLib
Downloads
328,143
Recent files

Authors