Inactive [FUN] MagicSpells - Add magic to your server

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

  1. Offline

    nisovin

    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.

    Download

    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

    Usage

    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.

    Spells

    View Spell List

    Configuration

    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 http://pastebin.com 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

    jazzman170

    i am a little confused as to how i can sell scrolls. I have a shop plugin that allows players to make shops. In a shop that i made i put 4 scrolls with firenova spell (10 uses) in the chest, and when a player right clicks the sign to buy a "Paper" (the spell i put on them), the shop says it is out of stock, but i have 4 of them in the chest sellable.

    and of course the item that i have it set to "Sell" is paper.
     
  3. Offline

    mike0fmikes

    I've been looking everywhere for a detailed list of options for the spells, can you point me in the right direction? The only thing I can find it the spell options page and the general config page​
    So if I don't give the .teach permission to someone, they can still make a scroll? What is the option I need to set to allow for this?​
    Well, I was thinking of something that was geared towards PVP specifically (since I don't think there's really a way to suffocate a mod aside from dropping a pile of sand on em) You could have the spell spoof the player into being "under water" with their air bubbles depleted for X amount of time. To make it work on a mob, you would just damage the mob I suppose. The only noticeable effect would be in PVP though.​
    I was thinking of trying to spam, say, three casts of minion in a multi-spell; but I just assumed that the third cast would cancel the second, and the second would cancel the first. This would actually work? If so, I'm setting up a Horde spell tonight :)
    Awesome!!!​
    ...I can't believe I didn't think of that...brilliant!​
    Something told me that's not the way it was meant to work. I had to remove it from all my players lists because they where forget-bombing each other. A silence spell would be great!​
    Double awesome!!! Given any though to a throns spells? Something that would damage those who damage you...you could even give different damage types, like set your attacker on fire, or blast back your attacker. Hey! You could have the thorns spell trigger another spell that would target the attacker.​
    Thanks for the response!!! Just when I think that I've toyed with this mod enough, just when I think I've finished tinkering, I find a whole new level of customization.​
     
  4. Offline

    keenerb

    How can I alter the minion spell to summon a tamed wolf?
     
  5. Offline

    shanko

    I dont think you can, combine it with conjure to give your player bones and summon a wolf
     
  6. Offline

    keenerb

    Yeah, that's what I've been doing. It works fine.
     
  7. Offline

    mike0fmikes

    So I found what I was looking for on Bukkit dev. I'm trying to run the magicspells addon you have there, but I'm getting this in the console, any ideas? version conflicts maybe?

    2011-11-29 14:14:06 [SEVERE] Could not load 'plugins/MagicSpellsMemory.jar' in folder 'plugins': MagicSpells
    org.bukkit.plugin.UnknownDependencyException: MagicSpells
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  8. Offline

    nisovin

    You're still running the normal MagicSpells right? It looks like you aren't.
     
  9. Offline

    mike0fmikes

    Yup, latest version of magicspells and magicspellsmemory, CB1337. I'll try re-downloading both to see if that helps. If I set debug: true will I get a more "thurough" mem dump?
     
  10. Offline

    nisovin

    Is MagicSpells successfully loading before that error is thrown?
     
  11. Offline

    mike0fmikes

    Yeah, its the only error I'm getting in the console. Just re-downloaded both mods and installed, still throwing the same exception. Minecraft 1.8.1 btw (if that helps)


    Edit:
    I noticed that magicspells, all though it's loading fine, is not loading first. Could this be the issue?
     
  12. Offline

    nisovin

    You haven't done something weird like rename the MagicSpells plugin in its plugin.yml file, have you?
     
  13. Offline

    mike0fmikes

    Nope, everything is standard. The only thing that's not fresh out of the box is the magicspells config.yml
     
  14. Offline

    nisovin

    Hmm, that's odd. I've made a (very minor) change to MagicSpellsMemory, try downloading it again.
     
  15. Offline

    jazzman170

    Still getting this bug with latest build of craftbukkit: 1532

    PLAYER_INTERACT to MagicSpells
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftItemStack.getEnchantments(CraftItemStack.java:171)
    at org.bukkit.inventory.ItemStack.clone(ItemStack.java:209)
    at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(MagicPlayerListener.java:123)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:330)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:592)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:546)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:516)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:414)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Happens when right clicking a sign.

    Keep up the good work MagicSpells Team!
     
  16. Offline

    Birdtalon

    For some reason I cannot get the spells to consume mana when cast, or any reagent for that matter.

    Here is my config file.
     

    Attached Files:

  17. Offline

    mike0fmikes

    Still getting this error:
    2011-11-30 06:35:01 [SEVERE] Could not load 'plugins/MagicSpellsMemory.jar' in folder 'plugins': MagicSpells
    org.bukkit.plugin.UnknownDependencyException: MagicSpells
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  18. Offline

    nisovin

    Do you have the magicspells.noreagents permission node?
    I don't know what to tell you. It works fine for me, and for a few other people. The only reason that error should show up is if MagicSpells isn't in your plugin folder. That's not even my error, it comes from Bukkit itself.
     
  19. Offline

    mike0fmikes

    hmm...now that is really weird. Correct me if I'm wrong, but this is an error that MagicSpellsMemory is causing bukkit to throw? When the mods uninstalled I get a clean boot up. When it is installed, it throws that error. Boot up order couldn't have anything to do with it could it? I.E. MagicSpellsMemory is looking for MagicSpells which hasn't been loaded yet.
     
  20. Offline

    nisovin

    MagicSpellsMemory tells Bukkit that it requires MagicSpells to run, so Bukkit says, "ok, I'll load you later." Then, if it never finds MagicSpells, Bukkit throws that error. I think this may actually be a bug with the way Bukkit loads plugins. Do you have any of the plugins BookWorm, WorldGuard, or Spout?
     
  21. Offline

    mike0fmikes

    I do have world guard, but not spout or bookworm.
     
  22. Offline

    STiChad

    That player interact problem happens every time a player right clicks any usable object with nothing in hand.
    Ex: crafting tables, enchanting tables, etc.

    Also, I was wondering if there is a way to hook into Factions and have it go by enemies instead of just hostile mobs.
    Like the entomb spell, it will only work on mobs, would be awesome if it worked on enemies of the players faction in pvp allowed areas only. But if the player were in the wilderness, and not in a pvp allowed area, it would only work on mobs again.

    Just a thought, fantastic plugin nonetheless.
     
  23. Offline

    jazzman170

    nisovin exactly how were YOU able to get a scrolls shop working? I have been trying to get your scrolls sellable in a shop for over a year (no joke) now, and i can never get a clear answer as to how im sapposed to set it up correctly, step by step. What shop plugin did you use to make them sell-able so that i can get the same plugin. I want a scroll shop on my server cause thats the only way im gonna allow players able to use spells, is with scrolls. So i need to make a shop with it.
     
  24. Offline

    nisovin

    I've used my own custom store plugin. Though honestly, I never sold scrolls anyway. However, any store plugin that allows you to specify a data value on paper should work. Just create a "base" scroll with a command like this:

    /cast scroll -base <spell> [uses]

    It should tell you a data value (it should be a negative number). Then just create a store that sells paper with that data value, and it should work.

    Honestly though, I've never done it.
     
  25. Offline

    Zombiemold

    nisovin, how goes the next update? Had to disable Magic Spells on my 1.0 server runing the dev build due to a constant error.
     
  26. Offline

    nisovin

    If you're talking about the same error everyone else was getting, it's been fixed in a recent CraftBukkit build.
     
  27. Offline

    jazzman170

    hmm, im confused as to a plugin that lets you sell paper with a data value. Do you have an example of somebody's plugin that does such a thing? the only thing i can think of is something like wool:2 or wool:3 for this case, Paper:-1 ?
     
  28. Offline

    mike0fmikes

    Still getting the same error. Reinstalled vanilla minecraft 1.8.1, reinstalled Bukkit 1337, reinstalled magic spells 1.3.2 and magic spells memory. Disabled all other plugins. Still throwing the same error. Had a friend try to load those two mods together on his server with no other plugins, and he's getting the same error also. Anyone else seeing this error when you run magic spells and magic spells memory together?

    2011-12-02 06:29:36 [SEVERE] Could not load 'plugins/MagicSpellsMemory.jar' in folder 'plugins': MagicSpells
    org.bukkit.plugin.UnknownDependencyException: MagicSpells
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:135)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
    at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  29. Offline

    shanko

    Not sure about the whole scrolls thing, but my server uses Command Iconomy and sets prices to each spell that charges for the "Cast teach" command
     
  30. Offline

    nisovin

    First, try renaming your "MagicSpells.jar" to something like "MagicSpellsAwesome.jar". If that doesn't work, try opening the MagicSpells.jar, then opening the plugin.yml. Look for the softdepend line, and remove any plugins from the list that you aren't using.
     
  31. Offline

    jazzman170

    nisovin if u get the chance can you reply to the first post at the top of this (page 38), Please, and thanks ^_^
     

Share This Page