mirror of
https://e.coding.net/circlecloud/ResFly.git
synced 2024-11-12 09:18:49 +00:00
修改插件版本号...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
bb389d0b39
commit
7812334ddb
4
pom.xml
4
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>cn.citycraft</groupId>
|
||||
<artifactId>ResFly</artifactId>
|
||||
<version>1.2</version>
|
||||
<version>1.3</version>
|
||||
<name>ResFly</name>
|
||||
<description>领地附属插件 - 领地飞行</description>
|
||||
<build>
|
||||
@ -55,7 +55,7 @@
|
||||
</build>
|
||||
<properties>
|
||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
||||
<update.description></update.description>
|
||||
<update.description>&c添加丢失的必须依赖...</update.description>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<repositories>
|
||||
|
@ -43,8 +43,8 @@ public class PlayerListen implements Listener {
|
||||
if (e.getEntity() instanceof Player) {
|
||||
final Player p = (Player) e.getEntity();
|
||||
if (e.getCause() == DamageCause.FALL) {
|
||||
if (p == this.fall.get(p)) {
|
||||
this.fall.remove(p);
|
||||
if (p == fall.get(p)) {
|
||||
fall.remove(p);
|
||||
e.setCancelled(true);
|
||||
p.sendMessage(this.plugin.getfullmsg("Message.Protect"));
|
||||
}
|
||||
@ -78,17 +78,17 @@ public class PlayerListen implements Listener {
|
||||
void ChangePlayerFly(final Player p, final boolean fly) {
|
||||
if (p.getAllowFlight() && !fly) {
|
||||
if (p.isFlying()) {
|
||||
this.fall.put(p, p);
|
||||
fall.put(p, p);
|
||||
}
|
||||
p.setAllowFlight(false);
|
||||
p.sendMessage(this.plugin.getfullmsg("Message.Not_Allow"));
|
||||
p.sendMessage(plugin.getfullmsg("Message.Not_Allow"));
|
||||
}
|
||||
if (!p.getAllowFlight() && fly) {
|
||||
if (p == this.fall.get(p)) {
|
||||
this.fall.remove(p);
|
||||
if (p == fall.get(p)) {
|
||||
fall.remove(p);
|
||||
}
|
||||
p.setAllowFlight(true);
|
||||
p.sendMessage(this.plugin.getfullmsg("Message.Allow"));
|
||||
p.sendMessage(plugin.getfullmsg("Message.Allow"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user