HarryPotterSpells
Harry Potter Spells
We now have a discord server, join us here: https://discord.gg/vQxduZC
To understand users/server owners better and see what to focus on next for the plugin please fill out this survey
https://bit.ly/mcharrypotterspells
Overview
HarryPotterSpells is the ultimate Harry Potter plugin. Whether you run a Harry Potter server, want to add magic to an RP server, or just an admin looking for a bit of fun, this plugin is for you!
Many of these options are configurable. If you don't want parts of the plugin, open the config.yml with your favorite text editor and disable anything you don't want.
Features
- Provides a complete Harry Potter experience
- Can be used on a HarryPotter server, an RPG server, or just to play around
- Has over forty spells, with more in progress
- Cast spells quickly with your magical wand (default: stick)
- Teach users spells with simple commands
Spells
Cast spells with your magic wand (by default, a stick). Right-click to scroll through your available spells, and left-click to cast! Server operators can "teach" and "unteach" other players (and themselves) spells.
For spell documentation, see the Spells page on our site.
Commands and Permissions
For information regarding commands and permissions, see the Commands page on the site.
Configuration
If your not sure how to setup your config or if your looking for a more detailed version of your config, see the Config page on the site.
Regarding Locale
Currently there are only two language options. We are looking for more translates and looking to branch HPS into more different languages Please message jacklin213 if you are interested
Supported Languages:
- us-english
- nl-dutch
- de-german
- es-spanish
- it-italian
Locale based Errors
As of 1.1.4 HPS will attempt to do the following steps automatically, in the case that it is not able to please follow the steps bellow Important: For anybody using a linux operating system please do the following steps to install HPS if you get locale based errors:
- Stop your server
- Download hps.rar
- Extract the locale folder directly into your HarryPotterSpells folder
- Start your server
The locale based errors should go away and the plugin should function like normal. If the problem still persists please read the support section bellow
Support
If you find a bug, or have a feature request that is NOT on our Trello board (see below), feel free to open an issue on GitHub (click "Tickets" on the top bar).
For more information regarding support, see the Contact page on the HarryPotterSpells site.
Source
The source is available on GitHub, and we are always looking for help. Pull requests are really appreciated! If you'd like to help, please go here.
Development Builds (Currently not available)
Development builds of this project can be acquired at the provided continuous integration server. These builds have not been approved by the BukkitDev staff. Use them at your own risk.
To Do
Our entire to-do list has been moved to Trello. Anyone can vote on issues/features they'd like to see implemented. If you'd like to add an item, hop on our IRC channel (see the support section) and someone will access will add it for you.
Future Plans
We plan to add an extension system to HarryPotterSpells, allowing server owners to add various HarryPotter- and magic-themed "addons" to the HarryPotterSpells core plugin. However, to prepare for this, we have removed all code not related to casting spells. This includes some of our old features: Spell signs, SortingHat, and hooking into WorldGuard, Towny, and LogBlock. These will be available as extensions in the near future.
Special Thanks and Credits
This plugin would not be what it is today without some of these people. NP98765 originally asked Kezz101 to help me create this, but soon it grew into a group project. Many have spent time and effort helping to develop this. Thanks to jacklin213 for taking this project on board and keeping it updated since 1.7.x
Some developers who have helped (In order of first pull request, most recent to earliest):
signorhuman, jacklin213, Ampayne2, MrBluebear3, zachooo, evilmidget83, korikisulda, RingOfStorms
Thanks to drtshock for hosting the Jenkins.
Interested in Helping?
See this forum post and the Contribution Guide for more details.
Feel free to send jacklin213 a PM and he will sort you out
Okay... So I'm using 1.1.4, on a 1.9.4 Harry Potter themed server, because my computer rejects Java 8 like the plague. The only way I can teach any player any spell at all, is by teaching them every single spell at once through console. If I have any player try to teach it, the server tells me "You cannot teach a spell you do not know." But if I look in the PlayerSpellConfig.yml, the player who was trying to teach that spell DOES know it.
Because of this, none of my professors can teach any spells in class. And if I try to teach individual spells through the console, this happens:
[15:38:49 INFO]: [HPS] You have taught Gerbils the spell Accio. [15:38:51 ERROR]: Could not pass event PlayerInteractEvent to HarryPotterSpells v1.1.4 BETA org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:302) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:501) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:486) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:231) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:198) [minecraft_server.jar:git-Bukkit-106ced0] at org.bukkit.craftbukkit.v1_9_R2.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:194) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1332) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.PacketPlayInArmAnimation.a(SourceFile:32) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.PacketPlayInArmAnimation.a(SourceFile:9) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [minecraft_server.jar:git-Bukkit-106ced0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [?:1.7.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [?:1.7.0_45] at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:683) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:360) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:639) [minecraft_server.jar:git-Bukkit-106ced0] at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:543) [minecraft_server.jar:git-Bukkit-106ced0] at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45] Caused by: java.lang.IndexOutOfBoundsException: position (5) must be less than the number of elements that remained (1) at com.google.common.collect.Iterators.get(Iterators.java:813) [minecraft_server.jar:git-Bukkit-106ced0] at com.google.common.collect.Iterables.get(Iterables.java:728) [minecraft_server.jar:git-Bukkit-106ced0] at com.hpspells.core.spell.SpellManager.getCurrentSpell(SpellManager.java:113) [?:?] at com.hpspells.core.Listeners.PIE(Listeners.java:104) [?:?] at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_45] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:300) [minecraft_server.jar:git-Bukkit-106ced0] ... 18 more
If spells are taught all at once from the console, the players can use them. Just, according to the plugin, they know no spells, and therefore cannot teach them. If a player tries to teach a spell to another player, no error shows up on console at all, just the message on the server that says "You cannot teach a spell you do not know."
Maybe I'm dumb and I'm missing something here, but I am extremely confused.
@Daffopepe
1) Which version of HPS are you running
2) Will add that too the to-do list, sounds like a great idea
Hi I'm loving this plugin with my friends but I have 2 questions.
1 is it possible to set cooldowns because I've been trying to in the cool down config but however many 0s I add it never works.
2 could you maybe add apparating either in a way where you click and teleport to the selected location and dissaparate in a puff of particles and appear in a puff of particles, or in a way where you can fly instead with a cloud of black particles covering your whole body and so leaving a trail of smoke like in the movies. I would really love this feature and so would others and I think it would be awesome!
@gepardo43
Yeh it's normal but I will have a look into it and see if i can optimize it further. By default Spells travel on forever, you can change this in your config under "spell-effective-time:" and set it to anything other than -1
Regards Jack
Is it normal that big server usage of harrypotterspells?
maybe bug
http://scr.hu/0mdx/cu2ru
Thx! :)
@TheDoctor1925
v1.1.4 will work with 1.8 :)
Do any of the versions work on a 1.8 server? not 1.8.1 or 1.7.10
@jacklin213
Tried both 1.1.5 and 1.1.2 for two servers but no luck with either. Thank you for diligently keeping this updated :) I look forward to your fix, and to any updates you may do in the future!
@catfishrat
What version are you running? Either way I'll have a new version to fix this soon
@jacklin213
Afraid not friend! I've tried changing the option in the config but it is always a stick, no matter what I change it to. Even changing it to other vanilla items results in it being a stick. A bug perhaps?
@catfishrat
In the config there is a Wand.Type option, is that not what you are looking for?
Thanks for the support :)
Hey, is there any way to change the stick to a different item without busting into the source? I use a custom mod with this for a true sexy hp experience, and I tossed some wand items in there, and I'd love to use the two in conjunction. I know Bukkit is snarky with mods sometimes, so yeah I haven't got my hopes up. Still, figured I'd ask. Thanks for the plugin nonetheless!
@mmrobins1 Thanks for that, ill fix that up next week. Please let me know if you find anymore
Okay so I tested it with a few more spells and it only seems to not be working on stupefy and wingardium leviosa
@jacklin213
I'm running the latest version, 1.1.5. And reloading doesn't do anything :(
@gepardo43
Latest version should still work for 1.10
@mmrobins1
What version of HPS are you running, when you edit the cooldowns did u use /hps config reload?
When I edit cooldowns they dont actually change in game?
Any updates for minecraft 1.10?
@CaptainStarJWS
You can do /spelllist to see a list of spells. You need to teach yourself spells before you can use them.
/teach [spell] or /teach [spell] [player]
Read more here