1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-24 21:46:16 +00:00

fix: 修复世界限制失效问题

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
2016-09-13 20:22:35 +08:00
parent 9430afd9a2
commit 303f5c6dee
2 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId> <groupId>pw.yumc</groupId>
<artifactId>Residence</artifactId> <artifactId>Residence</artifactId>
<version>2.8.3.4</version> <version>2.8.3.5</version>
<name>Residence</name> <name>Residence</name>
<description>重制版本的领地插件 - 喵♂呜</description> <description>重制版本的领地插件 - 喵♂呜</description>
<build> <build>
@@ -60,10 +60,9 @@
<properties> <properties>
<update.description>&amp;6GUI菜单上线(&amp;c测试版本&amp;6)...</update.description> <update.description>&amp;6GUI菜单上线(&amp;c测试版本&amp;6)...</update.description>
<update.changes> <update.changes>
&amp;b2.8.3.5 - &amp;c修复世界限制失效问题...;
&amp;b2.8.3.4 - &amp;c圈地世界限制忽略OP和管理...; &amp;b2.8.3.4 - &amp;c圈地世界限制忽略OP和管理...;
&amp;b2.8.3.3 - &amp;c添加圈地世界限制(详见dany.yml)...; &amp;b2.8.3.3 - &amp;c添加圈地世界限制(详见dany.yml)...;
&amp;b2.8.3.2 - &amp;c去除铁轨修复补丁(1.8开始无需修复)...;
&amp;b2.8.3.1 - &amp;4修复菜单监听未启用的问题(请删除一次gui.yml)...;
</update.changes> </update.changes>
<env.GIT_COMMIT>Debug</env.GIT_COMMIT> <env.GIT_COMMIT>Debug</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@@ -283,7 +283,7 @@ public class ResidencePlayerListener implements Listener {
} }
if (event.getAction() == Action.LEFT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_BLOCK) { if (event.getAction() == Action.LEFT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (player.getItemInHand().getTypeId() == plugin.getConfigManager().getSelectionTooldID()) { if (player.getItemInHand().getTypeId() == plugin.getConfigManager().getSelectionTooldID()) {
if (plugin.getDeny().getStringList("world").contains(player.getWorld().getName()) && !resadmin && !player.isOp()) { if (plugin.getDeny().getStringList("world").contains(player.getWorld().getName()) && !player.isOp()) {
player.sendMessage("§c当前世界不允许圈地!"); player.sendMessage("§c当前世界不允许圈地!");
return; return;
} }