Properly fix error with fireball command (#3040)

Closes #3016.

* Update Commandfireball.java

* Update Commandfireball.java

Co-authored-by: md678685 <1917406+md678685@users.noreply.github.com>
This commit is contained in:
montlikadani 2020-03-01 12:12:55 +01:00 committed by GitHub
parent 46e1b95b33
commit 20e11465e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,12 +28,12 @@ public class Commandfireball extends EssentialsCommand {
.put("skull", WitherSkull.class) .put("skull", WitherSkull.class)
.put("egg", Egg.class) .put("egg", Egg.class)
.put("snowball", Snowball.class) .put("snowball", Snowball.class)
.put("expbottle", ThrownExpBottle.class) .put("expbottle", ThrownExpBottle.class);
.put("splashpotion", SplashPotion.class)
.put("lingeringpotion", LingeringPotion.class);
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) { if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_9_R01)) {
builder.put("dragon", DragonFireball.class); builder.put("dragon", DragonFireball.class)
.put("splashpotion", SplashPotion.class)
.put("lingeringpotion", LingeringPotion.class);
} }
if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_13_0_R01)) { if (VersionUtil.getServerBukkitVersion().isHigherThanOrEqualTo(VersionUtil.v1_13_0_R01)) {