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

    haws1290

    Ok mate WTF can u add the commands for teach cuz i just spent ages putting in permissions and /cast list aint showing anything and i can do /cast help or nothing So please put the commands in

    Also Non of the commands work i can only do /cast teach harryh spell in console and i cant do in-game nore can i cast spells and im owner and have all permissions and console says it started correctly

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

    Silvo

    Still no bookworm books as wands for spells compatibility in sight?
     
  4. Offline

    nisovin

    You probably gave yourself the magicspells.silent permission.
     
  5. Offline

    haws1290

    Yeah Proberly but i have every perm and im not gonna type every permi just have '*' and im not gonna re-write and perms for Owner
     
  6. Offline

    nisovin

    So negate the permission.
     
  7. Offline

    haws1290

    Just saying WTH does that mean and how do i do it
     
  8. Offline

    wooden_dinosaur

    @haws1290
    add or modify the node:
    magicspells.silent: false
    this will disable the silencing of the casting for the particular user.
    *note that this is how I would do it using PermissionsBukkit... I don't know usage of other perms plugins.

    @Silvo
    It might be work in progress. It seems like the other day I noticed some things in the code that were not yet announced (phase spell and windwalk) and then a day or two later I saw mention of those things in another part of the documentation...I think?
    Edit: I was looking at the source changes to MagicSpells. I *think* he was working on what you requested the day before you posted? I am looking at this page in particular...
    http://code.google.com/p/nisovin-mi...icspells/util/CastItem.java?spec=svn380&r=380
    ... then again, I am probably way off as I know nothing of Java programming.

    And he is creator/manager of 5 different plugins in addition to a server of his own to contribute to any excuse for lack of free time. :D
     
  9. Offline

    nisovin

  10. Offline

    Silvo

    Can now use data-values for cast items! Ahhh, the possibilities now with custom items!!! Thank you! EPIC plugin.
    .
    .
    .
    Bookworm books work now as seperate wand items but if I want to switch the spell ( right click ) with an bookworm book as wand item,.. bookworm reads the book as well ( and opens up its gui over the screen :D ).
    Is there a way to change how to switch spells or how to read books?
    Like shift+right click reads the book while only right click casts the spell.
     
  11. Offline

    Thrannduil

    I am getting an error when starting my server, after I changed all costs to mana in the config file, so I think it has something to do with that. I have bukkit 1337 and the magicspells 1.3
    This is the error I am getting:


    14:01:49 [SEVERE] Error occurred while enabling MagicSpells v1.3 (Is it up to da
    te?): For input string: "mana"
    java.lang.NumberFormatException: For input string: "mana"
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at com.nisovin.magicspells.MagicSpells.load(MagicSpells.java:198)
    at com.nisovin.magicspells.MagicSpells.onEnable(MagicSpells.java:101)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:174)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:957)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:280)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:171)
    at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:154
    )
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:297)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:284)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:152)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)

    and here is my config:http://pastebin.com/DvXeKPDw
     
  12. Offline

    nisovin

    @Thrannduil In your mana potion config you've put "mana" as a mana potion item type.
     
  13. Offline

    Thrannduil

    Ah, thats' it, thanks XD I replaced all "redstone" and "331" with mana (Cause I have a creative/survival for fun server and need a way to regulate some magic)
     
  14. Offline

    ProMinerMan

    Amazing! I will put this plugin on my server and I give this a A+!
     
  15. Offline

    Supar

    When i change the spell messages (str-cast-others, str-no-targets) to blank, some of the messages still appear when i reload and use the item. Does anybody know why this happens?
     
  16. Offline

    Silvo

    .
     
  17. Offline

    Juze

    Can you create spellbooks with unlimited uses?
     
  18. Offline

    nisovin

    When you clear a message, you need to put double quotes, something like this:
    Code:
    str-no-target: ""
    Yes, this is the default behavior.
     
  19. Offline

    Supar

    Thanks man :) and thank you for this plugin!
     
  20. Offline

    xDice

    i updated to 1.3
    change the config. my console say:
    [INFO] MagicSpells v1.3 loaded!

    i cant use any spells with my cast-item.
    i can type "/c list" and it shows all spells, but when i type "/c firenove" nothing happens...
    what do i wrong?
     
  21. Offline

    nisovin

    No errors? Is your permissions set up correctly? Did you mess up your config? It could be a lot of things.
     
  22. Offline

    xDice

    i am stupid... i have not update bukkit to 1337... great plugin!
     
  23. Awesome mod! I am having one problem.
    Currently, all spells are given to the op. However, I want to enable permissions. I've asked other people about what to do, and I've been told to change use-permissions to true. In my config, I don't have a "change-permissions", and I tried adding one, but permissions would not work. I have the newest build of CB (1337) and your MagicSpells 1.3. In the server, I don't get any errors, either.

    Permissions Config:
    http://pastebin.com/g9zQX1Ux

    Config File:
    http://pastebin.com/ZwmtGJjA
     
  24. Offline

    nisovin

    What permissions plugin are you using?
     
  25. I'm using Permissions 3.1.6
     
  26. Offline

    nisovin

    Permissions is old and not supported. You'll need to use a more up-to-date permissions plugin.
     
  27. Ok. Still, though, how do I enable a permissions plugin? Or it is automatically enabled?

    EDIT: Any suggested Permissions plugins?
     
  28. Offline

    nisovin

    Any up-to-date one is fine. PermissionsBukkit, PermissionsEx, bPermissions, zPermissions, are all fine. You don't need to do anything special to enable them.
     
    drewroen likes this.
  29. Ok.. I got PermissionsEx, and the same thing happened. It said it successfully loaded, but the spells wouldn't work with the groups I loaded. Only Ops.

    New Permissions File:
    http://pastebin.com/wdW0q6ZJ
    Config is still the same:
    http://pastebin.com/ZwmtGJjA
     
  30. Offline

    Nellers

    Hi there! Im having big troubles with getting the Magicspells perms working in permissionsEx.

    Im running CB1337
    and version 1.3.1 of magicspells
    and this is my permissions.yml file:

    My PermissionsEx.yml

    My problem is this; I cant seem to make the magicspells permissions group specific, even though I have the nodes written in meticulously and individually for each user group. Every group seems to be able to use magicspells commands, even my default group which has only the nodes for mark and recall can learn fireball and blink from bookshelves, and when switching users between groups they still remember the spells they learned before, but thats not such a big deal.
    I have spent at least 4 hours now in testing trying to get magicspells to be group specific, including changing hierarchy, changing nodes, resetting users to default and the changing group and no matter what I do they can all cast fireball!
    Does this mean that Magicspells doesnt support permissionsEx? Or am I missing something in the config file or the permissions.yml?
    Any help with this would be a GREAT, this is drivin me nuts! :p
    I really hope its not something blindingly obvious that I haven't noticed.
    I dont think I can even look at any more .yml files today :(

    Also, I have tested my groups and their hierarchy with other plugins like FalseBook, CommandBook, essentials and others, and all of my group permissions are working fine.
     
  31. I know you're gonna love hearing this.. but thanks! Your problem helped me fix my problem :p

    EDIT: Nevermind. :[
     

Share This Page