mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Forgot to push this file
This commit is contained in:
parent
ce3055a069
commit
cbb1143456
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user