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 don't know what any shop plugins are capable of, as I have never used any of them.
  3. Offline



    None of my permissions seem to work, no one can cast any spells including ops. The only thing i can seem to cast is reload, and nothing else, not even list. (I believe) My configuration is setup properly, ive barely touched anything, im using the default config. Im an op, and just in case ive given myself all the necessary permissions.

    Im using CB 1550, Magicspells 1.3.2, and PEX 1.16. I am not getting any errors. Im sure im making a simple mistake here, but i cant seem to figure it out.
  4. Offline


    default-all-perms-false: true, Change it to false. Solved.
  5. Offline


    Tried it already, still cant cast any spells but reload. If making that false fixed my issues, that wouldn't make any sense because i have all the appropriate permission nodes.
  6. Offline


    Happened to me, and no it doesn't make sense, but then, what system is perfect?
  7. Offline


    All spells seem to be working right, but this keeps spamming my console

    03.12 08:32:07 [Server] INFO java.lang.NullPointerException
    03.12 08:32:07 [Server] SEVERE Could not pass event PLAYER_INTERACT to MagicSpells
    03.12 08:32:05 [Server] INFO java.lang.NullPointerException
    03.12 08:32:05 [Server] SEVERE Could not pass event PLAYER_INTERACT to MagicSpells
    I'm using the latest dev build of 1.0, 1550

    edit: I think the error is lagging my server very badly x.x

    Okay I was able to pinpoint something
    So I wanted to make only some spells cycle to no spell, so I added multiple conjure spells that didn't spawn anything so people could use those as "no spells"... apparently in the newest build this gives a very bad error or something

    Here is something I found in the console

    03.12 19:11:46 [Server] INFO     at$11.execute(
    03.12 19:11:46 [Server] INFO     at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(
    03.12 19:11:46 [Server] INFO     at com.nisovin.magicspells.MagicPlayerListener.castSpell(
    03.12 19:11:46 [Server] INFO     at com.nisovin.magicspells.Spell.cast(
    03.12 19:11:46 [Server] INFO     at com.nisovin.magicspells.Spell.cast(
    03.12 19:11:46 [Server] INFO     at com.nisovin.magicspells.spells.instant.ConjureSpell.castSpell(
    03.12 19:11:46 [Server] INFO java.lang.NullPointerException
    03.12 19:11:46 [Server] SEVERE Could not pass event PLAYER_INTERACT to MagicSpells
    edit: needless to say I removed these spells and its all fine now.. I hope.. .also my server stopped crashing lol

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


    Changing default all perms false to false fixed my issue, but only after a restart. Cast reload did not cause my configuration changes to take effect. I would rather assign permissions for everything and keep my default all perms to false option true but that doesn't seem to work. Seems like a bug, or im somehow doing something wrong.
  9. Offline


    You have to reload your permissions configuration for that
  10. Offline


    Would it be possible for external spells to have Requires-Target and not just Requires-Player-Target? I need my spell to require-target so it doesn't waste regents, but there seems to be no way to have it work on both players and mobs.

    Another thing, if it's possible is minimum range on spells to prevent spells from being spammed at close range or to make spells that require a little aim to go off.

    As for some ideas. Crouching and not moving increases mana regen ala MMO sitting? Random varibles in external spells to randomly pick commands.
  11. Offline


    Opening the jar and changing the softdepend field fixed it. Thanks!!! Works like a champ now!

    I have one other, very humble, very modest and the dev(s) behind mcMMO should get together. MagicSpells and mcMMO are absolutely without a doubt the only mods that I simply cant live without, and I'm sure many others will agree.

    one last question though... (sorry couldn't edit my post, bukkit's site...or my having issues) With MagicSpellsMemory, do I just list the name of my created spells at the bottom or is there special syntax? For instance if I have a spell copy called Redstone (copy of conjure) do I list Redstone and give it a memory amount; if I have a multi-spell called obliterate that's a combination of fireball of explode does it use a combination of the two memory amounts or do I define an individual memory amount for the spell at the bottom. With external spells, does external get it's own memory amount that counts towards all multi-spells or can I list them individually with their memory amounts? Basically, catch all answer would tell me that I do list extra spells by name. Thanks!!!!!

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


    You might want to check out mcmmo forums. I posted a little howto on creating mcmmo "classes" with serversigns and magicspells. Nothing earth-shattering, but I quite like it...
  13. Offline


    link? this could very well be earth shattering...
  14. Offline


    Reloading my permissions plugin or its configuration has no effect on my problem.
  15. Offline


  16. Offline


    So, if we use "- "addmember <class name> %a" " for the command-to-execute should magicspells assume the caster is typing "/addmember <classname> <his own name>"?
  17. Offline


    I was wondering this also, using %t would also be awesome
  18. Offline


    Both %t and %a should work.
  19. Offline


    ok so im having an issue... i make the blink spell cost 10 mana by typing

    -mana 10

    but when i cast it the mana doesnt decrease?
    what am i doing wrong? please help, I like to use mana and not regents personally
  20. Offline


    Please read the FAQ. In particular, the first question.
  21. Offline


    Can you display to the player the number of uses remaining for a spell, like "10/15 casts remaining"?
  22. Offline


    Not sure what you mean by this. Spells don't have a use limit.
  23. Offline


    as in the "num-uses" field

    num-uses: 10

    I'd like to add the player's current number of uses remaining to the str-cast-self field
  24. Offline


    I don't think you understand the num-uses option. It limits the duration of a buff spell, not the number of times you can cast a spell. The combust spell doesn't even have a num-uses option.
  25. Offline


    apparently all spells work, except for the external giant tree spell. Also how do I add custom extenal spells that work?
  26. Offline


    Yup, I did misunderstand it's usage. Thanks! I was hoping that it would work for all spells...I have some rather strong spells that I only want players to get a few uses out of. Any chance you can make num-uses an option for all spells?
  27. Offline


    I'd like to see weapon enchantments as spell effects: I/E, a timed 30-second "fortune I" enchantment on a sword.
  28. Offline


    No, that would completely go against the way spells are meant to function. Just make the reagent cost really high, or the cooldown really long, or both. Or make scrolls for those spells.
  29. Offline


    Update to latest RB asap. We love what you are doing!
    Also sorry I could'nt submit a ticket because it says this account password isnt working and wont let me submit a ticket ATM. But if you read this please take this suggestion to consideration xD

    1) add a permission node to allow spellcasting even though they are in a no-spell zone
    2) /cast reload does not seem to work for me. It says its a unknown cmd
    3) add a config such as true or false to allow/disallow spellcasting in faction territorys
    4) add spell to enable casting spell for hp (probably at a rate of 1/2 heart to 10 mana?)
    5) add spell to destroy/drop armor (or parts of it) and perhaps a backfire %
    6) add spell to disable spellcasting around player who casted (maybe create tempary, nonmoving region around player)
    7) add spell to disable use of /home or /warp xxxxxxx and other such cmds...or even better add a spell to disable certain cmds in non moving tempoary region.)
    8) spell to break bedrock for x amt of time
    9) Um, im taking this out of memory but do scrolls ignore both regants and cooldowns? if so then add a config option to choose how owner wants it to be.

    Now I know nothing of java or even plugin editing or ect.... probs configs and permissions and which spell failed and the most lol. Sorry if im asking stuff thats already been ticketed or asking for something that would change mechanics or ect.... But of course they just suggestions xD. But im sure you could probably do #1,2,3,5,8,and 9 easily. Although it could probably be 10000000 lines of code that I just suggested LOL.
  30. Offline


    Great idea IMO!!!
  31. Offline


    I considered imlementing something like this with some sort of multispell or custom spell and some custom groups.

    The groups would be "Fireball10", "Fireball9", etc. each with permission to cast Fireball spell, and eventually "Fireball0" would NOT allow you to cast the fireball spell.

    And by promoting/demoting the user automatically on each spell cast you'd eventually lose the ability to cast the spell.

    I never really got beyond the basic "hey this is a cool idea" prospect above, it would have a TON of issues in reality.

    The problem is that you'd have to tie it to a weapon and then remember to disenchat that weapon.

    What if the weapon breaks? What if the weapon is modified by another plugin? What if they give the weapon away, or logout and then log back in a week later?

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

Share This Page