mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2024-10-31 22:38:48 +00:00
fix onPlayerMove NullPointerException...
Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
parent
24127af11f
commit
7dcda9b2d9
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>cn.CityCraft</groupId>
|
||||
<artifactId>Residence</artifactId>
|
||||
<version>2.7.0.5-SNAPSHOT</version>
|
||||
<version>2.7.0.6-SNAPSHOT</version>
|
||||
<name>Residence</name>
|
||||
<build>
|
||||
<finalName>${project.name}</finalName>
|
||||
|
@ -610,8 +610,11 @@ public class ResidencePlayerListener implements Listener {
|
||||
Player player = event.getPlayer();
|
||||
if (player == null)
|
||||
return;
|
||||
long last = lastUpdate.get(player.getName());
|
||||
long now = System.currentTimeMillis();
|
||||
if (!lastUpdate.containsKey(player.getName())) {
|
||||
lastUpdate.put(player.getName(), now);
|
||||
}
|
||||
long last = lastUpdate.get(player.getName());
|
||||
if (now - last < Residence.getConfigManager().getMinMoveUpdateInterval())
|
||||
return;
|
||||
lastUpdate.put(player.getName(), now);
|
||||
|
@ -1,6 +1,6 @@
|
||||
name: Residence
|
||||
main: com.bekvon.bukkit.residence.ResidenceCommandListener
|
||||
version: 2.7.0.5
|
||||
version: 2.7.0.6
|
||||
website: http://ci.citycraft.cn:8800/jenkins/job/Residence-Fix/
|
||||
description: Cuboid Residence Plugin
|
||||
authors: [bekvon,nate302,t00thpick1,喵♂呜]
|
||||
|
Loading…
Reference in New Issue
Block a user