AreaShop

作者:NLThijs48 发布时间:2015年1月7日 原生版本:未知 测试支持:1.7,1.8,1.9,1.10,1.11,1.12,1.13

一个插件,允许玩家选择从WorldGuard租用或购买区域

点此下载

插件详细介绍

🏡 AreaShop

AreaShop 是一款 Minecraft 插件,允许玩家租赁或购买区域。适用于监狱服务器的出租牢房或生存服务器的市场商店等场景。玩家通过交互式告示牌轻松使用,并提供丰富的指令来管理区域状态、租赁和购买,以及管理员功能。插件还支持保存和恢复区域,具有高度的灵活性,可通过配置进行全局或区域定制。

⭐ 主要特性

  • 区域租赁和出售,玩家可将已购买区域转售
  • 通过告示牌轻松交互和查看状态
  • 支持自定义语言或使用预置语言文件
  • 自动使用 schematic 恢复区域
  • 通过权限控制玩家可使用的指令
  • 通过配置自定义插件
  • 自动在告示牌上显示区域名称
  • 传送至租赁/购买区域,并可设置传送点(安全且在区域内)
  • 添加好友至区域(也可传送)
  • 自动取消长时间离线玩家的租赁/出售
  • 租赁到期前提醒玩家(登录时和在线时)
  • 分组系统,可为多个区域设置选项
  • 所有耗时任务分摊执行,防止服务器卡顿
  • 租赁/购买限制可根据权限节点、世界或区域组进行设置
  • 支持玩家改名,通过 UUID 保存玩家信息

📦 要求与安装

系统要求

  • 服务器软件:Bukkit 1.7.9+ 或 Spigot 1.7.9+
  • Java 7+ (推荐最新版)
  • WorldGuard 5.9+ (推荐 6.0+)
  • WorldEdit 5.6.3+ (推荐 6.0+)
  • Vault 1.4.1+
  • Vault 支持的经济插件

安装步骤

  1. 安装 AreaShop,确保服务器软件和所需插件已正确安装且版本正确。
  2. 启动服务器。
  3. 编辑 AreaShop 的 config.yml 和 default.yml 文件,进行配置。
  4. 使用 /as reload 重新加载配置。
  5. 设置区域并将其添加到 AreaShop。

⚙️ 指令和权限

通用指令

  • /as sell [价格] - 将你所站立的区域设置为出售区域。
  • /as rent [价格] [时间] - 将你所站立的区域设置为出租区域。
  • /as unrent - 将你所站立的区域设置为停止出租。
  • /as unsell - 将你所站立的区域设置为停止出售。
  • /as info - 显示当前区域的信息。
  • /as list - 列出所有可用的区域。
  • /as list [页码] - 列出指定页码的可用区域。
  • /as buy - 购买你所站立的区域。
  • /as rentit - 租赁你所站立的区域。
  • /as extend - 延长你所站立的区域的租期。
  • /as tp - 传送到你所站立的区域。
  • /as tphere - 将你所站立的区域的玩家传送到你的位置。
  • /as addfriend [玩家] - 将玩家添加到你所站立的区域的朋友列表。
  • /as delfriend [玩家] - 从你所站立的区域的朋友列表移除玩家。
  • /as friends - 显示你所站立的区域的朋友列表。
  • /as give [玩家] - 将你所站立的区域的所有权给予其他玩家。

管理指令

  • /as reload - 重新加载配置文件。
  • /as remove [区域名称] - 移除指定的区域。
  • /as setowner [区域名称] [玩家] - 设置指定区域的所有者。
  • /as setrenttime [区域名称] [时间] - 设置指定区域的租期。
  • /as setprice [区域名称] [价格] - 设置指定区域的价格。
  • /as setgreeting [区域名称] [消息] - 设置指定区域的欢迎消息。
  • /as setfarewell [区域名称] [消息] - 设置指定区域的告别消息。
  • /as forcerent [区域名称] [玩家] [价格] [时间] - 强制出租一个区域给指定的玩家。
  • /as forcesell [区域名称] [玩家] [价格] - 强制出售一个区域给指定的玩家。
  • /as create sign [区域名称] - 创建一个指向指定区域的告示牌。
  • /as copy [区域名称] - 复制指定区域的配置。
  • /as paste [区域名称] - 粘贴指定区域的配置。
  • /as paste all [区域名称] - 粘贴指定区域的所有配置。
  • /as paste limits [区域名称] - 粘贴指定区域的限制配置。
  • /as paste settings [区域名称] - 粘贴指定区域的设置配置。
  • /as paste messages [区域名称] - 粘贴指定区域的消息配置。
  • /as define [区域名称] - 定义一个区域。
  • /as undefine [区域名称] - 取消定义一个区域。
  • /as schematics save [区域名称] - 保存指定区域的 schematic。
  • /as schematics load [区域名称] - 加载指定区域的 schematic。
  • /as schematics reset [区域名称] - 重置指定区域的 schematic。
  • /as info [区域名称] - 显示指定区域的信息。
  • /as tp [区域名称] - 传送到指定区域。
  • /as tphere [区域名称] - 将指定区域的玩家传送到你的位置。
  • /as addfriend [区域名称] [玩家] - 将玩家添加到指定区域的朋友列表。
  • /as delfriend [区域名称] [玩家] - 从指定区域的朋友列表移除玩家。
  • /as friends [区域名称] - 显示指定区域的朋友列表。
  • /as give [区域名称] [玩家] - 将指定区域的所有权给予其他玩家。

