mirror of
https://e.coding.net/circlecloud/ResFly.git
synced 2024-11-21 10:48:48 +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>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>cn.citycraft</groupId>
|
<groupId>cn.citycraft</groupId>
|
||||||
<artifactId>ResFly</artifactId>
|
<artifactId>ResFly</artifactId>
|
||||||
<version>1.2</version>
|
<version>1.3</version>
|
||||||
<name>ResFly</name>
|
<name>ResFly</name>
|
||||||
<description>领地附属插件 - 领地飞行</description>
|
<description>领地附属插件 - 领地飞行</description>
|
||||||
<build>
|
<build>
|
||||||
@ -55,7 +55,7 @@
|
|||||||
</build>
|
</build>
|
||||||
<properties>
|
<properties>
|
||||||
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
|
<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>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -43,8 +43,8 @@ public class PlayerListen implements Listener {
|
|||||||
if (e.getEntity() instanceof Player) {
|
if (e.getEntity() instanceof Player) {
|
||||||
final Player p = (Player) e.getEntity();
|
final Player p = (Player) e.getEntity();
|
||||||
if (e.getCause() == DamageCause.FALL) {
|
if (e.getCause() == DamageCause.FALL) {
|
||||||
if (p == this.fall.get(p)) {
|
if (p == fall.get(p)) {
|
||||||
this.fall.remove(p);
|
fall.remove(p);
|
||||||
e.setCancelled(true);
|
e.setCancelled(true);
|
||||||
p.sendMessage(this.plugin.getfullmsg("Message.Protect"));
|
p.sendMessage(this.plugin.getfullmsg("Message.Protect"));
|
||||||
}
|
}
|
||||||
@ -78,17 +78,17 @@ public class PlayerListen implements Listener {
|
|||||||
void ChangePlayerFly(final Player p, final boolean fly) {
|
void ChangePlayerFly(final Player p, final boolean fly) {
|
||||||
if (p.getAllowFlight() && !fly) {
|
if (p.getAllowFlight() && !fly) {
|
||||||
if (p.isFlying()) {
|
if (p.isFlying()) {
|
||||||
this.fall.put(p, p);
|
fall.put(p, p);
|
||||||
}
|
}
|
||||||
p.setAllowFlight(false);
|
p.setAllowFlight(false);
|
||||||
p.sendMessage(this.plugin.getfullmsg("Message.Not_Allow"));
|
p.sendMessage(plugin.getfullmsg("Message.Not_Allow"));
|
||||||
}
|
}
|
||||||
if (!p.getAllowFlight() && fly) {
|
if (!p.getAllowFlight() && fly) {
|
||||||
if (p == this.fall.get(p)) {
|
if (p == fall.get(p)) {
|
||||||
this.fall.remove(p);
|
fall.remove(p);
|
||||||
}
|
}
|
||||||
p.setAllowFlight(true);
|
p.setAllowFlight(true);
|
||||||
p.sendMessage(this.plugin.getfullmsg("Message.Allow"));
|
p.sendMessage(plugin.getfullmsg("Message.Allow"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user