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!
I can't adjust where it is located at all...I think it needs an update.
@Wingblow
I agree :C that'd be awesome
I would really LOVE this to be integrated with Heroes too, and I'm sure we're not the only ones!
@shankomaster
you dont need to add this to config.yml, instead please check the file "plugin.yml" inside the jar file you have in minecraft server plugins folder :)
i'll try to add heroes support, but from scratch, because if i've understood well, heroes manabar is a different thing, not a magicspells one :P
@maichinht
you stole my post!!! ;)
i was just about to post that xD
please, add support for heroes (and a donation button if you want)
You'll be the best if you can make this work with heroes!!!
Heroes is a big rpg, level class, spells... damage mod.
my plugin.yml has no ""depend: [Spout,MagicSpells]"
should i add that onto it? Here is mine
Enabled: true ShowNumeric: true UseAscii: false SegmentChar: '|' MaxMana: 100 PosY: 230 PosX: 290 UseTexture: true Height: 10 Width: 100 Size: 70
@oceanor
Heroes also uses a Mana system. if this could like to that that would be great
@Beatkidz
what heroes have of non-standard? i dont know that plugin, so please explain me what i have to do (or try to do )
@shankomaster
2012-01-13 18:11:07 [INFO] MagicSpells v2.1.2 loaded!
2012-01-13 18:11:08 [INFO] [OceManaBar v0.7] enabled!
it's a bit strange, the error you have not shows to me, i've tried without magicspells and bam! same error.. the error you have is caused from ocemanabar's plugin.yml, that has inside:
"depend: [Spout,MagicSpells]"
plugin names are taken from plugin.yml files, i've opened magicspells, inside there is:
"name: MagicSpells"
this cause my plugin to load after spout and magicspells automatically.. O_o someone else having this issue?
Could you make this heroes compatible?
Newest version and newest magic spells
13.01 10:51:01 [Server] INFO at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) 13.01 10:51:01 [Server] INFO at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:399) 13.01 10:51:01 [Server] INFO at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:145) 13.01 10:51:01 [Server] INFO at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52) 13.01 10:51:01 [Server] INFO at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:127) 13.01 10:51:01 [Server] INFO at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:151) 13.01 10:51:01 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136) 13.01 10:51:01 [Server] INFO at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215) 13.01 10:51:01 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135) 13.01 10:51:01 [Server] INFO org.bukkit.plugin.UnknownDependencyException: MagicSpells 13.01 10:51:01 [Server] SEVERE Could not load 'plugins/OceManaBar_1.0.jar' in folder 'plugins': MagicSpells 13.01 10:51:00 [Server] INFO This server is running Craftbukkit version git-Bukkit-1.0.1-R1-b1597jnks (MC: 1.0.1) (Implementing API version 1.0.1-R1)
@kavokane I think i've fixed definitly, sorry for inconvenience, i'm using many languages at the time and i've started java shortly :P
waiting for approval of version 1.0 (but you can use the dropbox link at the top), then i'll start to improve customization and maybe a label to show current spell name..
Thanks for the reply! Yes MagicSpells loads just fine. To fix the problem I just reload your plugin and it hooks fine.
@kavokane
strange, it works well for me even if loads after, and dependancy is good handled by plugin.yml..
are you sure your magicspells starts well?
It seems my MagicSpells plugin loads after this one and it gives this error:
[SEVERE] Could not load 'plugins/OceManaBar.jar' in folder 'plugins': MagicSpells org.bukkit.plugin.UnknownDependencyException: MagicSpells
Please allow it to handle loading of dependencies better.
is there ANY way you could get this to work with heroes?
that would be amazing :D
new version of plugin released.
there is a bug in magicspells that prevent this plugin from work as intended.
i've just told that in a comment (here), when nisovin releases a new version of MagicSpells, this will work again and better, otherwise mana update is called only when a spell is casted, and not on regenerate.
You can find this new version on the "last working version" on top or waiting for approval of jar file :-)
edit: new magicspells version is out, fixing this bug. please download it before using this plugin
woohooo! Awesome :D
@oceanor
Thanks Oceanor! It's a pretty important addon to my server.