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

“ZipExtractor”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“ Category:娱乐 <!--HEAD--> <div style="float:none;-webkit-border-image: none;color: #333;height: auto;margin: 0 0 35px 0;min-height: 20px;background-color:…”)
 
 
(未显示同一用户的11个中间版本)
第1行: 第1行:
 
+
= =
[[Category:娱乐]]
+
[[Category:管理]]
 
<!--HEAD-->
 
<!--HEAD-->
 
     <div style="float:none;-webkit-border-image: none;color: #333;height: auto;margin: 0 0 35px 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);">
 
     <div style="float:none;-webkit-border-image: none;color: #333;height: auto;margin: 0 0 35px 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);">
 
<!--标题-->
 
<!--标题-->
 
         <p style="color:#ffffff;font-size: 26px;text-align: center;margin:0; padding:14px;background-color: #3385ff;">
 
         <p style="color:#ffffff;font-size: 26px;text-align: center;margin:0; padding:14px;background-color: #3385ff;">
             欢迎来到ZipExtracter插件词条
+
             欢迎来到ZipExtractor插件词条
 
         </p>
 
         </p>
 
         <div style="float:none;-webkit-border-image: none;height: auto;line-height: 20px;background-color:#74c0ff;display:table;width:100%;color:#ffffff;">
 
         <div style="float:none;-webkit-border-image: none;height: auto;line-height: 20px;background-color:#74c0ff;display:table;width:100%;color:#ffffff;">
 
  <!--内容-->
 
  <!--内容-->
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
                 <big>插件名<br>'''ZipExtracter-压缩包解压器</big>'''
+
                 <big>插件名<br>'''ZipExtractor-压缩包解压器</big>'''
 
             </p>
 
             </p>
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
 
             <p style="float:none;font-size: 16px;text-align: center;padding:10px 0;display:table-cell;border-right:1px solid white;">
第30行: 第30行:
 
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">介绍 {{·}} Introduction</p>
 
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">介绍 {{·}} Introduction</p>
 
         <div style="padding:10px 20px;">
 
         <div style="padding:10px 20px;">
<center>[[image:ze1.png]]</center><br>
+
<center>[[image:ze1.png|1000px]]</center><br>
 
+
= =
ZipExtractor is an administrative utility plugin allowing the compression/extraction of archived files through minecraft command. This plugin is extremely useful for dealing with archives over FTP, which does not provide support for neither compression nor extraction. While many safeguards are in place, please note that there is no undo button. Overridden files cannot be recovered.
+
ZipExtractor可以让你在游戏里通过指令进行解压和压缩服务器文件。<br>
 
+
因为你无法在FTP内解压和压缩文件,所以这个插件非常有用。 虽然插件准备了许多安全措施,但请注意,你的操作无法撤销。<br>
The source and destination file paths are saved inside of the config.yml. This means that only one can be set at a time. If you edit these values directly in the config.yml you must reload the plugin for the new values to take effect.
+
源文件和目标文件路径可在config.yml内设置。 一次只能设置一个路径. 如果你直接在 config.yml 内修改数值,你必须重载插件才能应用新数值。
  
 
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">特点 {{·}} Features</p>
 
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">特点 {{·}} Features</p>
 
         <div style="padding:10px 20px;">
 
         <div style="padding:10px 20px;">