权限节点

以下是 AreaShop 插件使用的权限节点列表:

  • areashop.user.sell - 允许玩家出售区域。
  • areashop.user.rent - 允许玩家出租区域。
  • areashop.user.unrent - 允许玩家停止出租区域。
  • areashop.user.unsell - 允许玩家停止出售区域。
  • areashop.user.info - 允许玩家查看区域信息。
  • areashop.user.list - 允许玩家列出可用区域。
  • areashop.user.buy - 允许玩家购买区域。
  • areashop.user.rentit - 允许玩家租赁区域。
  • areashop.user.extend - 允许玩家延长租期。
  • areashop.user.tp - 允许玩家传送到区域。
  • areashop.user.tphere - 允许玩家将区域内的玩家传送到自己。
  • areashop.user.addfriend - 允许玩家添加朋友到区域。
  • areashop.user.delfriend - 允许玩家从区域删除朋友。
  • areashop.user.friends - 允许玩家查看区域的朋友列表。
  • areashop.user.give - 允许玩家赠送区域给其他人。
  • areashop.admin.reload - 允许管理员重新加载插件。
  • areashop.admin.remove - 允许管理员移除区域。
  • areashop.admin.setowner - 允许管理员设置区域所有者。
  • areashop.admin.setrenttime - 允许管理员设置区域租期。
  • areashop.admin.setprice - 允许管理员设置区域价格。
  • areashop.admin.setgreeting - 允许管理员设置区域欢迎消息。
  • areashop.admin.setfarewell - 允许管理员设置区域告别消息。
  • areashop.admin.forcerent - 允许管理员强制出租区域。
  • areashop.admin.forcesell - 允许管理员强制出售区域。
  • areashop.admin.sign.create - 允许管理员创建指向区域的告示牌。
  • areashop.admin.copy - 允许管理员复制区域配置。
  • areashop.admin.paste - 允许管理员粘贴区域配置。
  • areashop.admin.define - 允许管理员定义区域。
  • areashop.admin.undefine - 允许管理员取消定义区域。
  • areashop.admin.schematics.save - 允许管理员保存区域的 schematic。
  • areashop.admin.schematics.load - 允许管理员加载区域的 schematic。
  • areashop.admin.schematics.reset - 允许管理员重置区域的 schematic。
  • areashop.admin.info - 允许管理员查看区域信息。
  • areashop.admin.tp - 允许管理员传送到区域。
  • areashop.admin.tphere - 允许管理员将区域内的玩家传送到自己。
  • areashop.admin.addfriend - 允许管理员添加朋友到区域。
  • areashop.admin.delfriend - 允许管理员从区域删除朋友。
  • areashop.admin.friends - 允许管理员查看区域的朋友列表。
  • areashop.admin.give - 允许管理员赠送区域给其他人。

🛠️ 配置文件示例

config.yml


# Configuration file for AreaShop

settings:
  language: "en"
  currency: "$"
  renting: true
  selling: true
  teleporting: true
  teleport-price: 10
  teleport-safe: true
  offline-rent-removal: true
  offline-rent-days: 7
  rent-extend-time: 7
  rent-extend-price: 100
  warning-days: 2
  warning-message: "Your rent will expire in %days% days!"
  group-system: true
  sign-update-interval: 60
  save-restore-blocks: true
  save-restore-interval: 300
  sendStats: true
  debug: false

limits:
  max-rent: 5
  max-buy: 5

messages:
  prefix: "&7[&6AreaShop&7] "
  no-permission: "&cYou do not have permission to use this command."
  not-enough-money: "&cYou do not have enough money."
  region-not-found: "&cRegion %region% not found."
  region-already-exists: "&cRegion %region% already exists."
  region-not-owned: "&cYou do not own this region."
  region-is-rented: "&cThis region is already rented."
  region-is-sold: "&cThis region is already sold."
  region-buy-success: "&aYou have successfully bought region %region% for %price%."
  region-rent-success: "&aYou have successfully rented region %region% for %price% for %time% days."
  region-unrent-success: "&aYou have successfully unrented region %region%."
  region-unsell-success: "&aYou have successfully unselled region %region%."
  region-info: "&6Region: %region%, Owner: %owner%, Price: %price%, Rent time: %time% days."
  region-list: "&6Available regions: %regions%."
  teleport-success: "&aYou have been teleported to region %region%."
  teleport-failed: "&cFailed to teleport you to region %region%."
  friend-added: "&aYou have added %player% to the friend list of region %region%."
  friend-removed: "&aYou have removed %player% from the friend list of region %region%."
  friend-list: "&6Friends of region %region%: %friends%."
  reload-success: "&aAreaShop has been reloaded."

groups:
  default:
    settings:
      renting: true
      selling: true
      teleporting: true
      offline-rent-removal: true
      save-restore-blocks: true
    limits:
      max-rent: 5
      max-buy: 5

default.yml


# This is the default configuration file for AreaShop.
# It contains the default settings for all regions.
# You can override these settings for individual regions in the config.yml file.

price: 100
rent-time: 7
greeting: "&aWelcome to %region%!"
farewell: "&cGoodbye from %region%!"

🔗 链接