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

Forgot to push this file

This commit is contained in:
TheBusyBiscuit 2019-08-25 23:14:06 +02:00
parent ce3055a069
commit cbb1143456

View File

@ -1,6 +1,7 @@
package me.mrCookieSlime.Slimefun.Objects.tasks;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Sound;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
@ -23,5 +24,10 @@ public class MagnetTask extends SlimefunTask {
}
}
}
@Override
protected boolean cancelTask() {
return super.cancelTask() ? true: p.getGameMode() != GameMode.SPECTATOR;
}
}