OceManaBar
Last Dev Build
here is the last development build that contains ALL changes written here
03/05/2012
Hi, filled by requestes, i've found some time to understand how new bukkit event system works, and i've rewritten my plugin to have it work. I've tested on my server and seems fine, no errors, but let me know. As i told many times, i'm not a java expert and i just copied something from other plugins code, mainly MobHealth. Thanks to his author, so.
Note: you need to delete old config and put the included new one. Due to a bug that i'm trying to fix, the autogenerated configuration file is missing from everything except header with instructions -_- Also, i've added a link to my github page with the source code. If you like this plugin and you think it helps your server, please consider a small donation ;)
11/01/2012
MagicSpells has a new version, with listerner bug fixed, so please download it before using this plugin!
08/01/2012
Updated again, work as I wanted (with listener) but listener of magicspells is incomplete. wait for a new version of magicspells, then this will work as intended. For now it wont refill bar when mana is regenerated. Link is same as always: last working version (or just wait for approval on bukkitdev)
source code is now released inside .jar file new todo things added
Donations
Want to offer me a beer? Here you go!:P
Configuration
Configure this plugin is easy and intuitive, but if you want you can check this page
Permissions
- ocemanabar.show
- Set manabar visible or not
- ocemanabar.user
- Allow players to change size and position of the bar
- ocemanabar.admin
- Allow players to reload plugin
Commands
Every command can begin with /manabar or /ocemanabar, both are identical
- /manabar reload
- reload configuration from file
- /manabar on
- shows manabar for single player (not globally)
- /manabar off
- hides manabar for single player (not globally)
- /manabar position [X] [Y]
- for players with "user" permission, change the position of the bar according to the two numbers X and Y
- /manabar position reset
- for players with "user" permission, reset bar position to default (from config file)
- /manabar size [X] [Y]
- for players with "user" permission, change the width and the height of the bar according to the two numbers X and Y
- /manabar size reset
- for players with "user" permission, reset bar width and height to default (from config file)
Changelog
See this page.
Planned
permission to show manabar or notdone in v0.3configurable X and Y from the screendone in v0.2configurable height - widthdone in v0.2configurable sizedone in v0.2- use values from magicspell config
- configurable colors for full/empty ascii bar
configurable colors for gradient bardone in v2.5change the bar type to color-filled instead of text (it's a bit advanced I think, but I'll try)done in v0.4optional [current value / total value] near mana bar (now is always displayed)done in v0.2configurable X and Y from the screendone in v0.2fix widget flicks/disappeardone in v0.5use magicspell events to update mana value instead of player move. This will use A LOT of less CPU.done in v0.6- add a label to write which spell is currently selected
- attach 2 keys to scroll through spells (like current right click and shift-right click)
commands to set bar position per-player instead of globally from config. config values will be just the default position.done in v2.5
Source
https://github.com/oceanor/OceManaBar
Screenshot

I'm very interested in suggestions, so if you have some, just open a ticket!
-
View User Profile
-
Send Message
Posted Dec 4, 2013when I put it in my plugins folder, it doesnt even get recognized as a plugin, no errors, no notifications, just wont load.
-
View User Profile
-
Send Message
Posted Jun 12, 2013This mod is one of the most useful mods, hopefully Oceanor will pick it back up, currently works fine with Libigot 1.5.2
-
View User Profile
-
Send Message
Posted Apr 17, 2013@Psycho089
i just have no time to update this, forgotten project caused from lost owned minecraft server
but, I'll leave sourcecode online on GitHub (https://github.com/oceanor/OceManaBar), if anyone wants to continue it, feel free to use the full source.
-
View User Profile
-
Send Message
Posted Apr 17, 2013it died? lol Sep 17, 2012 at 17:18 - 1 likeLike
@HyveMMO: Go
i'll update it in few days :D 8 months ago hahaha
-
View User Profile
-
Send Message
Posted Feb 24, 2013PLEASE UPDATE!!
-
View User Profile
-
Send Message
Posted Jan 30, 2013@olha2
please update to 1.4.7
-
View User Profile
-
Send Message
Posted Nov 20, 2012update please
-
View User Profile
-
Send Message
Posted Oct 14, 2012@oceanor
Any chance of getting this updated? Almost one month since you said you would.
-
View User Profile
-
Send Message
Posted Oct 4, 2012When next update to 1.3.1 ?
-
View User Profile
-
Send Message
Posted Sep 17, 2012@HyveMMO
i'll update it in few days :D
-
View User Profile
-
Send Message
Posted Sep 14, 2012Would love to see you update this Oceanor. This plugin was amazing for my server, and It would be a real shame if we had to find an alternative.
-
View User Profile
-
Send Message
Posted Aug 26, 2012Please update
-
View User Profile
-
Send Message
Posted Aug 7, 2012@KingPin6
dropbox version was outdated (2.8), i've updated it to 2.9, but you can download it from that site directly
-
View User Profile
-
Send Message
Posted Aug 6, 2012looked like a cool plugin. shame its so dead.
-
View User Profile
-
Send Message
Posted Jul 29, 2012getting this error while using the dev version from the dropbox :
22:04:41 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'manabar' in plugin OceManaBar v2.8 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:548) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:822) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:782) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:765) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106) at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34) at net.minecraft.server.NetworkManager.b(NetworkManager.java:229) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:114) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172) at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:83) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:572) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:464) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.NullPointerException: Plugin can not be null! at org.getspout.spoutapi.gui.GenericScreen.attachWidget(GenericScreen.java:69) at org.getspout.spoutapi.gui.InGameScreen.attachWidget(InGameScreen.java:80) at org.getspout.spoutapi.gui.InGameScreen.attachWidget(InGameScreen.java:35) at me.oceanor.OceManaBar.Utils.SetGradientBar(Utils.java:56) at me.oceanor.OceManaBar.OceCommandHandler.onCommand(OceCommandHandler.java:227) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 14 more
-
View User Profile
-
Send Message
Posted Jun 17, 2012@shankomaster
ahh you are not using last rev, easy :D this is a bug of 2 revs ago :P
-
View User Profile
-
Send Message
Posted Jun 16, 2012My players are also complaining that they cant hide it because the numbers dont go away =/
-
View User Profile
-
Send Message
Posted Jun 16, 2012I have reset it, any numbers I type in says Invalid Parameters
http://pastebin.com/Bd0k3fYW
-
View User Profile
-
Send Message
Posted Jun 16, 2012@shankomaster
as far as i know, there is no "default", that's why i made it changeable per player, because values are different depending on your "gui scale". On my server, someone uses a "large" one, but i use small, not even medium..
for your issue, try to shut down server, delete OceManaBar folder and restart it, giving ocemanabar.user to your users to let them change size and position, in my server is working good and i have more than 50 plugins running togheter..
-
View User Profile
-
Send Message
Posted Jun 15, 2012Also can I know the coords to default it on bottom right? 3: