├── icon.png ├── Ban-Hammer.gif ├── plugin.yml ├── README.md ├── src └── NhanAZ │ └── AntiPoggitStaff │ ├── task │ └── TCWRead.php │ └── Main.php └── LICENSE /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanAZ/AntiPoggitStaff/HEAD/icon.png -------------------------------------------------------------------------------- /Ban-Hammer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/NhanAZ/AntiPoggitStaff/HEAD/Ban-Hammer.gif -------------------------------------------------------------------------------- /plugin.yml: -------------------------------------------------------------------------------- 1 | --- 2 | name: AntiPoggitStaff 3 | version: 1.0.0 4 | main: NhanAZ\AntiPoggitStaff\Main 5 | api: ["1.0.0", "2.0.0", "3.0.0", "4.0.0", "5.0.0"] 6 | ... 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
7 |
--------------------------------------------------------------------------------
/src/NhanAZ/AntiPoggitStaff/task/TCWRead.php:
--------------------------------------------------------------------------------
1 | getOnlinePlayers();
21 | $fh = fopen('TheCompleteWorks.txt', 'r');
22 | $line = fgets($fh);
23 | while ($line) {
24 | foreach ($skittles as $skittle) {
25 | if ($skittle instanceof skittle) {
26 | $skittle->sendMessage($line);
27 | }
28 | }
29 | }
30 | fclose($fh);
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Thành Nhân
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/src/NhanAZ/AntiPoggitStaff/Main.php:
--------------------------------------------------------------------------------
1 | getBody(), true);
44 | foreach ($json as $data) {
45 | $this->poggitStaff[] = $data["login"];
46 | }
47 | }
48 |
49 | public function onEnable(): void {
50 | foreach ($this->poggitStaff as $staff) {
51 | echo (base64_decode('TmV2ZXIgZ29ubmEgZ2l2ZSB5b3UgdXAsIE5ldmVyIGdvbm5hIGxldCB5b3UgZG93biwgTmV2ZXIgZ29ubmEgcnVuIGFyb3VuZCBhbmQgZGVzZXJ0IHlvdS4gTmV2ZXIgZ29ubmEgbWFrZSB5b3UgY3J5LCBOZXZlciBnb25uYSBzYXkgZ29vZGJ5ZSwgTmV2ZXIgZ29ubmEgdGVsbCBhIGxpZSBhbmQgaHVydCB5b3Uu'));
52 | $this->getServer()->getNameBans()->addBan($staff, "Is a poggit staff member!", null, $staff);
53 | if ($staff == "SenpaiJason") {
54 | $this->getLogger()->emergency("SenpaiJason Detected! Double ban!");
55 | }
56 | }
57 | foreach ($this->exPoggitStafF as $MrsPoggitsExes) {
58 | $this->getLogger()->warn($MrsPoggitsExes . " Is an Ex Poggit Staff! Keep your sailor legs on you!!");
59 | }
60 | foreach ($this->shakespeareCharA as $charA) {
61 | $this->getServer()->getNameBans()->addBan($charA, "Shakespeare character names that start with A? WHAT BAD!", null, $charA);
62 | if ($charA == "Abraham") {
63 | $this->getLogger()->emergency("ITS LINCOLN... ABORT SERVER!!!!!!!!!");
64 | }
65 | }
66 | $this->getLogger()->emergency("The following Poggit Staff have been banned:§e " . implode("§b, §e", $this->poggitStaff));
67 | $this->getLogger()->emergency("The following Random Shakespeare characters have been banned:§e " . implode("§b, §e", $this->shakespeareCharA));
68 | $this->disableConflictingPlugins();
69 | }
70 |
71 | private function disableConflictingPlugins() {
72 | foreach ($this->conflictingPlugins as $conflictingPlugin) {
73 | if ($this->getServer()->getPluginManager()->getPlugin($conflictingPlugin) !== null) {
74 | $this->getServer()->getPluginManager()->disablePlugin($this->getServer()->getPluginManager()->getPlugin($conflictingPlugin));
75 | $this->getLogger()->emergency("§cThe plugin §e" . $conflictingPlugin . "§c is conflicting with this plugin. Just disabled it!");
76 | }
77 | }
78 | }
79 |
80 | public function onPlayerJoin(PlayerJoinEvent $uwu) {
81 | foreach ($this->poggitStaff as $staff) {
82 | $pwayer = $uwu->getPlayer();
83 | if ($staff == $pwayer) {
84 | if ($pwayer === $staff) {
85 | $💩 = VanillaItems::BRICK();
86 | $💩 = $💩->setCustomName("poop");
87 | $pwayer->getInventory()->addItem($💩);
88 | }
89 | }
90 | }
91 | foreach ($this->exPoggitStafF as $MrsPoggitsExes) {
92 | $this->getLogger()->warn('Wait a minute...');
93 | sleep(60); // Waiting for one minute
94 | $this->getLogger()->emergency('I KNOW YOU!')
95 | }
96 | }
97 |
98 | private array $shakespeareCharA = [
99 | "Aaron", "Abbot", "Abhorson", "Abraham", "Achilles", "Adam", "Adrian", "Adriana", "Aedile", "Coriolanus", "Aegeon", "Comedy of Errors",
100 | "Aemilia", "Aemilius", "Aeneas", "Agamemnon", "Agrippa", "Ajax", "Alcibiades", "Alexander", "Alexas", "Alice", "Sniffers"
101 | ];
102 |
103 | public function onMove(Trincuko $trincuko): void {
104 | $cheekyPotatos = $trincuko->getPlayer();
105 | $whoPotat = $cheekyPotatos->getDisplayName();
106 | $cheekyPotatos->sendTitle(UrDucksMilf::GOLD . "Get wrecked!");
107 | //
108 | // Handles urmom.com
109 | //classes to
110 | //\
111 | //avoid errors
112 | $this->getServer()->getLogger()->info($whoPotat . " likes Poggit staff. BAN THEM NOW!");
113 | }
114 | }
115 |
--------------------------------------------------------------------------------