fengberd / FHiddenMine

The first anti X-Ray plugin in PocketMine!
21 stars 0 forks source link

我先用中文说几句

1.严禁将此插件转载到任何论坛、贴吧、QQ群,我不想被小学生倒卖
2.严禁修改此插件版权
3.严禁倒卖此插件
4.使用中出现问题请不要找我
5.我知道说了白说但还是想说一下,小天才不遵守上面几条请自行右上角

Description

It's the best plugin to hide ores and make x-ray modscript be invalid.
This plugin check and hide ores that under the Y position you set when PocketMine sending a chunk to players(Disabled for ops).(default:64)

Commands

/hidemine - Display help message
/hidemine add - Add a world to protect list
/hidemine remove - Remove a world from protect list
/hidemine list - Display the worlds in protect list
/hidemine reload - Reload config.yml

WARNING

You should edit pocketmine.yml else this plugin will not work.

#...
network:
 batch-threshold: -1
#...
chunk-sending:
 cache-chunks: false
#...

Don't add any worlds format NOT MCRegion in protect list!
If you do,your world will be broken!
(Anvil world file is .mca,and MCRegion world file is .mcr,this plugin can only work with MCRegion worlds)

Other

Add follow codes into the beganning of function 'requestChunk' in Level.php may make your server run faster.

if(!$player->isOp() && in_array($this->getFolderName(),\FHiddenMine\Main::getInstance()->ProtectWorlds))
{
    $player->sendChunk($x,$z,'');
    return;
}