* Extraction of ZIP, RAR, JAR, PACK, and XZ archives.
+
* 在游戏内解压'''ZIP、 RAR、JAR、PACK和XZ'''格式的压缩包.
* Compression of any file or directory into the ZIP format.
+
* 压缩任何文件和根目录的文件到ZIP压缩包内.
* Compression of any JAR file to the PACK format, and any non-directory file to the XZ format.
+
* 把JAR格式的压缩包和非目录文件转换为XZ格式。
* Queueable operations if you have many extractions/compressions to perform.
+
* 如果有多项解压任务将会自动按队列执行解压.
* Configurable Thread Pool Executor allowing you to set a maximum queue size and maximum number of threads to run at once. Incase of an emergency the Thread Pool can be shutdown at anytime.
+
* 可配置[http://tutorials.jenkov.com/java-util-concurrent/threadpoolexecutor.html 线程池执行器](Thread Pool Executor)来设置一次性可运行的最大和最小队列线程数。在紧急情况下,线程池可以在任何时候关闭
* Option to be warned if an extraction/compression would result in files being overriden.
+
* 可设置在提取/压缩将导致文件被覆盖时发出警告消息。
** If enabled, users will require an additional permission in order to proceed with the process.
+
** 如果启用,用户需要额外的权限才能执行进程。
** For extractions, you can view every file which would be overriden prior to proceeding with the process.
+
** 对于解压, 您可以查看在进行该过程之前将被覆盖的每个文件
* Metrics by bStats
+
* 由[https://bstats.org/plugin/bukkit/ZipExtractor bStats]记录插件数据
 
+
        <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">路径 {{·}} Paths</p>
         </div>
+
         <div style="padding:10px 20px;">
    </div>
+
相对路径为你所输入的路径 绝对路径为完整的文件路径<br>
 +
[[file:Ze2.jpg]]
 +
        <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">教程 {{·}} Tutorials</p>
 +
        <div style="padding:10px 20px;">
 +
'''解压压缩包'''
 +
# /ze setsrc 设置要解压的压缩包路径,如/ze setsrc ''plugins/ZipExtractor-Bukkit-2.0.0.jar''
 +
# /ze setdest 设置解压的文件路径 如/ze setdest plugins/ZipExtractor
 +
# /ze extract 完成解压
 +
'''压缩文件'''
 +
# /ze setsrc 设置要压缩的文件或文件夹路径,如/ze setsrc ''plugins/ZipExtractor''
 +
# /ze setdest 设置解压的文件路径 如/ze setdest test.zip
 +
# /ze extract 完成压缩 在服务端根目录找到test.zip
 +
= =
 +
        <!--PYTHON&DJANGO-->
 
<div style="float:none;-webkit-border-image: none;color: #333;height: auto;line-height: 20px;margin: 35px 0 0 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);width:100%;">
 
<div style="float:none;-webkit-border-image: none;color: #333;height: auto;line-height: 20px;margin: 35px 0 0 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);width:100%;">
         <!--标题-->
+
         <!--部署-->
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">Commands{{·}}指令 & 权限 {{·}} Permissions</p>
+
         <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">指令 {{·}} Commands</p>
 
     </div>
 
     </div>
 
+
         <div style="padding:10px 20px;">
        <!--PYTHON&DJANGO-->
 
         <div id="mf-documentation" style="display: table-cell; -webkit-border-image: none;height: auto;line-height: 20px;min-height: 20px;width: 49%;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5); padding:20px;">
 
            <p style="color:#ffffff;font-size: 20px;text-align: center;margin:0; padding:20px;background-color: #3385ff;box-shadow:0 0 30px rgba(51, 133, 255, 0.5);-webkit-box-shadow:0 0 30px rgba(51, 133, 255, 0.5);-moz-box-shadow:0 0 30px rgba(51, 133, 255, 0.5);margin:0 0 20px 0;">
 
                指令
 
 
             </p>
 
             </p>
            <p style="display:block; text-align:left; color: #444; font-size: 12pt;">
+
<table>
/
+
<tr>
 +
<th align="left">指令</th>
 +
<th align="left">描述</th>
 +
<th align="left">所需权限</th>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze help [cmd]</strong></td>
 +
<td align="left">查看指令帮助.</td>
 +
<td align="left"><code>zipextractor.admin.use</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze extract</strong></td>
 +
<td align="left">开始解压.目标文件将会解压<em>到</em>指定目录内.</td>
 +
<td align="left"><code>zipextractor.admin.extract</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze extract view [page]</strong></td>
 +
<td align="left">如果一个进程因为可能导致覆盖文件而被迫停止,你可以使用此命令精确查看要重写哪些文件.<br>
 +
文件会被列为关于目标路径的相对路径.</td>
 +
<td align="left"><code>zipextractor.admin.extract</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze compress</strong></td>
 +
<td align="left">开始压缩文件. 目标文件/目录将会压缩到指定路径. 压缩类型取决于目标压缩包的格式. 如果你使用的是 <code>.zip</code>, 就会压缩为 <code>zip</code> 格式.</td>
 +
<td align="left"><code>zipextractor.admin.compress</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze src [-absolute]</strong></td>
 +
<td align="left">查看当前设置的目标路径. 如果你跳过了 <code>-absolute</code> 参数,路径就会变为''绝对路径''.</td>
 +
<td align="left"><code>zipextractor.admin.src</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze dest [-absolute]</strong></td>
 +
<td align="left">查看当前设置的解压路径. 如果你跳过了 <code>-absolute</code> 参数,路径就会变为''绝对路径''.</td>
 +
<td align="left"><code>zipextractor.admin.dest</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze setsrc </strong></td>
 +
<td align="left">定义目标文件路径. 这可以是 <em>相对</em> 或 <em>绝对</em> 路径.</td>
 +
<td align="left"><code>zipextractor.admin.setsrc</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze setdest </strong></td>
 +
<td align="left">定义目标文件存储路径. 这可以是 <em>相对</em> 或 <em>绝对</em> 路径.</td>
 +
<td align="left"><code>zipextractor.admin.setdest</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze status</strong></td>
 +
<td align="left">显示解压状态. 如果解压未结束,就会显示进行中和队列中的解压任务.</td>
 +
<td align="left"><code>zipextractor.harmless.status</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze plugindir</strong></td>
 +
<td align="left">查看插件配置目录的路径.</td>
 +
<td align="left"><code>zipextractor.admin.plugindir</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze terminate</strong></td>
 +
<td align="left">这个指令将会开始插件的''线程池''. 关闭时的任何队列中的任务都将被允许完成. 推荐在压缩任务完成后再关服.</td>
 +
<td align="left"><code>zipextractor.admin.terminate</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze forceterminate</strong></td>
 +
<td align="left">强制关闭插件的''线程池''并发送终止所有队列中和进行中的任务的请求.不推荐使用.</td>
 +
<td align="left"><code>zipextractor.admin.forceterminate</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze reload</strong></td>
 +
<td align="left">重载插件配置.</td>
 +
<td align="left"><code>zipextractor.admin.reload</code></td>
 +
</tr>
 +
<tr>
 +
<td align="left"><strong>/ze version</strong></td>
 +
<td align="left">显示插件版本信息和相关链接.</td>
 +
<td align="left">-</td>
 +
</tr>
 +
</table>
 
             </p>
 
             </p>
 
         </div>
 
         </div>
 
         <!--间距调整-->
 
         <!--间距调整-->
         <div style="padding: 20px; display: table-cell;"></div>
+
         <div style="padding: 5px; display: table-cell;"></div>
  
 
         <!--MYSQLDB-->
 
         <!--MYSQLDB-->
        <div id="mf-join" style="display: table-cell;-webkit-border-image: none;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);color: #333;font-size: 14px;height: auto;line-height: 20px;margin: 0px 0px 5px;min-height: 20px;width: 49%; padding:20px;">
+
<div style="float:none;-webkit-border-image: none;color: #333;height: auto;line-height: 20px;margin: 35px 0 0 0;min-height: 20px;background-color: #f8f8f8;box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-webkit-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);-moz-box-shadow:0 0 10px rgba(193, 193, 193, 0.5);width:100%;">
            <p style="color:#ffffff;font-size: 20px;text-align:center;padding:20px;background-color: #3385ff;margin:0 0 20px 0;box-shadow:0 0 30px rgba(51, 133, 255, 0.5);-webkit-box-shadow:0 0 30px rgba(51, 133, 255, 0.5);-moz-box-shadow:0 0 30px rgba(51, 133, 255, 0.5);">
+
        <!--部署-->
                权限
+
        <p style="color:#ffffff;font-size: 22px;text-align: center;margin:0; padding:16px;background-color: #3385ff;">权限 {{·}} Permissions</p>
 +
    </div>
 +
        <div style="padding:10px 20px;">
 
             </p>
 
             </p>
            <p style="display:block; text-align:Right; color: #444; font-size: 12pt;">
+
<table>
 
+
<tr>
* xweather.admin:
+
<th align="left">权限</th>
 +
<th align="left">描述</th>
 +
<th align="left">默认</th>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.*</code></td>
 +
<td align="left">所有ZipExtractor的权限.</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.*</code></td>
 +
<td align="left">管理员权限.</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.use</code></td>
 +
<td align="left">允许使用/ZipExtractor</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.extract</code></td>
 +
<td align="left">允许使用/ZipExtractor extract</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.compress</code></td>
 +
<td align="left">允许使用/ZipExtractor compress</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.override.extract</code></td>
 +
<td align="left">如果已启用 <code>warn_on_conflicts</code>, 允许使用/ZipExtractor extract -override</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.override.compress</code></td>
 +
<td align="left">如果已启用 <code>warn_on_conflicts</code>, 允许使用/ZipExtractor compress -override</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.src</code></td>
 +
<td align="left">允许使用/ZipExtractor src</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.dest</code></td>
 +
<td align="left">允许使用/ZipExtractor dest</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.setsrc</code></td>
 +
<td align="left">允许使用/ZipExtractor setsrc</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.setdest</code></td>
 +
<td align="left">允许使用/ZipExtractor setdest</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.plugindir</code></td>
 +
<td align="left">允许使用/ZipExtractor plugindir</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.terminate</code></td>
 +
<td align="left">允许使用/ZipExtractor terminate</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.forceterminate</code></td>
 +
<td align="left">允许使用/ZipExtractor forceterminate</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.admin.reload</code></td>
 +
<td align="left">允许使用/ZipExtractor reload</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.harmless.*</code></td>
 +
<td align="left">允许使用安全的指令.</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.harmless.status</code></td>
 +
<td align="left">允许使用 /ZipExtractor status</td>
 +
<td align="left">OP</td>
 +
</tr>
 +
<tr>
 +
<td align="left"><code>zipextractor.harmless.notify</code></td>
 +
<td align="left">玩家
 +
</table>
 +
=权限树=
 +
<blockquote>
 +
<p>zipextractor.admin.*</p>
 +
<blockquote>
 +
<p>zipextractor.admin.use</p>
 +
<p>zipextractor.admin.extract</p>
 +
<p>zipextractor.admin.compress</p>
 +
<p>zipextractor.admin.override.extract</p>
 +
<p>zipextractor.admin.override.compress</p>
 +
<p>zipextractor.admin.src</p>
 +
<p>zipextractor.admin.dest</p>
 +
<p>zipextractor.admin.setsrc</p>
 +
<p>zipextractor.admin.setdest</p>
 +
<p>zipextractor.admin.plugindir</p>
 +
<p>zipextractor.admin.terminate</p>
 +
<p>zipextractor.admin.forceterminate</p>
 +
<p>zipextractor.admin.reload</p>
 +
</blockquote>
 +
<p>zipextractor.harmless.*</p>
 +
<blockquote>
 +
<p>zipextractor.harmless.status</p>
 +
<p>zipextractor.harmless.notify</p>
 +
</blockquote>
 +
</blockquote>
 +
            </p>
 +
        </div>
  
 
             </p>
 
             </p>
第84行: 第289行:
 
         <div style="padding:10px 20px;">
 
         <div style="padding:10px 20px;">
 
             </p>
 
             </p>
 +
 
=<center>'''{{MCColor|&3|config.yml}}'''</center>=
 
=<center>'''{{MCColor|&3|config.yml}}'''</center>=
翻译中...
+
<spoiler>
 +
#-----------------------------------------------
 +
#            Zip Extractor 配置
 +
#-----------------------------------------------
 +
 +
# 不要改变版本号
 +
# 否则会造成数据丢失
 +
ConfigVersion: 1.0
 +
 +
#---------------[文件设置]-----------------
 +
# 用 '/' for a file separator as shown below.
 +
# 如果你的操作系统的文件分隔符使用的是不同的
 +
# 字符, 插件会自动检测并转换.
 +
# 支持相对和绝对文件路径.
 +
file_settings:
 +
 +
  # 源文件的路径.
 +
  source_directory: "plugins/ZipExtractor/MyArchive.zip"
 +
 
 +
  # 目标压缩包的路径.
 +
  destination_directory: "C:/MyServer/MyOutputFolder"
 +
 +
#--------------[总体设置]---------------
 +
general_settings:
 +
 
 +
  # 插件是否在有解压缩任务时在控制台记录
 +
  # 压缩包内的每个文件
 +
  log_files: true
 +
 
 +
  # 插件是否警告用户该操作会覆盖文件
 +
  # 该操作无法撤回
 +
  # 最好开启这一选项
 +
  #
 +
  # 启用后,文件会被预先扫描 如果发生了文件冲突,
 +
  # 操作会被终止
 +
  # 用户会看到更多的警告信息
 +
  # 包括如何忽略警告并继续执行操作
 +
  warn_on_conflicts: true
 +
 
 +
  # 是否在关服前完成解压缩任务再关服
 +
  # 如果关闭,任务会在关服时终止
 +
  #
 +
  # 最好不要在关服时执行任务.
 +
  wait_on_shutdown: true
 +
 
 +
  # 最大任务队列数
 +
  # 数值必须是正整数
 +
  # 如果输入了错误的数值
 +
  # 将会默认为最大数值: (2147483647)
 +
  #
 +
  # **需要重启服务器才生效.
 +
  max_queue_size: 3
 +
 
 +
  # 设置插件最大线程池数
 +
  # 数值必须是正整数
 +
  #如果你不知道这是什么请不要更改
 +
  # 否则可能会对你的服务器造成影响.
 +
  #
 +
  # 为了你的服务器安全,核心池的大小在1是最好的
 +
  # 如果你懂相关知识且想要修改这个数值
 +
  # 请联系插件作者
 +
  #
 +
  # 推荐数值为1
 +
  # 除非你的服务器需要执行多项解压缩任务. 在服务器运行时
 +
  # 更新这个数值为小于1的数会使进行中的进程闲置.
 +
  maximum_thread_pool: 1
 +
</spoiler>
  
  
第100行: 第372行:
 
             </p>
 
             </p>
  
[[image:Github2.png|250px|center|link=https://github.com/taoneill/war|Github源码]]
+
[[image:Github2.png|250px|center|link=https://github.com/dscalzi/ZipExtractor|Github源码]]
  
 +
[[image:Paypal.jpg|250px|center|link=https://github.com/dscalzi/ZipExtractor|Paypal]]
 
             </p>
 
             </p>
 
         </div>
 
         </div>
 
         <!--间距调整-->
 
         <!--间距调整-->

2018年12月2日 (日) 13:54的最新版本

欢迎来到ZipExtractor插件词条

插件名
ZipExtractor-压缩包解压器

作者
TheKraken7

版本
2.0.0

兼容版本
1.8-1.13

下载地址
Spigot.png

介绍  · Introduction

Ze1.png

ZipExtractor可以让你在游戏里通过指令进行解压和压缩服务器文件。
因为你无法在FTP内解压和压缩文件,所以这个插件非常有用。 虽然插件准备了许多安全措施,但请注意,你的操作无法撤销。
源文件和目标文件路径可在config.yml内设置。 一次只能设置一个路径. 如果你直接在 config.yml 内修改数值,你必须重载插件才能应用新数值。

特点  · Features

  • 在游戏内解压ZIP、 RAR、JAR、PACK和XZ格式的压缩包.
  • 压缩任何文件和根目录的文件到ZIP压缩包内.
  • 把JAR格式的压缩包和非目录文件转换为XZ格式。
  • 如果有多项解压任务将会自动按队列执行解压.
  • 可配置线程池执行器(Thread Pool Executor)来设置一次性可运行的最大和最小队列线程数。在紧急情况下,线程池可以在任何时候关闭
  • 可设置在提取/压缩将导致文件被覆盖时发出警告消息。
    • 如果启用,用户需要额外的权限才能执行进程。
    • 对于解压, 您可以查看在进行该过程之前将被覆盖的每个文件
  • bStats记录插件数据

路径  · Paths

相对路径为你所输入的路径 绝对路径为完整的文件路径
Ze2.jpg

教程  · Tutorials

解压压缩包

  1. /ze setsrc 设置要解压的压缩包路径,如/ze setsrc plugins/ZipExtractor-Bukkit-2.0.0.jar
  2. /ze setdest 设置解压的文件路径 如/ze setdest plugins/ZipExtractor
  3. /ze extract 完成解压

压缩文件

  1. /ze setsrc 设置要压缩的文件或文件夹路径,如/ze setsrc plugins/ZipExtractor
  2. /ze setdest 设置解压的文件路径 如/ze setdest test.zip
  3. /ze extract 完成压缩 在服务端根目录找到test.zip

指令  · Commands

指令 描述 所需权限
/ze help [cmd] 查看指令帮助. zipextractor.admin.use
/ze extract 开始解压.目标文件将会解压指定目录内. zipextractor.admin.extract
/ze extract view [page] 如果一个进程因为可能导致覆盖文件而被迫停止,你可以使用此命令精确查看要重写哪些文件.
文件会被列为关于目标路径的相对路径.
zipextractor.admin.extract
/ze compress 开始压缩文件. 目标文件/目录将会压缩到指定路径. 压缩类型取决于目标压缩包的格式. 如果你使用的是 .zip, 就会压缩为 zip 格式. zipextractor.admin.compress
/ze src [-absolute] 查看当前设置的目标路径. 如果你跳过了 -absolute 参数,路径就会变为绝对路径. zipextractor.admin.src
/ze dest [-absolute] 查看当前设置的解压路径. 如果你跳过了 -absolute 参数,路径就会变为绝对路径. zipextractor.admin.dest
/ze setsrc 定义目标文件路径. 这可以是 相对绝对 路径. zipextractor.admin.setsrc
/ze setdest 定义目标文件存储路径. 这可以是 相对绝对 路径. zipextractor.admin.setdest
/ze status 显示解压状态. 如果解压未结束,就会显示进行中和队列中的解压任务. zipextractor.harmless.status
/ze plugindir 查看插件配置目录的路径. zipextractor.admin.plugindir
/ze terminate 这个指令将会开始插件的线程池. 关闭时的任何队列中的任务都将被允许完成. 推荐在压缩任务完成后再关服. zipextractor.admin.terminate
/ze forceterminate 强制关闭插件的线程池并发送终止所有队列中和进行中的任务的请求.不推荐使用. zipextractor.admin.forceterminate
/ze reload 重载插件配置. zipextractor.admin.reload
/ze version 显示插件版本信息和相关链接. -

权限  · Permissions

权限 描述 默认
zipextractor.* 所有ZipExtractor的权限. OP
zipextractor.admin.* 管理员权限. OP
zipextractor.admin.use 允许使用/ZipExtractor OP
zipextractor.admin.extract 允许使用/ZipExtractor extract OP
zipextractor.admin.compress 允许使用/ZipExtractor compress OP
zipextractor.admin.override.extract 如果已启用 warn_on_conflicts, 允许使用/ZipExtractor extract -override OP
zipextractor.admin.override.compress 如果已启用 warn_on_conflicts, 允许使用/ZipExtractor compress -override OP
zipextractor.admin.src 允许使用/ZipExtractor src OP
zipextractor.admin.dest 允许使用/ZipExtractor dest OP
zipextractor.admin.setsrc 允许使用/ZipExtractor setsrc OP
zipextractor.admin.setdest 允许使用/ZipExtractor setdest OP
zipextractor.admin.plugindir 允许使用/ZipExtractor plugindir OP
zipextractor.admin.terminate 允许使用/ZipExtractor terminate OP
zipextractor.admin.forceterminate 允许使用/ZipExtractor forceterminate OP
zipextractor.admin.reload 允许使用/ZipExtractor reload OP
zipextractor.harmless.* 允许使用安全的指令. OP
zipextractor.harmless.status 允许使用 /ZipExtractor status OP
zipextractor.harmless.notify 玩家

权限树

zipextractor.admin.*

zipextractor.admin.use

zipextractor.admin.extract

zipextractor.admin.compress

zipextractor.admin.override.extract

zipextractor.admin.override.compress

zipextractor.admin.src

zipextractor.admin.dest

zipextractor.admin.setsrc

zipextractor.admin.setdest

zipextractor.admin.plugindir

zipextractor.admin.terminate

zipextractor.admin.forceterminate

zipextractor.admin.reload

zipextractor.harmless.*

zipextractor.harmless.status

zipextractor.harmless.notify

配置  · Configuration

config.yml

#-----------------------------------------------
#            Zip Extractor 配置
#-----------------------------------------------

# 不要改变版本号
# 否则会造成数据丢失
ConfigVersion: 1.0

#---------------[文件设置]-----------------
# 用 '/' for a file separator as shown below.
# 如果你的操作系统的文件分隔符使用的是不同的
# 字符, 插件会自动检测并转换.
# 支持相对和绝对文件路径.
file_settings:

  # 源文件的路径.
  source_directory: "plugins/ZipExtractor/MyArchive.zip"
  
  # 目标压缩包的路径.
  destination_directory: "C:/MyServer/MyOutputFolder"

#--------------[总体设置]---------------
general_settings:
  
  # 插件是否在有解压缩任务时在控制台记录
  # 压缩包内的每个文件
  log_files: true
  
  # 插件是否警告用户该操作会覆盖文件
  # 该操作无法撤回
  # 最好开启这一选项
  #
  # 启用后,文件会被预先扫描 如果发生了文件冲突,
  # 操作会被终止
  # 用户会看到更多的警告信息
  # 包括如何忽略警告并继续执行操作
  warn_on_conflicts: true
  
  # 是否在关服前完成解压缩任务再关服
  # 如果关闭,任务会在关服时终止
  #
  # 最好不要在关服时执行任务.
  wait_on_shutdown: true
  
  # 最大任务队列数
  # 数值必须是正整数
  # 如果输入了错误的数值
  # 将会默认为最大数值: (2147483647)
  #
  # **需要重启服务器才生效.
  max_queue_size: 3
  
  # 设置插件最大线程池数
  # 数值必须是正整数
  #如果你不知道这是什么请不要更改
  # 否则可能会对你的服务器造成影响.
  #
  # 为了你的服务器安全,核心池的大小在1是最好的
  # 如果你懂相关知识且想要修改这个数值
  # 请联系插件作者
  #
  # 推荐数值为1
  # 除非你的服务器需要执行多项解压缩任务. 在服务器运行时
  # 更新这个数值为小于1的数会使进行中的进程闲置.
  maximum_thread_pool: 1



链接  · Links

Github源码
Paypal