Inactive [FUN] MagicSpells - Add magic to your server

Discussion in 'Inactive/Unsupported Plugins' started by nisovin, May 8, 2011.

  1. Offline


    MagicSpells - Add magic to your server!

    View the plugin on BukkitDev!

    MagicSpells is a plugin that creates spells your players can use. Its main purpose is to give your players access to certain abilities that you might not want to give them unlimited access to. Each spell can be assigned customized reagent (item) costs, cooldowns. durations, ranges, and so on. Spells can be cast by using the /cast command, swinging a wand, or both. It's all customizable.


    Important: Read before downloading! There is a lot of information in this post. I know, it's a lot to read. However, I spent quite a while writing it all in what I hope is a clear, informative, and understandable manner. So, please, read the entire post before asking a question. Chances are, the answer is already here. I also suggest taking a nice look through the configuration file. Is it a massive file? Yes, it is. But if your question is "can I do this?" then a look through the configuration options would be a good idea.
    Plugin Manual

    There is a lot of useful information in the plugin manual, which can be found here:

    MagicSpells Plugin Manual


    Spells can be cast either by using the /cast command or by using a wand item. To cast a spell, a player must first know the spell. Server operators know all spells by default. They can teach spells to other players by using the teach spell. For example, to teach bob the blink spell, an operator would type: /cast teach bob blink.

    Bob can now use the blink spell. He can either cast it by command, by typing /cast blink, or he can cast it with a wand item. To select the spell, he holds the wand in his hand and right clicks. Right clicking will cycle through any spells assigned to the item he is holding. When he has the one he wants, he left clicks to cast.

    If Bob does not have the required reagents for the spell, or if he has cast it recently and it is still on cooldown, he will not be able to cast the spell and will instead receive an error message.

    If mana is enabled, a player can use the /mana command to see how much mana they currently have.


    View Spell List


    The zip file contains a config.yml file that should go into the MagicSpells folder within your plugins directory. The default configuration has appropriate spell costs, durations, and messages for each spell. However, you will most likely want to customize this to fit your server.

    You can modify the config.yml file directly, or you can choose to leave it intact and instead create an alternate config file, by default altConfig.yml. Any configuration values in this alternate file will override the values in the main config file.

    There are some general configuration options that apply to all spells, as well as options for each individual spell. Important: The default configuration file does NOT contain all config options, it is just an example. Just because a config option isn't in the default doesn't mean it is not available. For example, it's possible to add a duration to any buff spell, even though the default configuration file does not have a duration on all buff spells.

    To reload the configuration, simply cast the fake reload spell (/cast reload). Only server operators can do this (it can also be done from the command line).

    Please see the plugin manual for information about all of the various configuration options.

    Frequently Asked Questions

    Help me! Why isn't it working?
    If - after reading through this entire post - you can't figure out why it isn't working, please take the time to submit a proper help request. You can post your request either on in this thread or in the MagicSpells forum. You should provide the following information:
    • The CraftBukkit build you're using.
    • The MagicSpells version you're using.
    • Which permissions plugin (if any) you are using.
    • The error in the console, if there is one.
    • Your config file(s). Please don't post them directly , use a service like and just post the link.
    It says I need reagents whenever I cast a spell! Where do I get reagents?
    One of the main ideas behind this plugin is to give players cool abilities, but with a cost. The reagents are the spell's cost. This can be configured in the config.yml file individually for every spell. The config option name is "cost". You can also add your name to the list of exceptions in the general.cast-for-free option.

    Can I unbind spells from items?
    Yes. Simply use the bind spell to bind the spell to your empty hand, and it will no longer be bound to any item.

    Why can't my players cast spells?
    Why does it say "You cannot cast that spell right now" when I try to cast any spell?
    If you're using Permissions, please make sure your permissions are all set up correctly. Look in the Configuration: Permissions section for more information. Also double check and make sure your use-permissions config option is set to true.

    What are the Permissions nodes?
    The nodes are listed on the permissions information page in the plugin manual.

    I can't get my Permissions working! Can you help me?
    Remember that all nodes use the "real" spell name, rather than the name you define with the "name" option. If you cannot get your permissions working, feel free to ask for help. Make sure you specify which permissions plugin you are using, and all of the items from the "Help Me!" question above.

    Will you add iConomy (or another economy plugin) support?
    With the addition of the 'tome' and 'scroll' spells, I currently have no plans to add special support for an economy plugin. You should be able to create tomes and scrolls and sell them using any plugin that allows you to sell items, thus allowing you to sell spells.

    I have a great spell idea! Will you add it?
    Please tell me about it by submitting a ticket! I can't guarantee that I'll make it, but if it's a feasible idea, I'll definitely consider it. I'm always looking for new spell ideas. Note that I may not respond directly to your idea, but I always read the suggestions.

    I've found a bug! What do I do?
    Please submit a ticket! Please include your CraftBukkit build number, any error in the console, the situation that caused the error (if known), and if you think it's applicable, the list of plugins you use.

    Change Log

    View full change log

    Donate: Always gotta have a donate link for those who love their plugin authors.
  2. Offline


    I believe bPermissions uses the ^ symbol to take away permissions.
    Imm0rt41 likes this.
  3. Offline


    "A player with the magicspells.learn.spellname node will be able to learn the specified spell. If they don't have this permission, they will not be able to learn the spell. This defaults to true for all players. The magicspells.learn.* node will give permission to learn all spells."

  4. Offline


    thats the LEARNING idiot. not the CASTING.

    A player must have the magicspells.cast.spellname permission in order to cast a spell. This permission does not give them the spell, it just allows them to cast it. For many servers, modifying this permission node will not be necessary. It can be useful to deny access to certain spells on certain worlds. This defaults to true for all players. The magicspells.cast.* node will give permission to cast all spells.

  5. Offline


  6. Offline


    Hello Nisovin. Im having a problem getting spell copies to work.

    I have multiple spells set up for stonevision so that I may look through other types of walls with a different spell. I have them all set to work with an arrow. Although, in game, the only spell that comes up is stonevision itself.

    Im running Craftbukkit 1060, Magic Spells Version 1.04, and I'm not using any permissions plugin as I only play with a few friends on my server.

    The spells I'm referring to are on lines 605 - 695. And the spellcopies section is at the end of the config on lines 821 - 827.
    Here is a link to my Configuration file on pastebin.

    Thank you very much for your time.
  7. Offline


    Your config works fine. It's probably because you haven't learned the spells you created. The issue you're going to run into is that your defined in-game names for the spells are two words. This will make it so it won't work with any spells like teach, spellbook, etc.
  8. Offline


    Thanks so much man. Using the information you gave me I've altered my config and am now able to use my custom spells in game. Now another problem... :(

    If you look at my config again you'll see I have 6 custom spells all copied from the spell stonevision. All the custom spells work great! The problem now is that anytime I use the default spell stonevision, it starts to lag, doesnt allow me to see through stone, and then kicks me. The server remains running fine, with no server error, and the message "end of stream" is displayed. Could this be a bandwith issue?

    Heres an updated config for reference..
  9. Offline


    I did and it's clear you haven't read anything, even the responses people give you to your error. You are either very stupid or incapable of understanding your mistake, either way you are very rude about it considering no one here owes you a second of their time. Read CAREFULLY the following if you want to solve your issue.

    The reason why people can cast spells in your world is because, by default, players can cast any spell and players learn every spell.

    By default players learn every spell.
    By default players can caster every spell.

    You need to disable the casting of spells. Not listing it only means it's going to chose the default setting which is why I linked you a page about the DEFAULT SETTINGS FOR PERMISSIONS. When someone says read a page, even if you HAVE ALREADY READ IT, please read it again, because typically what they are trying to say is "Hey dude I wrote the answer here on the page for you already!"But hey you been running a server for two months and you aren't doing permissions wrong and I'm an idiot even though I'm here trying to help you.

    I'm sorry Nisovin, I won't respond anymore on this issue which HOPEFULLY NOW is resolved.
  10. Offline


    how do i install it?
  11. Offline


    You just drag it into your plugins folder and reboot your server. I recommend reading all the FAQs on the frontpage because they go into great detail on all the features.
  12. Offline


    This plugin is amazing! I have races of creatures on my server, Elves have the barrage one and Hunters have mob summoning! :D
  13. Offline


    Emm, I've BPermissions, because other plugins for permissions don't work me fine. I can only add node, not set it to true or false. But I wrote, that OPs have all spells, althought I set to false "Ops-have-all-spells".

    BTW. Wands don't working good, too.
  14. Offline


    Actually, I'm pretty sure bPermissions does let you remove permissions. You should read the information about that plugin.
  15. Offline


    great job on the plugin. So far so good, no errors and everything working. But I notice something I think its annoying.

    Can you make so /cast bind, /cast list, /cast help kind of command to be treated as commands and not spells??? And give them a permission node please. Because its annoying to be giving those to everyone all the time.

    Thanks a lot.
  16. Offline


    This is what the 'grant' permission nodes are for.
  17. Offline


    Everything seems to work fine but I have a question.

    Not sure if this has been asked before but, I don't use permissions and would like my users to be able to buy spells to learn. I know tome's can teach spells but how would I set this up so if they buy a book/tome from one my shops it would teach a certain spell.

    I can't seem to set a tome myself, while holding a book in my hand I type "/cast tome blink" and it tells me "You must be holding a book."

    This server is running Craftbukkit version git-Bukkit-0.0.0-986-
    gc696c2f-b1066jnks (MC: 1.7.3)
    Plugins: AutoSave, BlockRespawn, ChopTree, CookieMonster, DeathC
    ontrol, DogWhisperer, Essentials, EssentialsChat, EssentialsGeoIP, EssentialsPro
    tect, EssentialsSpawn, Flight, Giant Trees, LivingForest, MineBackup, ModDamage,
     MyHome, NightLight, PhatLoots, PhoenixTerrainMod, Shop, SpawnMob, VoxelPort, Vo
    xelSniper, WorldEdit, BookWorm, LWC, MagicSpells, mcMMO, MobTrigger, properTime
  18. Offline


    True I didnt notice that even having been reading that over and over again. Even so doing /cast list and get list, help, bind as spells??? They are not spells, they are commands. Anyway you got a quick solution for me so thanks anyway.
  19. Offline


    In my opinion, bind could easily be a spell. What if you want to charge reagents for people to bind spells? And what of teach and forget? Or perhaps spellbook or scroll or tome? Are those really spells? Perhaps not. But there are some server owners who would like to put reagent costs or cooldowns on those abilities. So, rather than deciding myself whether or not something is a spell, I just make everything a spell. That way it's up to the server operator to set it up the way they want it.
  20. Offline

    Allen Buckman

    any possibility that you could make it so you can set different max mana amounts for different players?
  21. Offline


    True I never tought in that way. Thanks
  22. Offline


    Love this plugin, server mates love this plugin. Literally the only suggestion I have to add is a way to limit the amount of spells a group can learn through permissions.

    As far as I can currently tell, there's no way (I read everything so as to not seem like a derp, but I might be missing something entirely.)

    Great work, you've got yourself a fan.
  23. Offline


    Is there any solution for it?
  24. Oh. Now all I need is a plugin that hides every spell in different locations in the world.
    Not much for handing them out, more fun if they need to search for them. :)

    Is there any way to put the spell in a book for others to learn from it? I've never used this plugin so I know nothing. If someone with the permission to write scrolls and spellbooks write a spellbook with a limit of 2, does that mean that someone else can use the book to cast the spell twice or does it mean that 2 people can learn the spell from that book before it expires?

    've also read somewhere that this plugin together with BookWorm lets you put down spells in a book for others to learn. Is this the only way (if the question above have "no" as an answer to them)? If so, how?

    I'm sorry for the nooby questions but I'm a total noob so they kinda fit me. I have tried to read everything about this that I could find but I've only seen people hint about what can be done, not what actually can be done or how.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  25. Offline



    I've finally setup permissions so that my users will be able to have the list and help spells by default. But I'm having trouble getting them to be able to teach themselves spells on their own. (At a price using an "Essentials" command cost option.)

    But it seems that they cant teach spells they don't know. Is there anyway around this?

    My current permissions for default is:
    magicspells.grant.list: true true
    magicspells.grant.teach: true
    magicspells.teach.*: true
    magicspells.learn.*: true
    magicspells.cast.*: true

    Any help is appreciated.
  26. You could make spellbooks containing one spell each and sell them I guess. That way they can buy the spellbook and teach themself the spell from the book. I'm still figuring out how this plugin works so this is just speculations from me. :)

    One thing I would love from this plugin would be to be able to somehow bind a spell to an object and the spell is bound only to that exact object and if you leave it in a chest and someone else pick up that object, they can use the spell with it.

    I guess this prob is undoable but it would be awesome. I'm trying to config my server so that as many things as possible in the game can be done without the players needing to write any commands. With all the different plugins used or about to be used on the server it's a small hell to ask the players to learn all commands.

    Another way could be to be able to demand that players, when the learn a spell from a spellbook has to learn it while holding a stick (for example) and when they learn it they bind it to the stick.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: Jul 16, 2016
  27. Offline


    The "tome" spell puts the spell in the actual book to learn. It requires BookWorm. The "spellbook" spell just puts the spell in a bookcase to learn. The limit is the number of times it can be learned.
    I'll add an option to be able to teach spells without knowing them in the next version.
    This is mostly undoable. You can't really create unique items in the game. However, this is what scrolls are for.
  28. The more I learn, the more I love this pluging. You've managed not only to make a plugin that works extremely great. You've made it easy to implement almost every other plugin thrue an easy (even for me) config.

    I still have on small problem thought. Tomes. I have BookWorm installed and working (also a great plugin btw) and I've managed to figure out how to create a tome.
    The problem is that the tome has unlimited uses. No matter if I change the config to max-uses: 1 and default-uses: 1.

    Am I missing something here??

    What I'm trying to achieve is a tome that works as a spellbook. And just like the spellbook spell can be configured to only teach the spell to the first person that uses it, or to the second etc before it's "empty", just like that is how I'd like the tome to work.
  29. Offline


    What I did is this. I gave everyone every spell and then disable the CASTING abilities of spells and then had spells that promote people to different permissions groups to then grant or ungrant them the ability to learn spells using the external spell.
  30. I must admit I didn't understand a single word of what you just wrote. :p
  31. Offline


    Thanks for an awesome and easily modifiable plugin! I use it on my server for a kind of class system so that each class has their own set of spells. One thing that would be cool: the ability to make spells cost hunger and the drainlife spell to drain either health or hunger from targets.

Share This Page