• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“PlotSquared”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
区块处理
C7w讨论 | 贡献
WE处理
第270行: 第270行:
  
 
WE 的快速和异步处理 (启用 experimental-fast-async-worldedit) (通过 /plot wea 来跳过)
 
WE 的快速和异步处理 (启用 experimental-fast-async-worldedit) (通过 /plot wea 来跳过)
 +
====地皮分析====
 +
我说我在待编辑
 +
This page is a work in progress: Please create a ticket regarding any questions you would like covered in this page: https://github.com/IntellectualSites/PlotSquared/issues
 +
 +
As this is also new, it may not be optimized particularly well. Please let use know in the ticket section if this is the case.
 +
 +
What is plot analysis?
 +
 +
Plot analysis is used to better determine the quality of plots specifically for plot clearing. It can be configured manually, or calibrated based on existing plot ratings.
 +
 +
It is part of the plot expiry system, and is optional check on top of clearing plots older than a set number of days.
 +
 +
Why is this better than the previous blocks modified?
 +
 +
The number of changed blocks is not an accurate way to gauge the quality of the plot. Players could spam blocks, or in the case of worldedit, set the plot to a blob of stone. Using plot analysis, it correlates 10 different metrics to plot quality and hopefully be a better determination of quality builds without having to manually look at each one.
 +
 +
How do I manually calibrate plot analysis?
 +
 +
Please note that there is also auto calibration (see below)
 +
 +
In the settings.yml there is a section for auto clearing:
 +
 +
clear:
 +
  auto:
 +
    # If auto clearing is enabled
 +
    enabled: true
 +
 +
    # If the threshold is set to -1, all plots will be cleared
 +
    # Otherwise, any expired plot less than this threshold will be cleared
 +
    threshold: -1
 +
 +
    # This section can be auto calibrated, or done yourself
 +
    calibration:
 +
      changes_sd: 64
 +
      variety_sd: 1
 +
      faces_sd: 32
 +
      air: 0
 +
      faces: 2
 +
      changes: 1
 +
      data_sd: 1
 +
      variety: 1
 +
      air_sd: 0
 +
      data: 32
 +
 +
    # The interval at which plots are cleared (lower is faster)
 +
    clear-interval-seconds: 10
 +
 +
    # Any plot older than this will be checked and possibly cleared
 +
    days: 7
 +
If you only want to clear plots based on the number of changes, set all the metrics to 0 except "changes". Then set the complexity accordingly. The changes metrics is 100 * average per column.
 +
 +
