Skip to content

Commit 2247fa4

Browse files
committed
3.0.0重构版本大更新:
· 重写了绝大部分的逻辑 · 添加了 tpall,delwarp,home,sethome,delhome,spawn,setspawn,delspawn 命令(#7) · 添加了自动检测老版本配置文件自动备份功能 · 添加了检测插件更新功能 · 修复了如果有两个或以上请求时互相影响的错误
1 parent 5b97af7 commit 2247fa4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2379
-960
lines changed

README.md

Lines changed: 82 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,100 @@ Customizable language files
1515
## 命令 - Commands
1616
- **/tpa <玩家名称 - PlayerName>**
1717
向玩家发送传送请求
18-
Send a teleport request to the player
18+
Send a teleport request to the player
1919
- **/tphere <玩家名称 - PlayerName>**
2020
请求玩家传送到你身边
21-
Ask the player to teleport to you
21+
Ask the player to teleport to you
22+
- **/tpall**
23+
强制所有在线玩家传送到你身边
24+
Force all online players to teleport to you
2225
- **/tpaccept**
2326
接受传送请求(你可以点击聊天框里的 **[接受/tpaccept]** 来直接接受)
2427
Accept a teleport request (You can click on the **[Accept/tpaccept]** in the chat box to accept directly)
2528
- **/tpdeny**
2629
拒绝传送请求(你可以点击聊天框里的 **[拒绝/tpdeny]** 来直接拒绝)
27-
Reject teleport request (You can directly reject by clicking on the **[Deny/tpdeny]** in the chat box)
30+
Reject teleport request (You can directly reject by clicking on the **[Deny/tpdeny]** in the chat box)
2831
- **/warp <传送点 - Teleport point>**
29-
传送到传送点
30-
Teleport to the Teleport point
32+
传送到传送点
33+
Teleport to the Teleport point
3134
- **/setwarp <传送点 - Teleport point>**
32-
设置传送点(需要 **tpa.setwarp** 权限)
33-
Set the teleport point (The **tpa.setwarp** permission is required)
35+
设置传送点
36+
Set the teleport point
37+
- **/delwarp <传送点 - Teleport point>**
38+
删除传送点
39+
Delete the teleport point
40+
- **/home <家 - Home>**
41+
传送到家
42+
Teleport to the home
43+
- **/sethome <家 - Home>**
44+
设置家
45+
Set the home
46+
- **/delhome <家 - Home>**
47+
删除家
48+
Delete the home
49+
- **/spawn**
50+
传送到主城
51+
Teleport to the spawn
52+
- **/setspawn**
53+
设置主城
54+
Set the spawn
55+
- **/delspawn**
56+
删除主城
57+
Delete the spawn
3458
- **/back**
35-
传送到上一次的位置(需要 **tpa.back** 权限)
36-
Teleport to the Last location (The **tpa.back** permission is required)
59+
传送到上一次的位置
60+
Teleport to the Last location
3761
- **/tpa reload**
38-
重新加载配置文件(需要 **tpa.reload** 权限)
39-
Reload the configuration file (The **tpa.reload** permission is required)
62+
重新加载配置文件
63+
Reload the configuration file
4064

41-
## 注意 - WARN
42-
从1.2及以下版本更新到1.3请删除配置文件和语言文件,重新生成后修改
43-
To update from version 1.2 and below to 1.3, please delete the configuration file and language file, and modify them after regeneration.
65+
## 权限 - Permissions
66+
- **tpa.admin**
67+
最高权限,可执行所有操作
68+
Highest authority to perform all operations
69+
- **tpa.reload**
70+
可使用/reload命令重新加载配置文件
71+
The configuration file can be reloaded using the /reload command
72+
- **tpa.version**
73+
拥有这个权限的玩家会收到插件更新通知
74+
Players with this permission will be notified of plugin updates
75+
- **tpa.setwarp**
76+
可使用 /setwarp 命令设置传送点
77+
The teleport point can be set using the /setwarp command
78+
- **tpa.delwarp**
79+
可使用 /delwarp 命令删除传送点
80+
The teleport point can be delete using the /delwarp command
81+
- **tpa.setspawn**
82+
可使用 /setspawn 命令设置主城
83+
The spawn can be set using the /setspawn command
84+
- **tpa.delspawn**
85+
可使用 /delspawn 命令删除主城
86+
The spawn can be delete using the /delspawn command
87+
- **tpa.tpall**
88+
可使用 /tpall 命令强行将所有在线玩家传送到你的位置
89+
The /tpall command can be used to forcibly teleport all online players to your location
90+
- **tpa.tpa**
91+
可使用 /tpa 命令请求传送到指定玩家的位置(默认关闭权限检查)
92+
The /tpa command can be used to request teleportation to a specified player's location (permission checking is turned off by default)
93+
- **tpa.tphere**
94+
可使用 /tphere 命令请求指定玩家传送到你的位置(默认关闭权限检查)
95+
The /tpa command can be used to request that a specified player teleport to your location (permission checking is turned off by default)
96+
- **tpa.warp**
97+
可使用 /warp 命令传送到传送点(默认关闭权限检查)
98+
You can use the /warp command to teleport to a teleport point (permission checking is turned off by default)
99+
- **tpa.home**
100+
可使用 /home 命令传送到家,可使用 /sethome 设置家,可使用 /delhome 删除家(默认关闭权限检查)
101+
Home can be teleport to using the /home command, home can be set using /sethome, and home can be deleted using /delhome (permission checking is turned off by default)
102+
- **tpa.vip**
103+
- **tpa.svip**
104+
可在配置文件中设置拥有该权限的玩家最多可以设置多少个家(-1 为不限制)
105+
The maximum number of homes that can be set by a player with this permission can be set in the configuration file (-1 is unrestricted)
106+
- **tpa.spawan**
107+
可使用 /spawn 命令传送到主城(默认关闭权限检查)
108+
You can use the /spawn command to teleport to a spawn (permission checking is turned off by default)
109+
- **tpa.back**
110+
可使用 /back 命令传送到上一次的位置(默认关闭权限检查)
111+
You can use the /back command to teleport to a last location (permission checking is turned off by default)
44112

45113
## 感谢 - Thank
46114
本插件使用了 [FoliaLib](https://github.com/handyplus/FoliaLib) 来做 **Folia** 兼容

latest.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0.0

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>top.craft_hello.tpa</groupId>
88
<artifactId>TPA</artifactId>
9-
<version>2.0.0</version>
9+
<version>3.0.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>TPA</name>
@@ -81,7 +81,7 @@
8181
<dependency>
8282
<groupId>cn.handyplus.lib.adapter</groupId>
8383
<artifactId>FoliaLib</artifactId>
84-
<version>1.1.6</version>
84+
<version>1.1.7</version>
8585
</dependency>
8686
</dependencies>
8787
</project>

src/main/java/top/craft_hello/tpa/Event/PlayerDeathEvent.java

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/main/java/top/craft_hello/tpa/Event/PlayerTeleportEvent.java

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)