File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/main/java/com/shanebeestudios/skbee/elements/other/expressions Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 12
12
import ch .njol .util .Kleenean ;
13
13
import ch .njol .util .coll .CollectionUtils ;
14
14
import com .shanebeestudios .skbee .api .util .MathUtil ;
15
+ import com .shanebeestudios .skbee .api .util .Util ;
15
16
import org .bukkit .Bukkit ;
16
17
import org .bukkit .World ;
17
18
import org .bukkit .entity .Player ;
30
31
public class ExprSimulationDistance extends SimplePropertyExpression <Object , Number > {
31
32
32
33
static {
33
- register (ExprSimulationDistance .class , Number .class ,
34
+ if (!Util .IS_RUNNING_SKRIPT_2_11 ) {
35
+ register (ExprSimulationDistance .class , Number .class ,
34
36
"simulation distance" , "players/worlds" );
37
+ }
35
38
}
36
39
37
40
@ SuppressWarnings ("NullableProblems" )
Original file line number Diff line number Diff line change 12
12
import ch .njol .util .coll .CollectionUtils ;
13
13
import com .shanebeestudios .skbee .api .skript .base .SimplePropertyExpression ;
14
14
import com .shanebeestudios .skbee .api .util .MathUtil ;
15
+ import com .shanebeestudios .skbee .api .util .Util ;
15
16
import org .bukkit .Bukkit ;
16
17
import org .bukkit .World ;
17
18
import org .bukkit .entity .Player ;
31
32
public class ExprViewDistance extends SimplePropertyExpression <Object , Number > {
32
33
33
34
static {
34
- register (ExprViewDistance .class , Number .class ,
35
+ if (!Util .IS_RUNNING_SKRIPT_2_11 ) {
36
+ register (ExprViewDistance .class , Number .class ,
35
37
"view distance" , "players/worlds" );
38
+ }
36
39
}
37
40
38
41
@ Override
You can’t perform that action at this time.
0 commit comments