What is a column? A column is the entire vertical space for a block. e.g. If you are standing on a block, the column is that block and everything directly above and below it. Each column can contain at most 256 blocks (as it's 256 blocks tall).
 +
 +
If you want for instance to clear any plot that had less than 7 blocks changed per column, you would do the following (note that 7 -> 700 for the threshold):
 +
 +
clear:
 +
  auto:
 +
    # Please note how the threshold is set to 100 * 7 or 700
 +
    threshold: 700
 +
 +
    # This section has be calibrated to only care about blocks changed
 +
    calibration:
 +
      changes_sd: 0
 +
      variety_sd: 0
 +
      faces_sd: 0
 +
      air: 0
 +
      faces: 0
 +
      changes: 1
 +
      data_sd: 0
 +
      variety: 0
 +
      air_sd: 0
 +
      data: 0
 +
 +
    # Set these to whatever you want
 +
    enabled: true
 +
    clear-interval-seconds: 10
 +
    days: 7
 +
How do I auto calibrate plot analysis?
 +
 +
Plot analysis can be auto calibrated based on plot ratings. The more ratings you have, the more accurate the calibration will be.
 +
 +
To rate plots use:
 +
/plot rate next - To teleport to the next ratable plot (this is skewed so that low quality plots receive less ratings)
 +
/plot rate <value> - To rate the plots
 +
 +
The best way to get good data is to just encourage players on the server to rate as many plots as they can - you can always recalibrate.
 +
 +
To calibrate use:
 +
/plot debugexec calibrate-analysis <percentage>
 +
The percentage is what (rough) percent of old plots you would like to have cleared. If you just want to get rid of some really low quality plots e.g. 7% of plots use:
 +
/plot debugexec calibrate-analysis 7
 +
 +
To view the current complexity of the plot you are in use /plot debugexec analyze - then the same command to view the analysis.
 +
 +
To recalibrate:
 +
It is best to clear the current analysis so plots can be re-analyzed:
 +
(optional) /plot debugexec remove-flag analysis
 +
(required) /plot debugexec calibrate-analysis <percentage>
  
 
==命令和权限==
 
==命令和权限==

2016年10月2日 (日) 19:48的版本

Icon-info.png
本页面已存在其他语言的内容,请协助翻译为本地化的中文。
  • 点击此处开始翻译。
  • 如本模板出现在原文存档页面,请注意更新主页面后,仍需要去除此处该模板。
  • 如当前页面已经没有需要翻译的内容,请删去待翻译模板。
  • 有标题的大篇幅文章,如果短时间内无法全部翻译,请先把所有的标题翻译出来,以便之后的贡献者选择与翻译章节内容。
Icon-info.png
本条目已有一定量的内容,但仍需完善

欢迎参与本条目的完善工作

你可以从以下几个方面入手

  • 参阅格式化手册,并对该页面进行相应格式排版工作;
  • 日常检查是否内容有更新版本并更新该页面;
  • 修复该页面中已出现/潜在的问题

你不能在没有一个合适的地皮插件的情况下使你的服务器上线。PlotSquared 快速,高效,有很高的扩展性。

它有一个世界生成器和一个完整的地皮管理系统。

有许多酷炫的特性,完整的控制和配置,和一个[为其他插件准备的API]。

为什么不尝试下呢?

如果你现在正在使用PlotMe,地皮的转换系统十分的快速且简单,它在下方介绍了。

特性

  • 快速高效
  • 支持多世界
  • 支持 PlotMe 的转化
  • MySQL 和 SQLite 的整合
  • 地皮合并
  • 地皮瞬间清空
  • 怪物保护
  • 地皮大量的标志系统
  • 四种地皮权限 (主人 援建者 信任者 黑名单)
  • 可以从网页上上传/下载地皮模型
  • 可配置的语言文件
  • 可配置的地皮生成
  • 地皮名字
  • 具有API
  • WE在地皮中有限制

下面的需要对应扩展支持

  • VoxelSniper 在地皮中有限制
  • 支持WG的标志
  • 支持不是方形的地皮
  • 支持动态地图
  • 支持统计
  • PlotMe 可以转换

安装

下载文件[在文件页面]

如果你下载下来的是zip文件的话,解压

把"PlotSquared.jar"放到你的plugins目录里

开启服务器以生成必要的文件

数据库设置

Database: SQLite

如果你没有 MySQL 数据库的话,数据库的值会自动设置为SQLite,然后你可以跳过这一步了。

Database: MySQL

请注意你既可以使用 MySQL 也可以使用 SQLite ,但两者不能同时使用。

请注意你可以使用 /plot database 命令来转换到MySql

前往"storage.yml",来配置你的 MySQL 数据库。

与Plotme的转换

请确保你完成了上面的步骤。

如果所有事情都是对的,就会开始转换地皮,覆盖配置,然后覆盖你的多世界设置[平均10W地皮/分钟]

第一步:安装 PlotSquared 删除 PlotMe.jar

删除 PlotMe.jar 这样的原因是如果你的Plotme版本在 0.15 及以上的话,插件会防止你覆盖。当你装载两个插件开启服务器,Plotme会自动替换掉本插件。

如果你有问题的话,请联系我们。

第二步:选择地形创建器

有时 PlotSquared 不能为你的地皮选择合适的地形创建器。如果你遇到了这种情况,你需要在服务器关闭时手动选择地形创建器。

如果你有多世界插件的话,你可以在配置中改变地形创建器。其他你也可以在"Bukkit.yml"中把地形创建器改为"PlotSquared"。

如果你没有选择地形创建器就开启服务器,你会看到一条消息刷出: Plot 'X;Z' in DB for world 'plotworld' does not exist!

请创建这个世界,或移除DB的地皮!这就是一个提醒,你需要切换世界的地形生成器。

第三步:权限

另一件事是配置权限。如果你是一个典型的创造服务器的话,你需要这些权限。

plots.permpack.basic

plots.plot.#

把#替换成你想要玩家拥有几块地皮。

第四步:配置你的世界

减少你的地皮世界的大小


使用

自定义

翻译

主要的语句

翻译在这个位置: plugins\PlotSquared\translations\PlotSquared.use_THIS.yml

你可以在这个文件中为每个消息改变文本。(后台指令也能配置)

颜色代码

要想改变颜色代码[默认是$],在这里配置: plugins\PlotSquared\translations\style.yml

命令别称

开启地皮别称

如果你想要像 /plotme 的指令工作,请在 settings.yml 中开启 plotme-alias 。这不会模仿PLOTME的子指令。

在这个文件 commands.yml 里你可以改变子命令的别称。

commands.yml 可以在这里 plugins/PlotSquared/config/commands.yml 找到,并且允许你改变命令的别称。

=网页接口

安装

默认 PlotSquared 的接口是我们的域名。下载是匿名的,并且你不需要在你的终端上设置什么。

免责声明:

Metrics 必须启用。所有你上传到公共网页接口上的东西都会变成公共的,如果你觉得这有问题的话你可以把公共接口设为你自己的主机。

设置你自己的端口:

[资源] [下载]

配置的位置: config/settings.yml

web:
  url: http://empcraft.com/plots/
  server-ip: your.ip.here
下载

/plot download

这会从你设置的端口处下载文件,会生成一个随机秘钥。

恢复下载

/plot schematic paste url:秘钥

秘钥是你在下载时生成的随机秘钥。

保存

/plot save

读取

/plot load

[视频教程]

世界边界

为了防止跑图,世界边界可以在每个地皮世界启用。选项可以在 worlds.yml 中的 worlds.<world>.world.border

地皮边界会处在里中心地皮 (0,0) 最远的地皮上,而且会防止区域外的区块读取。

如果你在边界之外已经有了地皮,世界边界不会很有效。你可以使用地皮的过时系统:

在settings.yml中寻找以下节

enabled-components:
  plot-expiry: false
#这是一个实例
auto-clear:
  task1:
    threshold: 1
    required-plots: -1
    confirmation: true
    days: 7
    worlds: 
    - "*"
    # See: https://github.com/IntellectualSites/PlotSquared/wiki/Plot-analysis
    calibration:
      variety: 0
      variety-sd: 0
      changes: 0
      changes-sd: 1
      faces: 0
      faces-sd: 0
      data-sd: 0
      air: 0
      air-sd: 0
      data: 0

要启用地皮过时管理,把 'enabled' 改为true,然后设置过时的天数。如果玩家超过这个天数没有上线,地皮会被清除。

要想知道更高级的知识,请去:#地皮分析

地皮冷却 (2.7.5加入) (加强版)

这项工程与世界相关。这会把地皮移动到在中心附近的半径中。要想知道有多少地皮再边界外,请使用

/plot condense <world> info <radius>

它还将显示您可以指定的最小半径。

如果你在边界外有数以千计的地皮的话,就会用很长一段时间。

然后可以使用

/plot condense <world> start <radius>

来使用更改

世界修剪

这个世界修剪器会尝试删除一些没有地皮的区块,同时也会缩减硬盘中世界的大小。

这是一个加强版指令,所以推荐你一周用一次。

你可以使用这个指令来修剪

/plot trim <world>

区块处理

免责声明

这是一个新的特性,不是一个能解决你所有问题的魔法解决方案。区块处理器不完美,并且如果它不能预防卡顿的话也是你的锅[即使你可以反馈给我]

这并不是很奏效,因为当没有区块处理时,不会留下足迹。

例子
chunk-processor:
// If the processor is enabled
  enabled: true
// The maximum number of blockstates allowed per chunk
  max-blockstates: 4096
/// The maximum number of entities required in a chunk before it is deemed a source of lag
  max-entities: 512
// If you also want to disable all physics
// (formerly there was a physics limiter, however that lead to confusion when important things like redstone were limited, so now it is just a blanket disable option)
  disable-physics: false
// Auto trim will not save chunks on unload if they do not belong to a claimed plot
// As chunks may save without unloading, it is recommended to disable world autosaving, or enable auto-unload
  auto-trim: true
// This will replace chunk unloading with something a bit more aggressive.
  auto-unload: true
// See here: https://github.com/IntellectualSites/PlotSquared/wiki/WorldEdit-processing
  experimental-fast-async-worldedit: true
更多来这儿: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/package-tree.html (or do a google search)

WE处理

总览

PlotSquared 提供了一些关于WE的选项,如果你没有额外权限的话,默认会:

在地皮中限制WE的运行

禁止使用潜在危险的指令

限制一些笔刷的功能以防止使服务器崩溃

限制一次最大执行的方块数为5千万

额外的权限是 plots.worldedit.bypass 如果你有权限的话,使用 /plot toggle worldedit 或 /plot wea

进一步扩展, PlotSquared 有一个你可以启用的 WE 处理器。

在编辑时限制最大的方块数和实体数(启用 chunk-processor)

WE 的快速和异步处理 (启用 experimental-fast-async-worldedit) (通过 /plot wea 来跳过)

地皮分析

我说我在待编辑 This page is a work in progress: Please create a ticket regarding any questions you would like covered in this page: https://github.com/IntellectualSites/PlotSquared/issues

As this is also new, it may not be optimized particularly well. Please let use know in the ticket section if this is the case.

What is plot analysis?

Plot analysis is used to better determine the quality of plots specifically for plot clearing. It can be configured manually, or calibrated based on existing plot ratings.

It is part of the plot expiry system, and is optional check on top of clearing plots older than a set number of days.

Why is this better than the previous blocks modified?

The number of changed blocks is not an accurate way to gauge the quality of the plot. Players could spam blocks, or in the case of worldedit, set the plot to a blob of stone. Using plot analysis, it correlates 10 different metrics to plot quality and hopefully be a better determination of quality builds without having to manually look at each one.

How do I manually calibrate plot analysis?

Please note that there is also auto calibration (see below)

In the settings.yml there is a section for auto clearing:

clear:

 auto:
   # If auto clearing is enabled
   enabled: true
   # If the threshold is set to -1, all plots will be cleared
   # Otherwise, any expired plot less than this threshold will be cleared
   threshold: -1
   # This section can be auto calibrated, or done yourself
   calibration:
     changes_sd: 64
     variety_sd: 1
     faces_sd: 32
     air: 0
     faces: 2
     changes: 1
     data_sd: 1
     variety: 1
     air_sd: 0
     data: 32
   # The interval at which plots are cleared (lower is faster)
   clear-interval-seconds: 10
   # Any plot older than this will be checked and possibly cleared
   days: 7

If you only want to clear plots based on the number of changes, set all the metrics to 0 except "changes". Then set the complexity accordingly. The changes metrics is 100 * average per column.

What is a column? A column is the entire vertical space for a block. e.g. If you are standing on a block, the column is that block and everything directly above and below it. Each column can contain at most 256 blocks (as it's 256 blocks tall).

If you want for instance to clear any plot that had less than 7 blocks changed per column, you would do the following (note that 7 -> 700 for the threshold):

clear:

 auto:
   # Please note how the threshold is set to 100 * 7 or 700
   threshold: 700
   # This section has be calibrated to only care about blocks changed
   calibration:
     changes_sd: 0
     variety_sd: 0
     faces_sd: 0
     air: 0
     faces: 0
     changes: 1
     data_sd: 0
     variety: 0
     air_sd: 0
     data: 0
   # Set these to whatever you want
   enabled: true
   clear-interval-seconds: 10
   days: 7

How do I auto calibrate plot analysis?

Plot analysis can be auto calibrated based on plot ratings. The more ratings you have, the more accurate the calibration will be.

To rate plots use: /plot rate next - To teleport to the next ratable plot (this is skewed so that low quality plots receive less ratings) /plot rate <value> - To rate the plots

The best way to get good data is to just encourage players on the server to rate as many plots as they can - you can always recalibrate.

To calibrate use: /plot debugexec calibrate-analysis <percentage> The percentage is what (rough) percent of old plots you would like to have cleared. If you just want to get rid of some really low quality plots e.g. 7% of plots use: /plot debugexec calibrate-analysis 7

To view the current complexity of the plot you are in use /plot debugexec analyze - then the same command to view the analysis.

To recalibrate: It is best to clear the current analysis so plots can be re-analyzed: (optional) /plot debugexec remove-flag analysis (required) /plot debugexec calibrate-analysis <percentage>

命令和权限

扩展插件