mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-25 21:56:06 +00:00
3
pom.xml
3
pom.xml
@@ -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.3</version>
|
<version>2.8.3.4</version>
|
||||||
<name>Residence</name>
|
<name>Residence</name>
|
||||||
<description>重制版本的领地插件 - 喵♂呜</description>
|
<description>重制版本的领地插件 - 喵♂呜</description>
|
||||||
<build>
|
<build>
|
||||||
@@ -60,6 +60,7 @@
|
|||||||
<properties>
|
<properties>
|
||||||
<update.description>&6GUI菜单上线(&c测试版本&6)...</update.description>
|
<update.description>&6GUI菜单上线(&c测试版本&6)...</update.description>
|
||||||
<update.changes>
|
<update.changes>
|
||||||
|
&b2.8.3.4 - &c圈地世界限制忽略OP和管理...;
|
||||||
&b2.8.3.3 - &c添加圈地世界限制(详见dany.yml)...;
|
&b2.8.3.3 - &c添加圈地世界限制(详见dany.yml)...;
|
||||||
&b2.8.3.2 - &c去除铁轨修复补丁(1.8开始无需修复)...;
|
&b2.8.3.2 - &c去除铁轨修复补丁(1.8开始无需修复)...;
|
||||||
&b2.8.3.1 - &4修复菜单监听未启用的问题(请删除一次gui.yml)...;
|
&b2.8.3.1 - &4修复菜单监听未启用的问题(请删除一次gui.yml)...;
|
||||||
|
|||||||
@@ -29,11 +29,11 @@ public class CommandCreate extends BaseCommand {
|
|||||||
@Override
|
@Override
|
||||||
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
|
public void execute(final CommandSender sender, final Command command, final String label, final String[] args) throws CommandException {
|
||||||
final Player player = (Player) sender;
|
final Player player = (Player) sender;
|
||||||
if (plugin.getDeny().getStringList("world").contains(player.getWorld().getName())) {
|
final boolean resadmin = (command != null);
|
||||||
|
if (plugin.getDeny().getStringList("world").contains(player.getWorld().getName()) && !resadmin && !player.isOp()) {
|
||||||
player.sendMessage("§c当前世界不允许圈地!");
|
player.sendMessage("§c当前世界不允许圈地!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final boolean resadmin = (command != null);
|
|
||||||
final ResidenceManager rmanager = plugin.getResidenceManager();
|
final ResidenceManager rmanager = plugin.getResidenceManager();
|
||||||
final Language language = plugin.getLanguage();
|
final Language language = plugin.getLanguage();
|
||||||
final SelectionManager smanager = plugin.getSelectionManager();
|
final SelectionManager smanager = plugin.getSelectionManager();
|
||||||
|
|||||||
@@ -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())) {
|
if (plugin.getDeny().getStringList("world").contains(player.getWorld().getName()) && !resadmin && !player.isOp()) {
|
||||||
player.sendMessage("§c当前世界不允许圈地!");
|
player.sendMessage("§c当前世界不允许圈地!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user