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

    Afforess

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

    Afforess

    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

    Adondriel

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

    Afforess

    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

    Adondriel

    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

    Afforess

    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

    marinating

    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

    dak393

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

    Afforess

    Yep.
    Thanks!
     
  10. Offline

    imjake9

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

    alta189

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

    Afforess

    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

    alta189

    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

    Afforess

    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

    PatrickFreed

    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

    alta189

    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, "http://minedev.net/capeme/cape/alta189.png") 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

    GeMoschen

    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

    Code:
    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>(ContribCraftPlayer.java:61)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.ContribCraftPlayer.updateBukkitEntity(ContribCraftPlayer.java:355)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.ContribCraftPlayer.getContribPlayer(ContribCraftPlayer.java:403)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetGlobalCloak(SimpleAppearanceManager.java:156)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetAllCloaks(SimpleAppearanceManager.java:181)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.resetAll(SimpleAppearanceManager.java:189)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.player.SimpleAppearanceManager.onPluginDisable(SimpleAppearanceManager.java:251)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkitcontrib.BukkitContrib.onDisable(BukkitContrib.java:31)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
    2011-06-06 14:18:10 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:123)
    2011-06-06 14:18:10 [SEVERE]     at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
    2011-06-06 14:18:10 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
    2011-06-06 14:18:10 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    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(ContribCraftPlayer.java:404)
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetGlobalCloak(SimpleAppearanceManager.java:156)
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetAllCloaks(SimpleAppearanceManager.java:181)
        at org.bukkitcontrib.player.SimpleAppearanceManager.resetAll(SimpleAppearanceManager.java:189)
        at org.bukkitcontrib.player.SimpleAppearanceManager.onPluginDisable(SimpleAppearanceManager.java:251)
        at org.bukkitcontrib.BukkitContrib.onDisable(BukkitContrib.java:31)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
        at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:771)
        at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:269)
        at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:262)
        at org.bukkit.craftbukkit.CraftServer.disablePlugins(CraftServer.java:123)
        at net.minecraft.server.MinecraftServer.stop(MinecraftServer.java:260)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:341)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    EDIT:
    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

    fullwall

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

    GeMoschen

    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.

    EDIT:
    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

    fullwall

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

    GeMoschen

    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

    fullwall

    Looks like a casting error in his code. This
    Code:
    return (ContribCraftPlayer)((CraftPlayer)player).getHandle().getBukkitEntity();
    should be
    Code:
    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

    Kainzo

    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

    captainawesome7

    @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

    Afforess

    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

    captainawesome7

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

    Afforess

    Oh.

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

    alta189

    @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:
    Code:
        public class MainFunction implements Runnable {
            @Override
            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