Inactive [DEV] BukkitContrib Alpha 0.1.7 [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Afforess, May 21, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    BukkitContrib is superseded by Spout, the new Bukkit/Client framework.
  2. Offline


    Well, it's all possible, someone would just have to code up the plugin. Go bug the guys at Essentials, CommandBook, Permissions, etc, and see if they will do it. ;)
  3. Offline


    Lol ok why won't you do it?
  4. Offline


    I really don't have the free time at the moment, it took me 12 hours just to get BukkitContrib 0.0.4 running smoothly, and I already develop a bunch of other plugins. ;)

    If you're willing to pay me to quit my RL job, I'd do it. :p
  5. Offline


    lol i dont have the money to be an employer, so i think ill just go ask them, :) lol
    Or i'll just go make a request on the request forums, or i'll learn java code!!! :Dlol that would take awhile...

    wait for the cloaks to be seen would everyone have to have the client mod? or i think the client already has a way to see the cloak since, notch has it right? and the 1mil buyer. lol

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


    Only the person who wants to see the cloaks need the client mod. E.g

    Player A has the client mod - they can see the custom skins on ALL other players/NPC's, even those w/o the client mod
    Player B does not have the client mod - they see default skins.

    So only 1 person needs it to see everything.
  7. Offline


    You sir are a gentleman and a scholar.

    EDIT: I just scrolled through the javadocs and saw the onKeyPress event.

    I need a new set of underwear, pronto.
  8. Offline


    amazing work, so does this mean we can expect a simple barter update "soon" ;)
  9. Offline


  10. Offline


    This is so amazing, no words can possibly express how amazing it is. Have 16 cookies.
  11. Offline


    For the title of the player, can you change color of it?
  12. Offline


    No idea, I didn't think of that. Try using a chat color and find out. ;)

    If not, I will look at manually adding it myself.
  13. Offline


    Thanks for the quick reply also, how to I access the API, sorry I am a new to using external APIs besides permissions and iConomy. :D
  14. Offline


    Add bukkitContrib to your build dependencies, then use BukkitContrib.getAppearanceManager();

    the AppearanceManager controls skins, cloaks, and user titles. Should be explanatory. See the javadocs for comments and descriptions. ;)
  15. Offline


    Since you have control over skins, would it be possible to control texture packs?
    Tell me if this is stupid/doesn't make sense.

    <- Java newb
  16. Offline


    Do I use PluginManager().getPlugin("BukkitContrib") is what I meant, to get the BukkitContrib :D sorry if I was unclear

    EDIT: Figured it out. :p Thanks again for creating this Afforess

    @Afforess when I use AppearanceManager.setGlobalCloak(humanEntityPlayer, "") It does not show the cape... :( No errors. Not anything at all :(. BTW I do have the client mod installed :p
    EDIT: Shows up for everyone but the player it is assigned too

    also in Javadocs it says you have AppearanceManager.getCloakURL() but you do not have it... :(

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


    I get the following error, when I reload the server, while an Inventory is opened (also got this error in older versions of BukkitContrib):

    Using CB#819

    2011-06-06 14:18:10 [INFO] Stopping server
    2011-06-06 14:18:10 [SEVERE] java.lang.ClassCastException: net.minecraft.server.ContainerChest cannot be cast to net.minecraft.server.ContainerPlayer
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.ContribCraftPlayer.<init>(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.ContribCraftPlayer.updateBukkitEntity(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.ContribCraftPlayer.getContribPlayer(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetGlobalCloak(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetAllCloaks(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetAll(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.onPluginDisable(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.BukkitContrib.onDisable(
    2011-06-06 14:18:10 [SEVERE]     at
    2011-06-06 14:18:10 [SEVERE]     at
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugin(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugins(
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.disablePlugins(
    2011-06-06 14:18:10 [SEVERE]     at net.minecraft.server.MinecraftServer.stop(
    2011-06-06 14:18:10 [SEVERE]     at
    2011-06-06 14:18:10 [SEVERE]     at
    2011-06-06 14:18:10 [SEVERE] Error occurred while disabling BukkitContrib v0.0.4 (Is it up to date?): org.bukkit.craftbukkit.entity.CraftPlayer cannot be cast to org.bukkitcontrib.player.ContribCraftPlayer
    java.lang.ClassCastException: org.bukkit.craftbukkit.entity.CraftPlayer cannot be cast to org.bukkitcontrib.player.ContribCraftPlayer
        at org.bukkitcontrib.player.ContribCraftPlayer.getContribPlayer(
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetGlobalCloak(
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetAllCloaks(
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetAll(
        at org.bukkitcontrib.player.SimpleAppearanceManager.onPluginDisable(
        at org.bukkitcontrib.BukkitContrib.onDisable(
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(
        at net.minecraft.server.MinecraftServer.stop(
    To specify a bit:
    The error occurs, when having a Chest/Furnace/Workbench opened while reloading. Not when a normal playerinventory (key E/I) is opened
  18. Offline


    Check the API spoiler - use the static craftplayer method.
  19. Offline


    Ehm.. This error even occurs, when BukkitContrib is the only plugin in the plugin-folder. So I believe it's something in the source of BukkitContrib.

    To specify a bit:
    The error occurs, when having a Chest/Furnace/Workbench opened while reloading. Not when a normal playerinventory (key E/I) is opened
  20. Offline


    ContribPlayer player = ContribCraftPlayer.getContribPlayer(event.getPlayer()); - did you try that? I haven't actually used this myself unfortunately.
  21. Offline


    Once again:
    This error IS NOT occuring because of a use of another plugin using BukkitContrib.

    This error is coming from BukkitContrib all alone. (even when no other plugins are installed)

    Oh and By the way Afforess:

    This API is freaking AWESOME! Thanks for your work on that! I'm already using your API to develop some plugins!
  22. Offline


    Looks like a casting error in his code. This
    return (ContribCraftPlayer)((CraftPlayer)player).getHandle().getBukkitEntity();
    should be
    return ((ContribCraftPlayer)((CraftPlayer)player).getHandle()).getBukkitEntity();
  23. Same here, it seems, that .setGlobalXxx is not changing your view of skin/cloak .. we'll see, what Afforess will say :)
  24. Offline


    Just to note to you @Afforess - Heroes is working great with the inventory hooks and using BukkitContrib as a soft dependency. I've only had one report of inventory shaking - but I'm not sure what caused it.

    Did the update to BukkitContrib Change any inventory events?
  25. Offline


    @Afforess Can you change the .7z SP mod download to a .zip? Not that I couldn't open it, but I'm not a big fan of rars and 7zs
  26. Offline


    Yep, I am already aware, I warned someone else in a different thread, and already have a fix ready for 0.0.5.

    Doesn't BukkitContrib.getAppearanceManager().getCloakUrl(viewingPlayer, target) work?

    I'm not sure, it may be impossible to change texture packs mid game (ATM, the MC texture pack switcher works while the game is off)

    I can certainly look into it though.

    Correct - Skins/Cloaks are only for appearance ATM. I'm not even sure you can see a cloak you are wearing in-game.

    I'll look at allowing skins to be set for the player though.

    I've been using it okay so far, but I'll add extra parenthesis for clarity.

    Casting should work fine BTW, the static method is slower (casting is faster than a function call), and all bukkit entities are replaced as soon as they are created for players.

    0.0.4 add an additivity parameter that exposes if an inventory click was left/right mouse click, but no actual changes.

    I've rather fond of 7z. It's one of the best compressors, and is open source. What's not to like?
  27. Offline


    @Afforess Well the whole me being on a Mac thingy...
  28. Offline



    *pull's out Mr. T action figure.*
    *pulls string*
    "I pity the fool"
  29. Offline


    @Afforess Ok, just thought it was a bug :p
  30. Hello, Afforess
    I've got two problems with Contrib. So:
    client-side mod is not working with EssentialChat, something is wrong, if format of chat is set by EssChat (formatting can be turned off, and still you can use EssChat + client-side). But bigger problem is:
    I succesfully made plugin, which change your skin, but it's not working together with AuthDB (there is no actuall sourcecode). Here is my code:
        public class MainFunction implements Runnable {
            public void run() {
                Player[] online = Bukkit.getServer().getOnlinePlayers();
                for (Player player: online){
                        BukkitContrib.getAppearanceManager().setGlobalSkin((HumanEntity) player,
                                "http://****/"+ player.getName().toLowerCase() + ".png");
    Using CB#823, Contrib v0.0.4, AuthDB v2.2.0...
    Repro: skin is set by .setGlobalSkin only if you're logged as guest. If you're registered already, appearance of other players are not changed.
Thread Status:
Not open for further replies.

Share This Page