mirror of
https://github.com/Winds-Studio/Leaf.git
synced 2025-12-25 09:59:15 +00:00
move and flush position while knockback player (#316)
* move and flush position while knockback * fix compile error * rename --------- Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ package org.dreeam.leaf.config.modules.gameplay;
|
||||
|
||||
import org.dreeam.leaf.config.ConfigModules;
|
||||
import org.dreeam.leaf.config.EnumConfigCategory;
|
||||
import org.dreeam.leaf.config.annotations.Experimental;
|
||||
|
||||
public class Knockback extends ConfigModules {
|
||||
|
||||
@@ -12,6 +13,8 @@ public class Knockback extends ConfigModules {
|
||||
public static boolean snowballCanKnockback = false;
|
||||
public static boolean eggCanKnockback = false;
|
||||
public static boolean canPlayerKnockbackZombie = true;
|
||||
@Experimental
|
||||
public static boolean flushKnockback = false;
|
||||
|
||||
@Override
|
||||
public void onLoaded() {
|
||||
@@ -30,5 +33,6 @@ public class Knockback extends ConfigModules {
|
||||
"Make players can knockback zombie.",
|
||||
"使玩家可以击退僵尸."
|
||||
));
|
||||
flushKnockback = config.getBoolean(getBasePath() + ".flush-location-while-knockback-player", flushKnockback);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user