LokiBlocker
Plug-in blocking the installation of units and objects, as well as their presence in the inventory, crafting, selection from the earth, discarding from the inventory, destruction, explosion, incineration, causing damage Entity, support and strength of the date of the block (for example, only red wool or all of the wool), and the majority of units mod.
Link Removed: http://www.mediafire.com/download.php?t89g4q4vgc6bk8u
Options: File config.yml:
Link Removed: http://www.mediafire.com/download.php?t89g4q4vgc6bk8u
Options: File config.yml:
- enable: true - whether the plugin.
- force: - whether deletes the plugin all the blocks in подргужаемом чанке from the list, much loads the server
- enable: false - whether the feature is enabled
- id-data: - banned blocks, format 'id:data'
- - '8'
- - '35:0'
- place: true - whether checking the installation of blocks
- break: true - whether checking destruction blocks
- craft: false - whether checking Kraft
- inventory:
- content: true - whether the test of being in inventory
- delete: true - whether to remove the prohibited item from inventory
- pickup: false - whether checking selection of loot
- drop: false - whether checking ejection loot
- interact: - whether the check of interaction...
- left-item: true - the subject of coatings
- right-item: true - the subject of the RMB
- left-block: true - with the power of coatings
- right-block: true - with the power RMB
- block-burn: false - whether checking combustion blocks
- block-explode: false - whether checking explosion blocks
- piston:
- drag: false - whether checking pulling blocks pistons
- push: true - whether checking pushing blocks pistons
- chat: - replace the words from the list on the '***'
- enable: true - the function is enabled
- words: - a list of words
- - admin
- - boiler
- entitys: false - whether checking on all sorts of interaction entity
- configurated: true - whether checking manual configuration blocks/items
- test: - the group name
- type:
- place: true - does a group of installation of blocks
- break: true - does the group of destruction blocks
- craft: a true - does the group Kraft
- pickup: true - does the group selection loot
- drop: true - does the group drop
- block-burn (true) or does the group combustion blocks
- block-explode: true - does the group explosion blocks
- inventory:
- content: true - does the group of store items/units in inventory
- delete: false - whether to remove the prohibited items/units of equipment
- interact:
- left-item: true - does the group interaction objects (LMB)
- right-item: true - does the group interaction objects (RMB)
- left-block: false - does the group interaction with blocks (LMB)
- right-block: true - does the group interaction with blocks (RMB)
- piston:
- push: false - prohibits pulling piston block
- drag: true - prohibits to push the piston block
- list - list of subject blocks/items
- '1': - any name, most importantly, without repeating the
- id: 35 - id, be sure to
- data: 7 - data not required, from 0 to 127, -1 is equivalent to its lack
- damage: -1 - damage, not mandatory, -1 is equivalent to its lack
- test:
- id: 35 - id, be sure to
- data: 8 - data not required, from 0 to 127, -1 is equivalent to its lack
- damage: -1 - damage, not mandatory, -1 is equivalent to its lack
- '1': - any name, most importantly, without repeating the
- type:
- creeper: - the type of Entity in lowercase
- type: cow - type Entity in lowercase
- attack: false - prohibited attack
- projectile: false - prohibited him to receive damage from shells
- contact: false - prohibited him to receive damage from contact(cacti and etc)
- drowning: false - prohibited him to receive damage from drowning
- interact: false is prohibited to communicate with it(PKM)
- lava: false - forbidden him to take damage from the lava
- lighting-strike: false - prohibited him to receive damage from lightning
- magic: false - prohibited him to receive damage from magic
- poison: false - prohibited him to receive the poisons
- suffocation: false - prohibited him to receive damage from being inside blocks
- explode: false - forbidden him to take damage from the explosions
- burn: false - prohibited him to receive the fire damage
- biomes: - list of biomes, where are these settings in the rest all set to true if the list biomes empty, the settings are in effect in all biomes
- - [biome_name]
- [type of Entity in lowercase]:
- ...
- diamond: - name, cannot be repeated if no id is specified, it must match the id of a prohibited block or object
- id: 57 - id prohibited unit or item
- data: -1 - data prohibited unit or subject if no -1
- damage: -1 - damage prohibited unit or subject if no -1
- place: false - it is forbidden to install, works if the basic setting is enabled
- break: false is prohibited to destroy this block works if the basic setting is enabled
- craft: false - prohibited craft(microwave, workbench etc), if the basic setting is enabled
- inventory:
- content: true - whether the test of being in the inventory works if the basic setting is enabled
- delete: true - whether to remove the prohibited item from inventory works if the basic setting is enabled
- pickup: true - forbidden whether collected works if the basic setting is enabled
- drop: false is prohibited to dispose of works if the basic setting is enabled
- interact:
- left-item: true - does the group interaction objects (LMB), works if the basic setting is enabled
- right-item: true - does the group interaction objects (RMB), works if the basic setting is enabled
- left-block: false - does the group interaction with blocks (LMB), works if the basic setting is enabled
- right-block: true - does the group interaction with blocks (RMB), works if the basic setting is enabled
- explode: true - explodes whether the unit works if the basic setting is enabled
- burn: false - burns whether the unit works if the basic setting is enabled
- piston:
- push: false - prohibits pulling piston block works if the basic setting is enabled
- drag: true - prohibits to push the piston block works if the basic setting is enabled
- min-x: 25 - minimum position of the block on X, or, if the subject of the position of the player, where are these settings, beyond all settings true
- max-x: 50 - maximum position of the block on X, or, if the subject of the position of the player, where are these settings, beyond all settings true
- min-z: -150 - minimal position of the block Z or, if the subject of the position of the player, where are these settings, beyond all settings true
- max-z: -125 - maximum position block Z or, if the subject of the position of the player, where are these settings, beyond all settings true
- min-y: 100 - minimum position of the block Y, or, if the subject of the position of the player, where are these settings, beyond all settings true
- max-y: 125 - maximum position of the block Y, or, if the subject of the position of the player, where are these settings, beyond all settings true
- biomes: - list of biomes, where are these settings in the rest all set to true if the list biomes empty, the settings are in effect in all biomes
- - [biome_name]
- worlds: - list of the worlds, where are these settings
- - [world_name]
- [settings name/id block/subject, if id: not specified]
- ...
To verify the settings, use that. - lokiblocker.place.allow.all - allow the holder to install all blocks
- lokiblocker.place.allow.<id[.data]> - allow the holder to install prohibited block
- lokiblocker.break.allow.all - allow the holder to destroy all blocks
- lokiblocker.break.allow.<id[.data]> - allow the holder to destroy prohibited block
- lokiblocker.craft.allow.all - allow the holder of all of the recipes Kraft
- lokiblocker.craft.allow.<id[.data]> - allow the holder of craft prohibited item/unit
- lokiblocker.invContent.allow.all - allow the holder to carry in your bag all objects
- lokiblocker.invContent.allow.<id[.data]> - allow the holder to carry in your bag prohibited unit/item
- lokiblocker.invDelete.allow.all - prevents removal from the inventory of prohibited items/units
- lokiblocker.invDelete.allow.<id[.data]> - prevents removal of the equipment of a specific subject/block
- lokiblocker.pickup.allow.all - allow the holder to pick up any loot
- lokiblocker.pickup.allow.<id[.data]> - allow the holder to select prohibited unit/item
- lokiblocker.drop.allow.all - allow the holder to throw any loot
- lokiblocker.drop.allow.<id[.data]> - allow the holder to throw prohibited unit/item
- lokiblocker.intLItem.allow.all - allow the holder to use all the items(LMB)
- lokiblocker.intLItem.allow.<id[.data]> - allow the holder to use a forbidden item(LMB)
- lokiblocker.intRItem.allow.all - allow the holder to use all the items(RMB)
- lokiblocker.intRItem.allow.<id[.data]> - allow the holder to use a forbidden item(RMB)
- lokiblocker.intLBlock.allow.all - allow the holder to interact with all the blocks(LMB)
- lokiblocker.intLBlock.allow.<id[.data]> - allow the owner to interact with a banned unit(LMB)
- lokiblocker.intRBlock.allow.all - allow the holder to interact with all the blocks(RMB)
- lokiblocker.intRBlock.allow.<id[.data]> - allow the owner to interact with a banned unit(RMB)
- lokiblocker.entity.attack.allow.all - allow the holder of damage all entities
- lokiblocker.entity.attack.allow.<entity_type> - allow the holder damage all entities of a given type
- lokiblocker.entity.interact.allow.all - allow the holder to interact with all entities
- lokiblocker.entity.interact.allow.<entity_type> - allow the holder to interact with all entities of a given type
- lokiblocker.chat.allow.all - allow in the chat any words
- lokiblocker.chat.allow.<word> - allow this word in the chat
- lokiblocker.custom.place.allow.all - allow the holder to install all blocks manual configuration
- lokiblocker.custom.place.allow.<id[D<data>][U<damage>]> - allow the holder to install prohibited unit manual configuration
- lokiblocker.custom.break.allow.all - allow the holder to destroy all blocks
- lokiblocker.custom.break.allow.<id[D<data>][U<damage>]> - allow the holder to destroy prohibited block
- lokiblocker.custom.craft.allow.all - allow the holder of all of the recipes Kraft
- lokiblocker.custom.craft.allow.<id[D<data>][U<damage>]> - allow the holder of craft prohibited item/unit
- lokiblocker.custom.inventory.allow.all - allow the holder to carry in your bag all objects
- lokiblocker.custom.inventory.allow.<id[D<data>][U<damage>]> - allow the holder to carry in your bag prohibited unit/item
- lokiblocker.custom.pickup.allow.all - allow the holder to pick up any loot
- lokiblocker.custom.pickup.allow.<id[D<data>][U<damage>]> - allow the holder to select prohibited unit/item
- lokiblocker.custom.drop.allow.all - allow the holder to throw any loot
- lokiblocker.custom.drop.allow.<id[D<data>][U<damage>]> - allow the holder throw prohibited unit/item
- lokiblocker.custom.intLItem.allow.all - allow the holder to use all the items(LMB)
- lokiblocker.custom.intLItem.allow.<id[.data]> - allow the holder to use a forbidden item(LMB)
- lokiblocker.custom.intRItem.allow.all - allow the holder to use all the items(RMB)
- lokiblocker.custom.intRItem.allow.<id[.data]> - allow the holder to use a forbidden item(RMB)
- lokiblocker.custom.intLBlock.allow.all - allow the holder to interact with all the blocks(LMB)
- lokiblocker.custom.intLBlock.allow.<id[.data]> - allow the owner to interact with a banned unit(LMB)
- lokiblocker.custom.intRBlock.allow.all - allow the holder to interact with all the blocks(RMB)
- lokiblocker.custom.intRBlock.allow.<id[.data]> - allow the owner to interact with a banned unit(RMB)
- lokiblocker.custom.invContent.allow.<id[.data]> - allow the owner to content in inventory banned unit
- lokiblocker.custom.invContent.allow.all - allow the owner to content in inventory fll items
- lokiblocker.custom.invDelete.allow.<id[.data]> - disable delete forbidden item from owner inventory
- lokiblocker.custom.invDelete.allow.all - disable delete all forbidden items from owner inventory
- lokiblocker.list.allow.<group_name> - resolves to do anything with the objects/blocks from this group
Permissions:
Еще летом нашел недочет в описании прав, который мне подпортил нервишки. Добавьте еще эти:
lokiblocker.custom.invContent.allow.<id[.data]> lokiblocker.custom.invDelete.allow.<id[.data]> lokiblocker.custom.invContent.allow.all lokiblocker.custom.invDelete.allow.all
Спасибо Вам за плагин! С его помощью удалось запретить в мире установку ракет из мода Galacticraft везде, кроме области с космодромом (вход туда платный). На планетах ограничений нет.
@jeffvs
Попробуй использовать кодировку UTF-8.
парни помогите исправить: в фале language вместо русских слов пишется вот такая кракозябра " craft: Данный крафт запрещСвЂР Р…! " пробовал переписывать в ручную и на русском и на латинице.При релоаде опять тоже самое.Переписывал файл и на компе и потом заливал на фтп-результат тот же. как я понимаю все дело в кодировке. На машине стоит линукс-понятия не имею какой. Если можно что-то сделать с этим плз хелп.
очень полезный плагин,спс за него.Вот бы еще добавить комманду Reload для него.
@Br0nner
Ну так Грэг сказал, он участвовал в написании Форджа. Можете назвать это модом для управления запретами на использование блоков и предметов)
@Krysinski
Чего-чего??? Схожего плагина для форджа? он то здесь причем? Плагины для баккита никак с форджем не взаимодействуют насколько мне известно. Фордж это мост для модов!
@Ission
как сказал Greg, фордж имеет всё необходимое для написания схожего плагина (и других плагинов также) для форджа. Возможно Вы будете первым, кто реализует это на таком же качественном уровне как Ваш lokiblocker.
@Ission
Уважаемый, скажите, можно ли обойти эти ограничения? Переписка на форуме ГТ мало чего дала. Мы используем mcpc+ на сервере. Возможно ли получать ID для работы плагина из ядра mcpc+ в нормальном виде?
@Ission
Как хорошо, что Вы мне ответили, я уже не надеялся и написал сегодня GregoriusT))). Мы пробовали менять тип на int: эффекта нет, Вы правы насчёт кода сервера, здесь мы безсильны. Говоря "предметы" я имел ввиду блоки. Если в списке нет блоков 4059:*, то и с трубами (именно эти блоки имеют 4-х значный DATA) проблем нет. Также заметил интересную особенность: в списке 4059:1 блокируется полностью (наличие в инв, установка, касание и тд), а трубы эти можно крафтить, перекладывать; блокируется только установка и ЛКМ/ПКМ на установленном блоке.
Вот такие интересные эффекты. Проблема пока актуальна.
@Krysinski
Нет. Data в коде сервера имеет тип byte и предназначена не столько для предметов, сколько для блоков. Вместо Data для предметов используйте Damage.
В дополнение к предыдущему сообщению:
В коде плагина полю ID присваивается тип int, а полю DATA присваивается тип byte, что и вносит эти ограничения на числа в ID предметов типа 4059:1801.
Возможно ли заменить формат byte на int в коде? Думаю это решит проблему)
P.S. Я к программированию отношение имею самое косвенное.
Здравствуйте, у нас на сервере возникла проблема с lokiblocker. Плагин блокирует предметы, которых нет в списке запрещенных. Это предметы из мода GregTech, и все они имеют 4-х значный номер после основного ID, например 4059:1801. При этом, в списке запрещенных предметов есть несколько из данного мода, например 4059:1. Мы предполагаем, что плагин lokiblocker некорректно воспринимает ID типа 4059:1801 из-за каких-то внутренних ограничений на формат полей ID и DATA, указываемых в списке предметов для блокировки: data: 7 - data not required, from 0 to 127, -1 is equivalent to its lack (возможно связано с этим ограничением от 0 до 127) Возможно при обработке ID предмета типа 4059:1801 блокер воспринимает его как предмет с ID 4059:1 или что-либо еще. Прошу Вас ответить мне и помочь нашей команде разобраться с этой проблемой.
Спасибо за внимание.
Я наверно устал после работы сильно. На русском же можно было)
Hi, we have a problem with lokiblocker 0.5.1. Items with some ID's are not in the list, but blocked by lokiblocker: 4059:1800 4059:1801 4059:1802 4059:1803 4059:1850 4059:1851 4059:1852 4059:1853 4059:1900 4059:1901 4059:1950
ID's are from Gregtechmod and have four numbers in "data". Some items with ID 4059 are in the list.yml. Please help us! Soryy for my english :)
@Ission, а можешь скинуть все описание, только на русском?
@Br0nner
Тут слишком большой текст, я его просто кинул в автопереводчик, а потом поправил то, что явно бросилось в глаза.
removes a plug all the blocks in podrguzhaemom chunk of the list - WTF????
installation of blocks - LOL xD
С такими познаниями английского языка, лучше бы писал на русском, а то вообще теперь не понятно почти ничего из написанного.
@photocritic
I didn't understand you.
Где можно скачать исходники?
Приятно что такие коменты оставляют отечественным разработчикам ))