Skip to content

Commit

Permalink
1.7.1
Browse files Browse the repository at this point in the history
lt-name committed Jul 22, 2021
1 parent afdd43e commit d8f8b6f
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

<groupId>com.smallaswater.npc</groupId>
<artifactId>RsNPCX</artifactId>
<version>1.7.0<!-- -SNAPSHOT--></version>
<version>1.7.1<!-- -SNAPSHOT--></version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
7 changes: 5 additions & 2 deletions src/main/java/com/smallaswater/npc/data/RsNpcConfig.java
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ public class RsNpcConfig {
private final ArrayList<String> messages = new ArrayList<>();

@Getter
private final int baseMoveSpeed;
private final double baseMoveSpeed;

@Getter
private final ArrayList<Vector3> route = new ArrayList<>();
@@ -94,7 +94,10 @@ public RsNpcConfig(@NonNull String name, @NonNull Config config) throws RsNpcLoa
this.cmds.addAll(config.getStringList("点击执行指令"));
this.messages.addAll(config.getStringList("发送消息"));

this.baseMoveSpeed = config.getInt("基础移动速度", 1);
if (this.config.get("基础移动速度") instanceof Integer) {
this.config.set("基础移动速度", this.config.getInt("基础移动速度") * 1.0D);
}
this.baseMoveSpeed = config.getDouble("基础移动速度", 1.0D);

for (String string : config.getStringList("route")) {
String[] s = string.split(":");
2 changes: 1 addition & 1 deletion src/main/resources/npc.yml
Original file line number Diff line number Diff line change
@@ -26,5 +26,5 @@ name: "NPC1"
发送消息:
- "%npcName%: @p 您好"
- "送您一个苹果!"
基础移动速度: 1
基础移动速度: 1.0
route: []
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: RsNPCX
main: com.smallaswater.npc.RsNpcX
version: "1.7.0"
version: "1.7.1"
api:
- "1.0.9"
- "1.0.11"

0 comments on commit d8f8b6f

Please sign in to comment.