SuperBukkit
SuperBukkit
SuperBukkit is a plugin API that allows you to do stuff differently. By implementing special features like custom chest messages, forcing players to interact and even open mobile chests & furnaces! This plugin is extermely helpful for developers who are into interesting features. This plugin doesn't require Spout or any other modifications! When developing a plugin with this, make sure to tell your users to include SuperBukkit in their plugins folder.
We are looking for developers! Contact emericask8ur for more details.
For an example, developers can use it to show funds from an economy plugin.
There is more to come in later development of this plugin.
With this API, you can set custom messages to a players custom inventory. The message can only be up to a maximum of 31 characters.
If you exceed this limit, the event will be canceled and you will receive a warning via console that you have exceeded the limit of characters for that custom message.
Class | Purpose | ||
---|---|---|---|
BPlayer | Responsible for all player relate actions and modifications. Use this for Custom Inventories and more! | ||
EntityAction | Relates to all actions such as Crouch, Sprint, Leave Bed, and more. |
Examples
Example events:
Force Swing Arm
1 | BPlayer.swingArm(player); |
Custom Inventory Pop Up
1 | BPlayer.openCustomInventory(player, ChatColor.RED + "This is SuperBukkit!"); |
Open Dispenser
1 | BPlayer.openDispenser(player); |
Quote from MineCraftWiki.net:
One can now rename Chests with Anvils
"Renamed Chests, Trapped Chests, Dispensers, Furnaces, Brewing Stands, and Enchantment Tables will display the new name in their GUI where the normal name used to appear" :D This will even be more awesome when using this plugin too!
I really love the custom invetory pop ups, just wish you could use multiple lines :D Can't wait for more usefull features :)
Whats the plugin that displays money inside the chest GUI
Im not sure if its possible, could you make a screen (slightly simular to customInventory), but it just displays Strings and not on any inventory-type screen?
Great job! SuperBukkit will makes good future for various plugins!!!
@aadnk
It's simply a developer shortcut. :]
@PunKeel
CraftInventoryCustom is defined in OBC, but in theory, openInventory() could accept any arbitrary plugin-defined Inventory.
Unfortunately, the inventory parameter is immediately converted to a CraftInventory, so it doesn't actually work in practice. Still, relying on OBC is certainly better than NMS - after all, it's not nearly as obfuscated. :P
@emericask8ur
Oh, I was just suggesting features.
This library appears to be a work-in-progress, so there's not a whole lot I can comment on.
Still, why are you exposing the "Packet" class in sendPacket? That's just as problematic as CraftPlayer, and any plugin consumer using it will break when Minecraft updates.
Isn't that exactly what you're trying to avoid by making this a library? Otherwise, you could simply have made the source available in the resources forum (and GitHub) under an unrestricted license.
@aadnk
You are free to help out on the project
"possibly with only pure Bukkit calls:" More a craftbukkit call than Bukkit one, "CraftInventory" :)
@Zacky1
Use ProtocolLib for that. :P
@emericask8ur
You don't have to packets to open custom inventories, though. It's fully doable with OBC, possibly with only pure Bukkit calls:
However, there's a lot of missing features in Bukkit you can easily add with packets. For instance, you add or remove player names in the user list (tab) using a Packet201PlayerInfo packet.
@emericask Sad though that we can't handle packets received D: That would make the bukkit API so much better...
Is the github project private? I couldn't check it. Great project by the way :)
I like it :)
Nice! I want it!//
This seems very interesting. Hoping to see this expand as well.
Look forward to seeing this grow!
@RobinF
I gotcha. Sure. There is a ton of things you can do with this pop up as well as the other features. There is more to come later on though.
Maybe if a plugin uses this, he can pm it you or anyone. And you publish a list on this page with all plugins useing this (like vault)
@C031H0
Thanks! Updated it!
You should not force people to use NMS or OBC calls for compatiblity. Since this plugin serves as an API, it should do it for other plugins.
Such as your cast to CraftPlayer; your plugin should do that, not ours.