Skip to content

Commit

Permalink
changed plugin name, namespaces, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinHDev committed Jul 29, 2022
1 parent 96bba99 commit 82e6e8d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AntiXRay
# ActualAntiXRay

This is an actual AntiXRay plugin for PocketMine-MP.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "colinhdev/antixray",
"name": "colinhdev/actualantixray",
"require": {
"pocketmine/pocketmine-mp": "dev-stable"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ActualAntiXRay
main: ColinHDev\AntiXRay\AntiXRay
main: ColinHDev\ActualAntiXRay\ActualAntiXRay
version: "1.0.0"

api: 4.0.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace ColinHDev\AntiXRay;
namespace ColinHDev\ActualAntiXRay;

use ColinHDev\AntiXRay\listener\DataPacketSendListener;
use ColinHDev\AntiXRay\listener\PlayerCreationListener;
use ColinHDev\ActualAntiXRay\listener\DataPacketSendListener;
use ColinHDev\ActualAntiXRay\listener\PlayerCreationListener;
use pocketmine\plugin\PluginBase;
use pocketmine\utils\SingletonTrait;

class AntiXRay extends PluginBase {
class ActualAntiXRay extends PluginBase {
use SingletonTrait;

public function onEnable() : void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ColinHDev\AntiXRay;
namespace ColinHDev\ActualAntiXRay;

use pocketmine\utils\Config;
use pocketmine\utils\SingletonTrait;
Expand All @@ -15,8 +15,8 @@ class ResourceManager {
private array $worlds = [];

public function __construct() {
AntiXRay::getInstance()->saveResource("config.yml");
$config = new Config(AntiXRay::getInstance()->getDataFolder() . "config.yml", Config::YAML);
ActualAntiXRay::getInstance()->saveResource("config.yml");
$config = new Config(ActualAntiXRay::getInstance()->getDataFolder() . "config.yml", Config::YAML);
$mode = $config->get("mode", "blacklist");
if ($mode === "blacklist") {
$this->default = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace ColinHDev\AntiXRay\listener;
namespace ColinHDev\ActualAntiXRay\listener;

use ColinHDev\AntiXRay\ResourceManager;
use ColinHDev\ActualAntiXRay\ResourceManager;
use pocketmine\event\Listener;
use pocketmine\event\server\DataPacketSendEvent;
use pocketmine\math\Vector3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace ColinHDev\AntiXRay\listener;
namespace ColinHDev\ActualAntiXRay\listener;

use ColinHDev\AntiXRay\player\Player;
use ColinHDev\ActualAntiXRay\player\Player;
use pocketmine\event\Listener;
use pocketmine\event\player\PlayerCreationEvent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace ColinHDev\AntiXRay\player;
namespace ColinHDev\ActualAntiXRay\player;

use ColinHDev\AntiXRay\ResourceManager;
use ColinHDev\AntiXRay\tasks\ChunkRequestTask;
use ColinHDev\ActualAntiXRay\ResourceManager;
use ColinHDev\ActualAntiXRay\tasks\ChunkRequestTask;
use pocketmine\network\mcpe\cache\ChunkCache;
use pocketmine\network\mcpe\compression\CompressBatchPromise;
use pocketmine\network\mcpe\compression\Compressor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace ColinHDev\AntiXRay\tasks;
namespace ColinHDev\ActualAntiXRay\tasks;

use ColinHDev\AntiXRay\utils\SubChunkExplorer;
use ColinHDev\ActualAntiXRay\utils\SubChunkExplorer;
use pocketmine\block\VanillaBlocks;
use pocketmine\math\Facing;
use pocketmine\math\Vector3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace ColinHDev\AntiXRay\utils;
namespace ColinHDev\ActualAntiXRay\utils;

use pocketmine\world\format\Chunk;
use pocketmine\world\utils\SubChunkExplorer as PMMPSubChunkExplorer;
Expand Down

0 comments on commit 82e6e8d

Please sign in to comment.