EpicBanItem - A banitem with nbt plugin in sponge


#1

This is a discussion topic for the Ore project, EpicBanItem. View the full project on Ore for downloads and more information.


EpicBanItem

A banitem with nbt plugin in sponge.

一个基于 NBT 的物品禁用插件。

English

Main developer:

Assist developers:

EpicBanItem is now based on Minecraft 1.12.2 and SpongeAPI 7.1.0.

EpicBanItem achieves the goal of item banning by mapping items (and blocks sometimes) to NBT and then checking and updating them. The NBT format mapped to is the same as Command NBT Tags format in Minecraft, instead of the one provided by Sponge. The only difference is, the Count tag will be erased when generating NBT, and only two tags named id and Damage will exist, sometimes togethered with tag.

EpicBanItem uses the method similar to MongoDB for querying and updating NBT. EpicBanItem currently supports most of the operators used in MongoDB for querying and updating.

All the configurations related to EpicBanItem are located in config/epicbanitem/ directory, which contains two files named banitem.conf (used to store rules and related options) and settings.conf (used to store global options). All the commands related to EpicBanItem begin with /ebi. All the permissions related to EpicBanItem begin with epicbanitem.

EpicBanItem is entirely licensed under GPL-3.0 and includes bstats-metrics licensed under LGPL-3.0 for data collection and statistics. The file named config/bStats/config.conf can be edited in order to choose whether to enable data collection and statistics or not.

简体中文

协助开发者:

EpicBanItem 目前适用于 Minecraft 1.12.2 和 SpongeAPI 7.1.0。

EpicBanItem 通过将物品(有时还包括方块)映射到 NBT,并对其进行检查和更新,以完成物品禁用的目标。物品映射到的 NBT 格式和 Minecraft 中的命令 NBT 标签格式,而非和 Sponge 提供的一致。唯一的区别在于,生成 NBT 时,Count 标签会被抹除,因此只会剩下 idDamage 两个标签,有时还会有 tag 标签。

EpicBanItem 使用类似于 MongoDB 的方式检索更新 NBT。EpicBanItem 目前已经支持了 MongoDB 中大多数用于检索和更新的运算符

和 EpicBanItem 有关的配置文件位于 config/epicbanitem/ 目录下,其中包含 banitem.conf(用于存储规则及相关选项)和 settings.conf(用于存储全局配置)两个文件。所有和 EpicBanItem 的命令均以 /ebi 开头。所有和 EpicBanItem 有关的权限均以 epicbanitem 开头。

EpicBanItem 整体使用 GPL-3.0 协议授权,其中包含了使用 LGPL-3.0 协议授权bstats-metrics,用于数据收集和统计。使用者可自行编辑名为 config/bStats/config.conf 的文件选择是否开启数据收集和统计。


#2

如果想要ban一个物品应该输入什么规则?NBT命令标签的wiki太庞大了,我找不到明确的规则。


#3

@Raitakun /ebi create <rule-name>


#4

A new version has been released for EpicBanItem, it is available for download here.


English

  • Fix that location of BlockSnapshot may not exist in ChunkListener.

简体中文

  • 修复了 ChunkListener 中 BlockSnapshot 的位置可能不存在导致的 BUG。

#5

A new version has been released for EpicBanItem, it is available for download here.


English

  • Fix issues of identifying $ and $[] in update rules.
  • Add $pop operator.

简体中文

  • 修复了更新规则中$$[]识别错误的问题。
  • 添加了$pop运算符。

#6

A new version has been released for EpicBanItem, it is available for download here.


English

  • Limit the names of rules to [a-z0-9-_]+ in order to be compatible with permission string.
  • Add edit commands named /ebi edit and /ebi editor respectively used to edit rules.
  • Add two operators named $pull and $pullAll.

简体中文

  • 将规则的名称限制为[a-z0-9-_]+,从而使其与权限字符串兼容。
  • 添加了用于编辑规则的命令,分别为/ebi edit/ebi editor
  • 添加了两个名为$pull$pullAll的运算符。

#7

你们可以更新下bstats metrics吗


#8

Hi I am wondering if it’s possible to limit combat with this mod? I’d like users to still be able to pick the banned items but I noticed isn’t a check for combat.


#9

@AzureZhen Well, I have also read what you said on Discord. Let me confirm what you need: just disable left/right clicking the item while keep the item still being held by player instead of the item being removed. It is possible in EpicBanItem by an interactive interface in the chat window.

Execute the edit command first:

ebi edit <rule-name>

Then an interactive interface should be popped out:

=============================================
CheckRule: <rule-name>
Priority: 5
Triggers: use pickup click throw drop place break interact
Worlds: DIM-1 DIM1 world
QueryExpression: Currently Default Origin
UpdateExpression: Currently Default Origin
Save

Just click the Currently Default Origin of UpdateExpression and then a command completion will be applied to your chat window like this:

ebi cb xxxx {"$set":{"Damage":0,"id":"minecraft:air"}}

Remove all the part after xxxx and leave a space there:

ebi cb xxxx 

Please make sure that there is a space appended after xxxx.

Then execute the command, the UpdateExpression is set to null, which allows the player to keep the item.


I’m not sure if you can speak in Chinese but your id may indicate this. I am not a native speaker, so I can also explain for you in Simplified Chinese if you think that the English I wrote is not clear enough.


#10

that worked for not removing the item but I’m still able to damage mobs with the weapons. even though I have blocked use, click, and interact.


#11

A new version has been released for EpicBanItem, it is available for download here.


A banitem with nbt plugin in sponge


#12

A new version has been released for EpicBanItem, it is available for download here.


No description given.


#13

Consider adding the link to your discord support guild: https://discord.gg/TftabgG


#14

A new version has been released for EpicBanItem, it is available for download here.


English

  • Add a new trigger named for equip for checking armor equipments.
  • Fix that the indexes in banitem.conf recognizes item ids incorrectly (#10).

简体中文

  • 添加了一个名为 equip 的新触发器用于检查盔甲装备。
  • 修复了一个 banitem.conf 中索引在识别物品上处理不正确的问题(#10)。

#15

A new version has been released for EpicBanItem, it is available for download here.


The full changelog is available on https://euonmyoji.github.io/EpicBanItem---Sponge/#/en/changelog.

v0.3.0

  • Add a new algorithm for mapping block states to items more efficiently.
  • Change the permission for executing /ebi callback to epicbanitem.command.editor.base.
  • Add a better way for filtering check rules by item type before they are applied to an item.

#16

A new version has been released for EpicBanItem, it is available for download here.


The full changelog is available on https://euonmyoji.github.io/EpicBanItem---Sponge/#/en/changelog.

v0.3.1

  • Add air filter for checking blocks.
  • Fix BlockUtil non-existence issue (#13).

#17

A new version has been released for EpicBanItem, it is available for download here.


The full changelog is available on https://euonmyoji.github.io/EpicBanItem---Sponge/#/en/changelog.

v0.3.2

  • Add a new flag named --simple-capture.