Expanded Phantoms
This plugin allows you to specify the size of Phantoms that spawn or completely stop them from spawning. You can either set the plugin to select a random size or specify a size for the Phantoms to spawn as. Additionally, it allows you to adjust the damage done by Phantoms to be consistent no matter the size since larger Phantoms do more damage. The damage is set to the amount done by normal (size 0) Phantoms.
All commands use the prefix "exphantoms" to easily use the commands. A full permissions system is in place to allow players to change the size, view the size, and others.
Commands:
/exphantoms enable: Enables the plugin.
/exphantoms disable: Disables the plugin. This keeps the plugin from affecting any events on the server.
/exphantoms status: Returns whether the plugin is enabled or disabled.
/exphantoms size [size / "random"]: Sets the size of Phantoms to spawn. You can enter a size from 0-64 (any numbers larger than 64 will be set to 64 , the largest possible in the game). Use "random" to have the plugin randomly choose a size.
/exphantoms normalizeddamage ["true" / "false" / "status"]: Enables or disables the setting of all damage by Phantoms to the default done by Size 0 Phantoms. Additionally, returns whether or not Normalized Damage is enabled or disabled.
/exphantoms canspawn ["true" / "false" / ""]: Toggles whether phantoms are allowed to spawn. Note that this affects all spawning instances, including the use of commands and spawn eggs. Additionally, returns whether or not phantoms are allowed to spawn.
Permissions:
Expanded_Phantoms.enabledisable: Allows the player to enable or disable the plugin.
Expanded_Phantoms.status: Allows the player to check whether the plugin is currently enabled or disabled.
Expanded_Phantoms.changesize: Allows the player to set the size of Phantoms that spawn.
Expanded_Phantoms.size: Allows the player to check the current spawning size of Phantoms.
Expanded_Phantoms.staticdamage: Allows the player to change whether or not all damage done by Phantoms is standardized.
Expanded_Phantoms.staticdamagestatus: Allows the player to check whether Normalized Damage is currently enabled or disabled.
Expanded_Phantoms.canspawn: Allows the player to set whether or not phantoms can spawn.
This plugin requires 1.13 or later, as it uses 1.13 mobs. Although untested for 1.14 and later, it is likely that it will still work.
Upcoming Changes
- Rework the errors that are given so that they more accurately reflect the commands
- Add the ability to let phantoms spawn randomly even when players have slept
Having issues for some reason... I can use all the commands but the size and damage changes.?
[02:04:35] [Server thread/ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'exphantoms' in plugin Expanded_Phantoms v1.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[craftbukkit-.jar:git-Bukkit-f690957]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:148) ~[craftbukkit-.jar:git-Bukkit-f690957]
at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:686) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1615) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1469) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:37) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(SourceFile:9) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:13) ~[craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:135) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:114) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.MinecraftServer.aW(MinecraftServer.java:853) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:846) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeAll(SourceFile:99) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:829) [craftbukkit-.jar:git-Bukkit-f690957]
at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:770) [craftbukkit-.jar:git-Bukkit-f690957]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
Caused by: java.lang.NoClassDefFoundError: org/apache/commons/lang3/StringUtils
at com.nathan.Expanded_Phantoms.Main.onCommand(Main.java:124) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[craftbukkit-.jar:git-Bukkit-f690957]
... 17 more
In reply to Grammatonn:
I've uploaded the latest version that should fix this error!
In reply to TheKingElessar:
If you're talking about 1.2, I am still having this issue in that version...
In reply to Grammatonn
There's actually a delay between uploading a file to the project and having it visible to the public. I assume that it's because moderators are checking it for viruses and stuff like that. It looks like the 1.3 file should be visible now!
Thanks for your interest in the plugin; it's cool to see people using it! :)
In reply to TheKingElessar:
Thanks for the quick change :D Excited to try it out!!!
In reply to TheKingElessar:
Ah geez, I'm having the same issue on the 1.3 file.
In reply to A_Simple_Hat:
Huh, I'll take a look. Could you give me a copy of the errors that are output into the log?
In reply to A_Simple_Hat:
Did you continue to get an error with this?
Any chance of you adding the ability to make them spawn in the wild instead of above players?
In reply to sleepy_ca:
Plugins can't change spawning behavior like that very easily. I think the best way would be to have a random chance to spawn them (say, every 1/20,000 ticks, or on average once every 19 minutes), then,m if they do spawn, it will spawn between 1-3 (as a "flock") and they will be a little bit away from the player and in the air.
How does that sound to you?
Are we also able to disable the phantoms with this plugin?
In reply to Forge_User_95625477:
I am adding that right now; check back in a day or so for the newest version!
Great plugin! Congratulations!
For double size which would be the setting?
Thanks.
In reply to resoluciones67564: