Пример #1
0
 public void setUnscoped(Player player, PlayerDataClass playerData) {
   playerData.setScoped(false);
   player.removePotionEffect(PotionEffectType.SLOW);
   player.setWalkSpeed((float) 0.25);
 }
Пример #2
0
 public void setScoped(Player player, PlayerDataClass playerData) {
   playerData.setScoped(true);
   player.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 20000, 8));
   player.setWalkSpeed((float) -0.05);
 }