vEnchant
NEW UPDATE IS COMING SOON!
This this is the best enchant plugin for craftbukkit!
When I was looking for good enchant plugin, I have not found useful one, so I decided to write my own!
And now i present it for you!
Features
Enchanting and unenchanting items and blocks, configurability, great restrictions system through permissions, fastest performance and much more!
Tip of the version ;-)
If you want let players unenchant items, just add "- venchant.all.0" permission for default group!
if you want translate plugin to your language, install it, find messages.yml in VEnchant folder. Than copy EN section, change en to your lang (ex. de), translate messages and send new messages.yml to me through PM.
Advantages
Why VEnchant? | |
---|---|
1 | it's fully configurable |
2 | simple commands - not only /enchant, you can use /enc /ven and even /e!! |
2 | enchanting level limits through permissions |
3 | supports enchanting up to 32767lvl |
4 | looting, fortune and thorns are not enchanted by /enc all - looting 3000lvl of looting can cause lag |
5 | custom mapping for "natural enchants" |
6 | also custom mapping for default enchantment levels |
7 | multi-language |
8 | custom enchantments names and also enchantment lists!! |
9 | fast performance - it caused by mapping enchantments and levels in configs |
10 | removing enchantment by enchanting to zero level! |
Video review by MythicCynic!
Commands & Permissions
You can use "/enchant" "/ven" and even "/e" instead "/enc".
Command | Permission | Description |
---|---|---|
/enc | - venchant.natural | Enchants item in your hand with natural enchantmens, default level for each enchantment |
/enc all | - venchant.all | Enchants item in your hand with all enchantments, default leve for each enchantment |
/enc max | - venchant.natural.max | Enchants item in your hand with all enchantments, default level for each enchantment |
/enc [enchantment name] | - venchant.<enc ID!!!! not name!!!> | Enchants item in your hand with [enchantment] , default level |
/enc [level] | - venchant.natural.<level> | Enchants item in your hand with natural enchantments, level you provided |
/enc all max | - venchant.all.max | Enchants item in your hand with all enchantments except looting, fortune and thorns at 32767level |
/enc all [level] | - venchant.all.<level> | Enchants item in your hand with all enchantments except looting, fortune and thorns at level you provided |
/enc [enchantment] max | - venchant.<enc ID not NAME>.max | Enchants item in your hand with [enchantment] at 32767level |
/enc [enchantment] [level] | - venchant.<enc ID not NAME>.<level> | Enchants item in your hand with [enchantment] at level you provided |
Configuration
Basic configuration
1. Config.yml
Name | Default | Description |
---|---|---|
locale | en | Allows you change locale. Currently 'en' and 'ru'. |
pexcheck | configuration | This is advanced configuration value. |
enablemetrics | true | enable or disable plugin statistics on MCStats.org |
<enchantments section> | - | If you want add custom enchantments names, you shuold add line "<enchantment name you want>: <id>" |
2. messages.yml
Here stored messages. Just change you want.
Advanced configuration
TO-DO List
- rewrite natural enchantments checking system (i haven't starter yet)
removing echantments
enchantment lists
help command
added plugin metrics
add perms check for natural enchantments when enchanting by name
Oh is it possible to have the command check for level restriction and automatically enchant to that level. What I mean is if Group A has venchant.all.3 and Group B has venchant.all.7, then is there a way to make it so that if a member of Group A types /enc that the plugin automatically enchants natural up to level 3 if a level is not specified and similarly if a member of Group B typed /enc his item would be naturally enchanted to level 7 instead of (in the case of Group A) saying "you do not have permission to enchant to default level."
Brilliant plugin. I am loving it.
I have a question. Is it currently possible for a user to be able to perform natural enchants but be restricted from using /e all altogether. For example I want my users to be able to perform natural enchantments up to level 2 but I do not want them to be able to use the /enchant (/e, /enc, /ve) all command at all. Is there a way to disable one without the other?
This is not a bug or anything, but a simple disclaimer to anyone with more than one world using groupmanager for perms (The others could be the same but I don't know for sure with them), if you use the mangaddp and mangdelp commands to add nodes like venchant.all.2 note that these ONLY TAKE EFFECT IN THE WORLD THEY WERE ISSUED IN. For example if I have two worlds, World1 (main) and World2 (secondary), and I had copied the user and group files of World1 (our original world) into World2 such that all users essentially have the same permissions and then use the /mangaddp usergroup venchant.all.2 while in World2, then the effect ONLY changes the usergroup permissions in World2.
@VintarZ
in the mean time you could do a direct download link like dropbox so i can check it out right away :D
@MythicCynic
Thx, this is good when project has
betatesters like you ;)@VintarZ
Awesome, I'll let you know if I find any more bugs.
@MythicCynic
I have just updated plugin, fixed dat shit u found and added some new features. thx.
p.s. waiting for approval of new version....
@VintarZ
no problem, i tend to be good at finding bugs. Sorry it is causing you a bit of trouble mate. If i find out something that could help, i'll let you know
@MythicCynic
I have edited last message... and trying to understand WHY it's happening!
Here is a total bullshit, and now is 11:25pm, i cant think, i will made it tomorrow.... thx for founding a bug, bro!
@VintarZ
cool mate, thanks. If you need someone to test these on a server let me know, Im more than happy to help test stuff.
@MythicCynic
F@cking shit!
I am now making unenchanting and i will look WTF is with level checking...
Shit, really! But i cant understand where allowing leak...
But when i used ....all.10 all was OK. F@ck.
@VintarZ
Yeah like if i give someone venchant.all.2 they can't do /enc alone because it tries to force its way to the default level of all of the enchantments (such as 4 and 5 which are higher than two) but if the user simply uses "/enc 1000" it bypasses the permission and gives level 1000 natural enchantments.
I think this could be in part due to the enchant.natural.level node, as it is right now I do not see a way to disable all digits higher than 2 for a user other than literally manually adding every digit up to 32727 (or whatever the max level was) into a negative node for a group (for example -venchant.natural.3 all the way to -venchant.natural.32727) which would take forever.
@MythicCynic
what u mean?
permission "all" gives you permission "natural".
also:
any association?
or you mean that - venchant.level.2 allows user enchant to 3rd lvl by /enc 3?
Alright so after a bunch of tests I have discovered that the restrictions do not work properly. If I add the nodes venchant.all.2 and venchant.natural.2 with each other AND without eachother, /enc does not work and properly records that you cannot enchant to default level however a user can EASILY bypass this by typing /enc [level] and as such the restriction does not work fully. Is there something I need to do that I am not, or is this not intentional. Also if you don't mind, it would be cool if you could have the /enc command default to the level specified by the nodes above so for example if a user or group has either venchant.all.2 or venchant.natural.2 then when the user types /enc it will automatically perform a natural enchant up to the level 2 rather than reporting back that the user has insufficient permissions for the default enchantment level. Hope to hear back soon mate.
@VintarZ
I apologize. It turns out that one of my admins was messing with me and added all of the permissions to the USER I was playing on to test rather than on a pergroup basis and as such the account I had used to test had all permissions regardless of groups. It appears everything is in order. Excellent work mate :D
One problem I did notice however is that if you set the node venchant.natural.2, it does not seem to do anything, in the instances that it does not disable the /enc command altogether for that group, and venchant.all.2 works if the user tries /enc all but disables natural enchanting
EDIT: Ok so now it seems to work out of the blue. I added the node venchant.natural.2 and took the node venchant.natural away then typed /enc 2 and it worked. This was weird though because last time i tried this it kept spitting out errors but for now it seems to be working.
@MythicCynic First: u can't disallow enchanting for group. If they don't have any venchant permissions, thay cant enchant "ANYTHING".
all of u described already made.
if u want give user permission to enchant all at max:
if u wanna let group enchant max to 2nd level:
So the plugin don't "NEEDS". I made it for me and features u requested i done already.
Straight to the point, what I feel this plugin NEEDS:
A way to disable the plugin as a whole for a certain group (perhaps something like - -venchant.enchant which means a group cannot enchant ANYTHING at all.
Optional stuff that would just be cool:
-a node that sets a max enchant level across all types of enchantments such as venchant.enchant.lv.2 meaning that they could do something like /enc all but all enchantments for the user with this node are restricted to level 2. This would be a cool thing for donor groups on servers.
In any case, I can't use this plugin at all until I can stop standard users from using it. I do hope you are still updating this plug though, it looks extremely promising.
@VintarZ
No i mean that it said it just couln't get it to let the player enchant at ALL but I will retry it, Looks good mate.
And I could maybe pm you the idea I have for that plugin and get into more of the specifics but I am not a developer or good with java at all so it will be pretty simple ideas rather than like use (code here) to do something.
@MythicCynic
I'm interested in developing any plugin - i just don't have cool ideas.
@MythicCynic
Do u know that venchant all gives u ability use /e and /e all without specifiying level?
If u want specify level u should set ...all.max ...natural.max or ...all.<level> ...natural.<level>
Ex. "- venchant.natural.10".