diff --git a/.php-cs-fixer.cache b/.php-cs-fixer.cache index f381520..6475345 100644 --- a/.php-cs-fixer.cache +++ b/.php-cs-fixer.cache @@ -1 +1 @@ -{"php":"8.1.25","version":"3.22.0","indent":"\t","lineEnding":"\n","rules":{"align_multiline_comment":{"comment_type":"phpdocs_only"},"array_indentation":true,"array_syntax":{"syntax":"short"},"binary_operator_spaces":{"default":"single_space"},"blank_line_after_namespace":true,"blank_line_after_opening_tag":true,"blank_line_before_statement":{"statements":["declare"]},"braces":{"allow_single_line_closure":false,"position_after_anonymous_constructs":"same","position_after_control_structures":"same","position_after_functions_and_oop_constructs":"same"},"cast_spaces":{"space":"single"},"concat_space":{"spacing":"one"},"declare_strict_types":true,"elseif":true,"global_namespace_import":{"import_constants":true,"import_functions":true,"import_classes":null},"header_comment":{"comment_type":"comment","header":"\r\n ____ _ __ _____\r\n| _ \\ ___ (_) _ __ \/ _| _ _ |_ _| ___ __ _ _ __ ___\r\n| |_) | \/ _ \\ | | | '_ \\ | |_ | | | | | | \/ _ \\ \/ _` | | '_ ` _ \\\r\n| _ < | __\/ | | | | | | | _| | |_| | | | | __\/ | (_| | | | | | | |\r\n|_| \\_\\ \\___| |_| |_| |_| |_| \\__, | |_| \\___| \\__,_| |_| |_| |_|\r\n |___\/\r\n\r\nThis program is free software: you can redistribute it and\/or modify\r\nit under the terms of the GNU Lesser General Public License as published by\r\nthe Free Software Foundation, either version 3 of the License, or\r\n(at your option) any later version.\r\n\r\n@author ReinfyTeam\r\n@link https:\/\/github.com\/ReinfyTeam\/\r\n\r\n","location":"after_open"},"indentation_type":true,"native_function_invocation":{"scope":"namespaced","include":["@all"]},"no_closing_tag":true,"no_empty_phpdoc":true,"no_superfluous_phpdoc_tags":{"allow_mixed":true},"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"no_whitespace_in_blank_line":true,"no_unused_imports":true,"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"alpha"},"phpdoc_line_span":{"property":"single","method":null,"const":null},"phpdoc_trim":true,"phpdoc_trim_consecutive_blank_line_separation":true,"return_type_declaration":{"space_before":"one"},"single_import_per_statement":true,"strict_param":true,"unary_operator_spaces":true},"hashes":{"src\\checks\\autoclick\\AutoClickA.php":"51a73fc991bf6773f4313b154605d46c","src\\checks\\autoclick\\AutoClickB.php":"857e16a051fcab02a8689a504e25b6ad","src\\checks\\autoclick\\AutoClickC.php":"4299517fd2b2246232f6dec2db733cd9","src\\checks\\behaivor\\AntiBot.php":"235089d17202ad71d9f3053700a5b263","src\\checks\\behaivor\\EditionFaker.php":"67fffcda310b71b3709a728f0b9c5e2a","src\\checks\\behaivor\\FastEat.php":"ce596dbf00732e85afaab950c3120822","src\\checks\\behaivor\\FastThrow.php":"2dbbce213564c064814bde6fe3cfe098","src\\checks\\behaivor\\InstaBreak.php":"d476212684a5279eb9942eb1da4cc2c3","src\\checks\\behaivor\\ProxyBot.php":"b5e299fb0349eb045551a62de00db4d5","src\\checks\\Check.php":"caa2ddabd5010d2e46a7d62dc32c73eb","src\\checks\\fly\\FlyA.php":"60fb3e06ada7bcd72d14fe7de8c472dc","src\\checks\\fly\\FlyB.php":"5dd1e873a338fb291f1cdc10502b2d0b","src\\checks\\fly\\FlyC.php":"e538df009ccff7a19c11b37a24566de2","src\\checks\\killaura\\KillAuraA.php":"f29c8e808cc52916c8bb9f6b2a22f80a","src\\checks\\killaura\\KillAuraB.php":"3cb6155144a3fc0c1be2840ba77eb40f","src\\checks\\killaura\\KillAuraC.php":"340b9b18adadbef18e5b47c6975156ff","src\\checks\\reach\\ReachA.php":"c6759582c5109a730c8ba0698214a35a","src\\checks\\reach\\ReachB.php":"b131179fcbca99f91ba2b0b16429addb","src\\checks\\scaffold\\ScaffoldA.php":"3fa89053decd2cadc8f35f7adb441dbf","src\\checks\\scaffold\\ScaffoldB.php":"608c04c6912145885ab60067fb283b61","src\\checks\\scaffold\\ScaffoldC.php":"baab336fd12d8f2d07fb0e0882050b48","src\\checks\\speed\\SpeedA.php":"c392fd296226543d45b92d42f7710c8c","src\\checks\\speed\\SpeedB.php":"1fe039d2b533c0203e140dc57d8b7495","src\\command\\ZuriLiteCommand.php":"018b09ba9bbf30c7ced34f4ae0746797","src\\config\\ConfigManager.php":"c0029b75e712a8758e8111887ba94d93","src\\config\\ConfigPaths.php":"c9f7f4c13ce8d4b8066d0443eaf649d3","src\\events\\BanEvent.php":"e8ad7d472b0ba27bcd2217b3f3a89c87","src\\events\\KickEvent.php":"84565e8e96f2e33df118fbed7b2343c1","src\\events\\ServerLagEvent.php":"384e815ffd6fa1f48481389e00fc35d9","src\\listener\\PlayerListener.php":"ba315471e7fd325f99478bfe9a575874","src\\listener\\ServerListener.php":"aca2b1040971679deb9d52c018d11380","src\\player\\IPlayerAPI.php":"bcb2a1c1a53d7aa983ffe4b05e31e5c9","src\\player\\PlayerAPI.php":"d63b3767c44d4eae8db694655494167a","src\\task\\ServerTickTask.php":"507a34ad1cd5dbfcac58492265c91d10","src\\task\\UpdateCheckerAsyncTask.php":"55774356243f01221a03ae37be09b202","src\\utils\\BlockUtil.php":"0274ace4de6d27c4b9d8484303b00154","src\\utils\\CharUtil.php":"1d4285b8eb359d09b2c12ee9d87e5f93","src\\utils\\discord\\Discord.php":"f3479af2a7c0dd411dfc9c63fee8655c","src\\utils\\discord\\DiscordWebhookException.php":"dc4a257ab1ce7076136a8cad5f8c9a98","src\\utils\\discord\\Embed.php":"420cc2cb60ab7d2d334860d9c4bfff27","src\\utils\\discord\\Message.php":"561bf1330b018b8f0f62fe402dea54c1","src\\utils\\discord\\Webhook.php":"0603224815ec47de8a65f406b2973eed","src\\utils\\discord\\WebhookSendTask.php":"2098359fd7419ea8f0357457880e0a32","src\\utils\\forms\\CustomForm.php":"56f63a1869073f8675a4163342742bca","src\\utils\\forms\\Form.php":"ea7f4d8e11bcc00993b89d2bc497e5db","src\\utils\\forms\\FormAPI.php":"d6336166f2aaf6702621012094444200","src\\utils\\forms\\FormSender.php":"05863c53c65a7213389c928cae4ad065","src\\utils\\forms\\ModalForm.php":"77aa94a47e5bee7b97b51c46866ce286","src\\utils\\forms\\SimpleForm.php":"7f65eaa6a3260e89ec6446f53548c556","src\\utils\\InternetAddress.php":"ff409d055668d489f7d0d5a355babfe2","src\\utils\\MathUtil.php":"1d8275c1299778a75597b7a6126fe270","src\\utils\\PermissionManager.php":"9051604161a58dcd0d13032d424dbe20","src\\utils\\ReplaceText.php":"ca72d3ba68687f60a25df265eb104f0d","src\\utils\\Utils.php":"68084914a6a6c92fb3ebda4ea3d18f90","src\\ZuriLiteAC.php":"0290dbf749bdef826574e8774fea0e63","src\\checks\\behaivor\\Phase.php":"1a93d6a943bf15b7be9850bc49118d98"}} \ No newline at end of file +{"php":"8.1.25","version":"3.22.0","indent":"\t","lineEnding":"\n","rules":{"align_multiline_comment":{"comment_type":"phpdocs_only"},"array_indentation":true,"array_syntax":{"syntax":"short"},"binary_operator_spaces":{"default":"single_space"},"blank_line_after_namespace":true,"blank_line_after_opening_tag":true,"blank_line_before_statement":{"statements":["declare"]},"braces":{"allow_single_line_closure":false,"position_after_anonymous_constructs":"same","position_after_control_structures":"same","position_after_functions_and_oop_constructs":"same"},"cast_spaces":{"space":"single"},"concat_space":{"spacing":"one"},"declare_strict_types":true,"elseif":true,"global_namespace_import":{"import_constants":true,"import_functions":true,"import_classes":null},"header_comment":{"comment_type":"comment","header":"\r\n ____ _ __ _____\r\n| _ \\ ___ (_) _ __ \/ _| _ _ |_ _| ___ __ _ _ __ ___\r\n| |_) | \/ _ \\ | | | '_ \\ | |_ | | | | | | \/ _ \\ \/ _` | | '_ ` _ \\\r\n| _ < | __\/ | | | | | | | _| | |_| | | | | __\/ | (_| | | | | | | |\r\n|_| \\_\\ \\___| |_| |_| |_| |_| \\__, | |_| \\___| \\__,_| |_| |_| |_|\r\n |___\/\r\n\r\nThis program is free software: you can redistribute it and\/or modify\r\nit under the terms of the GNU Lesser General Public License as published by\r\nthe Free Software Foundation, either version 3 of the License, or\r\n(at your option) any later version.\r\n\r\n@author ReinfyTeam\r\n@link https:\/\/github.com\/ReinfyTeam\/\r\n\r\n","location":"after_open"},"indentation_type":true,"native_function_invocation":{"scope":"namespaced","include":["@all"]},"no_closing_tag":true,"no_empty_phpdoc":true,"no_superfluous_phpdoc_tags":{"allow_mixed":true},"no_trailing_whitespace":true,"no_trailing_whitespace_in_comment":true,"no_whitespace_in_blank_line":true,"no_unused_imports":true,"ordered_imports":{"imports_order":["class","function","const"],"sort_algorithm":"alpha"},"phpdoc_line_span":{"property":"single","method":null,"const":null},"phpdoc_trim":true,"phpdoc_trim_consecutive_blank_line_separation":true,"return_type_declaration":{"space_before":"one"},"single_import_per_statement":true,"strict_param":true,"unary_operator_spaces":true},"hashes":{"src\\checks\\autoclick\\AutoClickA.php":"51a73fc991bf6773f4313b154605d46c","src\\checks\\autoclick\\AutoClickB.php":"857e16a051fcab02a8689a504e25b6ad","src\\checks\\autoclick\\AutoClickC.php":"4299517fd2b2246232f6dec2db733cd9","src\\checks\\behaivor\\AntiBot.php":"235089d17202ad71d9f3053700a5b263","src\\checks\\behaivor\\EditionFaker.php":"67fffcda310b71b3709a728f0b9c5e2a","src\\checks\\behaivor\\FastEat.php":"ce596dbf00732e85afaab950c3120822","src\\checks\\behaivor\\FastThrow.php":"2dbbce213564c064814bde6fe3cfe098","src\\checks\\behaivor\\InstaBreak.php":"d476212684a5279eb9942eb1da4cc2c3","src\\checks\\behaivor\\ProxyBot.php":"b5e299fb0349eb045551a62de00db4d5","src\\checks\\Check.php":"caa2ddabd5010d2e46a7d62dc32c73eb","src\\checks\\fly\\FlyA.php":"60fb3e06ada7bcd72d14fe7de8c472dc","src\\checks\\fly\\FlyB.php":"5dd1e873a338fb291f1cdc10502b2d0b","src\\checks\\fly\\FlyC.php":"e538df009ccff7a19c11b37a24566de2","src\\checks\\killaura\\KillAuraA.php":"f29c8e808cc52916c8bb9f6b2a22f80a","src\\checks\\killaura\\KillAuraB.php":"3cb6155144a3fc0c1be2840ba77eb40f","src\\checks\\killaura\\KillAuraC.php":"340b9b18adadbef18e5b47c6975156ff","src\\checks\\reach\\ReachA.php":"c6759582c5109a730c8ba0698214a35a","src\\checks\\reach\\ReachB.php":"b131179fcbca99f91ba2b0b16429addb","src\\checks\\scaffold\\ScaffoldA.php":"3fa89053decd2cadc8f35f7adb441dbf","src\\checks\\scaffold\\ScaffoldB.php":"608c04c6912145885ab60067fb283b61","src\\checks\\scaffold\\ScaffoldC.php":"baab336fd12d8f2d07fb0e0882050b48","src\\checks\\speed\\SpeedA.php":"c392fd296226543d45b92d42f7710c8c","src\\checks\\speed\\SpeedB.php":"1fe039d2b533c0203e140dc57d8b7495","src\\command\\ZuriLiteCommand.php":"018b09ba9bbf30c7ced34f4ae0746797","src\\config\\ConfigManager.php":"c0029b75e712a8758e8111887ba94d93","src\\config\\ConfigPaths.php":"c9f7f4c13ce8d4b8066d0443eaf649d3","src\\events\\BanEvent.php":"e8ad7d472b0ba27bcd2217b3f3a89c87","src\\events\\KickEvent.php":"84565e8e96f2e33df118fbed7b2343c1","src\\events\\ServerLagEvent.php":"384e815ffd6fa1f48481389e00fc35d9","src\\listener\\PlayerListener.php":"ba315471e7fd325f99478bfe9a575874","src\\listener\\ServerListener.php":"aca2b1040971679deb9d52c018d11380","src\\player\\IPlayerAPI.php":"bcb2a1c1a53d7aa983ffe4b05e31e5c9","src\\player\\PlayerAPI.php":"985c9a726ab5da59309e73fe6504e0b0","src\\task\\ServerTickTask.php":"507a34ad1cd5dbfcac58492265c91d10","src\\task\\UpdateCheckerAsyncTask.php":"55774356243f01221a03ae37be09b202","src\\utils\\BlockUtil.php":"0274ace4de6d27c4b9d8484303b00154","src\\utils\\CharUtil.php":"1d4285b8eb359d09b2c12ee9d87e5f93","src\\utils\\discord\\Discord.php":"f3479af2a7c0dd411dfc9c63fee8655c","src\\utils\\discord\\DiscordWebhookException.php":"dc4a257ab1ce7076136a8cad5f8c9a98","src\\utils\\discord\\Embed.php":"420cc2cb60ab7d2d334860d9c4bfff27","src\\utils\\discord\\Message.php":"561bf1330b018b8f0f62fe402dea54c1","src\\utils\\discord\\Webhook.php":"0603224815ec47de8a65f406b2973eed","src\\utils\\discord\\WebhookSendTask.php":"2098359fd7419ea8f0357457880e0a32","src\\utils\\forms\\CustomForm.php":"56f63a1869073f8675a4163342742bca","src\\utils\\forms\\Form.php":"ea7f4d8e11bcc00993b89d2bc497e5db","src\\utils\\forms\\FormAPI.php":"d6336166f2aaf6702621012094444200","src\\utils\\forms\\FormSender.php":"05863c53c65a7213389c928cae4ad065","src\\utils\\forms\\ModalForm.php":"77aa94a47e5bee7b97b51c46866ce286","src\\utils\\forms\\SimpleForm.php":"7f65eaa6a3260e89ec6446f53548c556","src\\utils\\InternetAddress.php":"ff409d055668d489f7d0d5a355babfe2","src\\utils\\MathUtil.php":"1d8275c1299778a75597b7a6126fe270","src\\utils\\PermissionManager.php":"9051604161a58dcd0d13032d424dbe20","src\\utils\\ReplaceText.php":"ca72d3ba68687f60a25df265eb104f0d","src\\utils\\Utils.php":"68084914a6a6c92fb3ebda4ea3d18f90","src\\ZuriLiteAC.php":"0290dbf749bdef826574e8774fea0e63","src\\checks\\behaivor\\Phase.php":"1a93d6a943bf15b7be9850bc49118d98"}} \ No newline at end of file diff --git a/resources/config.yml b/resources/config.yml index 1779b27..c279706 100644 --- a/resources/config.yml +++ b/resources/config.yml @@ -127,4 +127,10 @@ zuri: ban: false kick: true flag: false + phase: + enable: true + maxvl: 1 + ban: false + kick: true + flag: false ... \ No newline at end of file diff --git a/src/player/PlayerAPI.php b/src/player/PlayerAPI.php index 93cf1a7..5b933e4 100644 --- a/src/player/PlayerAPI.php +++ b/src/player/PlayerAPI.php @@ -31,6 +31,7 @@ use pocketmine\player\SurvivalBlockBreakHandler; use ReflectionProperty; use ReinfyTeam\ZuriLite\ZuriLiteAC; +use function intval; use function microtime; class PlayerAPI implements IPlayerAPI { @@ -121,7 +122,7 @@ public function setActionBreakingSpecial(bool $data) : void { } public function isCurrentChunkIsLoaded() : bool { - return $this->getPlayer()->getWorld()->isChunkLoaded($this->getPlayer()->getLocation()->getX(), $this->getPlayer()->getLocation()->getZ()); + return $this->getPlayer()->getWorld()->isChunkLoaded(intval($this->getPlayer()->getLocation()->getX()), intval($this->getPlayer()->getLocation()->getZ())); } //Place many blocks just one time place (This can check FILLBLOCK PLAYER)