public void setUnscoped(Player player, PlayerDataClass playerData) { playerData.setScoped(false); player.removePotionEffect(PotionEffectType.SLOW); player.setWalkSpeed((float) 0.25); }
public void setScoped(Player player, PlayerDataClass playerData) { playerData.setScoped(true); player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 20000, 8)); player.setWalkSpeed((float) -0.05); }