1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 11:45:51 +00:00

One more tweak

This commit is contained in:
TheBusyBiscuit 2020-11-10 01:09:50 +01:00
parent 97cbe72a91
commit f1d4b50b67
3 changed files with 9 additions and 6 deletions

View File

@ -21,6 +21,9 @@ import me.mrCookieSlime.Slimefun.api.Slimefun;
* @author Linox * @author Linox
* @author TheBusyBiscuit * @author TheBusyBiscuit
* *
* @see BeeWings
* @see BeeWingsTask
*
*/ */
public class BeeWingsListener implements Listener { public class BeeWingsListener implements Listener {
@ -42,7 +45,7 @@ public class BeeWingsListener implements Listener {
ItemStack chestplate = player.getInventory().getChestplate(); ItemStack chestplate = player.getInventory().getChestplate();
if (wings.isItem(chestplate) && Slimefun.hasUnlocked(player, chestplate, true)) { if (wings.isItem(chestplate) && Slimefun.hasUnlocked(player, chestplate, true)) {
new BeeWingsTask(player).scheduleRepeating(4, 1); new BeeWingsTask(player).scheduleRepeating(3, 1);
} }
} }
} }

View File

@ -17,6 +17,7 @@ import io.github.thebusybiscuit.slimefun4.implementation.listeners.BeeWingsListe
/** /**
* This {@link PlayerTask} is responsible for the repeating checks for our {@link BeeWings}. * This {@link PlayerTask} is responsible for the repeating checks for our {@link BeeWings}.
* *
* @author beSnow
* @author TheBusyBiscuit * @author TheBusyBiscuit
* *
* @see BeeWings * @see BeeWings
@ -63,9 +64,8 @@ public class BeeWingsTask extends PlayerTask {
private void slowDown() { private void slowDown() {
SlimefunPlugin.getLocalization().sendMessage(p, "messages.bee-suit-slow-fall"); SlimefunPlugin.getLocalization().sendMessage(p, "messages.bee-suit-slow-fall");
p.setGliding(false);
p.setFallDistance(0); p.setFallDistance(0);
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 50, 0)); p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 60, 0));
} }
/** /**

View File

@ -132,7 +132,7 @@ messages:
no-tome-yourself: '&cYou cannot use the &4Tome of Knowledge &con yourself...' no-tome-yourself: '&cYou cannot use the &4Tome of Knowledge &con yourself...'
multimeter: '&bStored Energy: &3%stored% &b/ &3%capacity%' multimeter: '&bStored Energy: &3%stored% &b/ &3%capacity%'
piglin-barter: '&4You cannot barter with piglins using Slimefun items' piglin-barter: '&4You cannot barter with piglins using Slimefun items'
bee-suit-slow-fall: '&eYour Bee Wings start to slowly bring you back down to the ground' bee-suit-slow-fall: '&eYour Bee Wings will help you to get back to the ground safe and slow'
multi-tool: multi-tool:
mode-change: '&b%device% mode changed to: &9%mode%' mode-change: '&b%device% mode changed to: &9%mode%'