Fix Magnet affecting teams members
This commit is contained in:
parent
9c5ab7c67e
commit
265ab620e4
@ -32,7 +32,7 @@ import mineplex.core.recharge.Recharge;
|
|||||||
import mineplex.core.updater.UpdateType;
|
import mineplex.core.updater.UpdateType;
|
||||||
import mineplex.core.updater.event.UpdateEvent;
|
import mineplex.core.updater.event.UpdateEvent;
|
||||||
import nautilus.game.arcade.game.Game;
|
import nautilus.game.arcade.game.Game;
|
||||||
import nautilus.game.arcade.game.TeamGame;
|
import nautilus.game.arcade.game.games.skywars.TeamSkywars;
|
||||||
import nautilus.game.arcade.kit.Perk;
|
import nautilus.game.arcade.kit.Perk;
|
||||||
|
|
||||||
public class PerkMagnetism extends Perk
|
public class PerkMagnetism extends Perk
|
||||||
@ -115,7 +115,7 @@ public class PerkMagnetism extends Perk
|
|||||||
|
|
||||||
Game game = Manager.GetGame();
|
Game game = Manager.GetGame();
|
||||||
|
|
||||||
if (game instanceof TeamGame)
|
if (game instanceof TeamSkywars)
|
||||||
{
|
{
|
||||||
if (game.GetTeam(player).equals(game.GetTeam(target)))
|
if (game.GetTeam(player).equals(game.GetTeam(target)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user