mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-16 04:11:33 +01:00
Fix an issue with Gravity
This commit is contained in:
parent
0bfec9bb7d
commit
bbf1fcb40e
@ -289,8 +289,9 @@ public class NPCCommands {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.hasValueFlag("b")) {
|
if (args.hasValueFlag("b") || args.hasValueFlag("behaviours") || args.hasValueFlag("behaviors")) {
|
||||||
npc.getTrait(Behaviour.class).addScripts(Splitter.on(",").split(args.getFlag("behaviour")));
|
String behaviours = args.getFlag("b", args.getFlag("behaviours", args.getFlag("behaviors")));
|
||||||
|
npc.getTrait(Behaviour.class).addScripts(Splitter.on(',').split(behaviours));
|
||||||
msg += " with the specified behaviours";
|
msg += " with the specified behaviours";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ public class Gravity extends Trait implements Toggleable {
|
|||||||
@Persist
|
@Persist
|
||||||
private boolean enabled;
|
private boolean enabled;
|
||||||
|
|
||||||
public Gravity(String name) {
|
public Gravity() {
|
||||||
super("gravity");
|
super("gravity");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user