SHARE
TWEET

Untitled

a guest Aug 23rd, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-51-          $ba = $b->getSide(Vector3::SIDE_NORTH, 1);
  3. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-52-          $ca = $b->getSide(Vector3::SIDE_EAST, 1);
  4. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-53-          $ac = $b->getSide(Vector3::SIDE_WEST, 1);
  5. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-54-          $t->setText($y[0], "§f$players/$fullPlayer", $y[2], $d);
  6. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-55-          if($ac->getId() === 35){
  7. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php:56:            $ac->setDamage($re);
  8. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-57-            $b->getLevel()->setBlock($ac, $ac);
  9. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-58-          }elseif($ca->getId() === 35){
  10. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php:59:            $ca->setDamage($re);
  11. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-60-            $b->getLevel()->setBlock($ca, $ca);
  12. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-61-          }elseif($ab->getId() === 35){
  13. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php:62:            $ab->setDamage($re);
  14. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-63-            $b->getLevel()->setBlock($ab, $ab);
  15. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-64-          }elseif($ba->getId() === 35){
  16. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php:65:            $ba->setDamage($re);
  17. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-66-            $b->getLevel()->setBlock($ba, $ba);
  18. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-67-          }
  19. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-68-        }
  20. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-69-      }
  21. EggWars-master/src/Driesboy/EggWars/Task/SignManager.php-70-    }
  22. --
  23. EggWars-master/src/Driesboy/EggWars/EventListener.php-1-<?php
  24. EggWars-master/src/Driesboy/EggWars/EventListener.php-2-
  25. EggWars-master/src/Driesboy/EggWars/EventListener.php-3-namespace Driesboy\EggWars;
  26. EggWars-master/src/Driesboy/EggWars/EventListener.php-4-
  27. EggWars-master/src/Driesboy/EggWars/EventListener.php-5-use pocketmine\entity\Villager;
  28. EggWars-master/src/Driesboy/EggWars/EventListener.php:6:use pocketmine\event\entity\EntityDamageEvent;
  29. EggWars-master/src/Driesboy/EggWars/EventListener.php:7:use pocketmine\event\entity\EntityDamageByEntityEvent;
  30. EggWars-master/src/Driesboy/EggWars/EventListener.php-8-use pocketmine\event\player\PlayerDeathEvent;
  31. EggWars-master/src/Driesboy/EggWars/EventListener.php-9-use pocketmine\event\player\PlayerInteractEvent;
  32. EggWars-master/src/Driesboy/EggWars/EventListener.php-10-use pocketmine\event\player\PlayerMoveEvent;
  33. EggWars-master/src/Driesboy/EggWars/EventListener.php-11-use pocketmine\event\player\PlayerChatEvent;
  34. EggWars-master/src/Driesboy/EggWars/EventListener.php-12-use pocketmine\event\player\PlayerQuitEvent;
  35. --
  36. EggWars-master/src/Driesboy/EggWars/EventListener.php-236-    $main = EggWars::getInstance();
  37. EggWars-master/src/Driesboy/EggWars/EventListener.php-237-    if($main->IsInArena($p->getName())){
  38. EggWars-master/src/Driesboy/EggWars/EventListener.php-238-      if($b->getId() === 122){
  39. EggWars-master/src/Driesboy/EggWars/EventListener.php-239-        $yun = $b->getLevel()->getBlock(new Vector3($b->x, $b->y - 1, $b->z));
  40. EggWars-master/src/Driesboy/EggWars/EventListener.php-240-        if($yun->getId() === 35){
  41. EggWars-master/src/Driesboy/EggWars/EventListener.php:241:          $color = $yun->getDamage();
  42. EggWars-master/src/Driesboy/EggWars/EventListener.php-242-          $team = array_search($color, $main->TeamSearcher());
  43. EggWars-master/src/Driesboy/EggWars/EventListener.php-243-          $pht = $main->PlayerTeamColor($p);
  44. EggWars-master/src/Driesboy/EggWars/EventListener.php-244-          if($pht === $team){
  45. EggWars-master/src/Driesboy/EggWars/EventListener.php-245-            $p->sendPopup("§8»§c You can not break your own egg!");
  46. EggWars-master/src/Driesboy/EggWars/EventListener.php-246-            $e->setCancelled();
  47. --
  48. EggWars-master/src/Driesboy/EggWars/EventListener.php-339-  public function onDeath(PlayerDeathEvent $e){
  49. EggWars-master/src/Driesboy/EggWars/EventListener.php-340-    $p = $e->getPlayer();
  50. EggWars-master/src/Driesboy/EggWars/EventListener.php-341-    $main = EggWars::getInstance();
  51. EggWars-master/src/Driesboy/EggWars/EventListener.php-342-    if($main->IsInArena($p->getName())){
  52. EggWars-master/src/Driesboy/EggWars/EventListener.php-343-      $e->setDeathMessage("");
  53. EggWars-master/src/Driesboy/EggWars/EventListener.php:344:      $sondarbe = $p->getLastDamageCause();
  54. EggWars-master/src/Driesboy/EggWars/EventListener.php:345:      if($sondarbe instanceof EntityDamageByEntityEvent){
  55. EggWars-master/src/Driesboy/EggWars/EventListener.php-346-        $e->setDrops(array());
  56. EggWars-master/src/Driesboy/EggWars/EventListener.php:347:        $plduren = $sondarbe->getDamager();
  57. EggWars-master/src/Driesboy/EggWars/EventListener.php-348-        if($plduren instanceof Player){
  58. EggWars-master/src/Driesboy/EggWars/EventListener.php-349-          $main->ArenaMessage($main->IsInArena($p->getName()), $p->getNameTag()." §ewas killed by ".$plduren->getNameTag());
  59. EggWars-master/src/Driesboy/EggWars/EventListener.php-350-        }
  60. EggWars-master/src/Driesboy/EggWars/EventListener.php-351-      }else{
  61. EggWars-master/src/Driesboy/EggWars/EventListener.php-352-        $e->setDrops(array());
  62. --
  63. EggWars-master/src/Driesboy/EggWars/EventListener.php-360-        }
  64. EggWars-master/src/Driesboy/EggWars/EventListener.php-361-      }
  65. EggWars-master/src/Driesboy/EggWars/EventListener.php-362-    }
  66. EggWars-master/src/Driesboy/EggWars/EventListener.php-363-  }
  67. EggWars-master/src/Driesboy/EggWars/EventListener.php-364-
  68. EggWars-master/src/Driesboy/EggWars/EventListener.php:365:  public function Damage(EntityDamageEvent $e){
  69. EggWars-master/src/Driesboy/EggWars/EventListener.php-366-    $p = $e->getEntity();
  70. EggWars-master/src/Driesboy/EggWars/EventListener.php-367-    $main = EggWars::getInstance();
  71. EggWars-master/src/Driesboy/EggWars/EventListener.php:368:    if($e instanceof EntityDamageByEntityEvent){
  72. EggWars-master/src/Driesboy/EggWars/EventListener.php:369:      $d = $e->getDamager();
  73. EggWars-master/src/Driesboy/EggWars/EventListener.php-370-      if($p instanceof Villager && $d instanceof Player){
  74. EggWars-master/src/Driesboy/EggWars/EventListener.php-371-        if($p->getNameTag() === "§6EggWars Shop"){
  75. EggWars-master/src/Driesboy/EggWars/EventListener.php-372-          $e->setCancelled();
  76. EggWars-master/src/Driesboy/EggWars/EventListener.php-373-          $main->m[$d->getName()] = "ok";
  77. EggWars-master/src/Driesboy/EggWars/EventListener.php-374-          $main->EmptyShop($d);
  78. --
  79. EggWars-master/src/Driesboy/EggWars/EventListener.php-388-              $e->setCancelled();
  80. EggWars-master/src/Driesboy/EggWars/EventListener.php-389-            }else{
  81. EggWars-master/src/Driesboy/EggWars/EventListener.php-390-              $this->sd[$p->getName()] = $d->getName();
  82. EggWars-master/src/Driesboy/EggWars/EventListener.php-391-            }
  83. EggWars-master/src/Driesboy/EggWars/EventListener.php-392-          }
  84. EggWars-master/src/Driesboy/EggWars/EventListener.php:393:          if($e->getDamage() >= $e->getEntity()->getHealth()){
  85. EggWars-master/src/Driesboy/EggWars/EventListener.php-394-            $e->setCancelled();
  86. EggWars-master/src/Driesboy/EggWars/EventListener.php-395-            $p->setHealth(20);
  87. EggWars-master/src/Driesboy/EggWars/EventListener.php-396-            $p->setFood(20);
  88. EggWars-master/src/Driesboy/EggWars/EventListener.php-397-            if($main->EggSkin($arena, $team)){
  89. EggWars-master/src/Driesboy/EggWars/EventListener.php-398-              $main->RemoveArenaPlayer($arena, $p->getName());
  90. --
  91. EggWars-master/src/Driesboy/EggWars/EventListener.php-426-              $message = $p->getNameTag()." §edied!";
  92. EggWars-master/src/Driesboy/EggWars/EventListener.php-427-            }
  93. EggWars-master/src/Driesboy/EggWars/EventListener.php-428-          }else{
  94. EggWars-master/src/Driesboy/EggWars/EventListener.php-429-            $message = $p->getNameTag()." §edied!";
  95. EggWars-master/src/Driesboy/EggWars/EventListener.php-430-          }
  96. EggWars-master/src/Driesboy/EggWars/EventListener.php:431:          if($e->getDamage() >= $e->getEntity()->getHealth()){
  97. EggWars-master/src/Driesboy/EggWars/EventListener.php-432-            $e->setCancelled();
  98. EggWars-master/src/Driesboy/EggWars/EventListener.php-433-            $p->setHealth(20);
  99. EggWars-master/src/Driesboy/EggWars/EventListener.php-434-            $p->setFood(20);
  100. EggWars-master/src/Driesboy/EggWars/EventListener.php-435-            if($main->EggSkin($arena, $team)){
  101. EggWars-master/src/Driesboy/EggWars/EventListener.php-436-              $pname = $p->getName();
  102. --
  103. EggWars-master/src/Driesboy/EggWars/EventListener.php-505-          if($itemler === count($shop)){
  104. EggWars-master/src/Driesboy/EggWars/EventListener.php-506-            $main->m[$p->getName()] = 1;
  105. EggWars-master/src/Driesboy/EggWars/EventListener.php-507-          }
  106. EggWars-master/src/Driesboy/EggWars/EventListener.php-508-        }else{
  107. EggWars-master/src/Driesboy/EggWars/EventListener.php-509-          $e->setCancelled();
  108. EggWars-master/src/Driesboy/EggWars/EventListener.php:510:          if($item->getId() === 35 && $item->getDamage() === 14){
  109. EggWars-master/src/Driesboy/EggWars/EventListener.php-511-            $e->setCancelled();
  110. EggWars-master/src/Driesboy/EggWars/EventListener.php-512-            $shopc->reload();
  111. EggWars-master/src/Driesboy/EggWars/EventListener.php-513-            $shop = $shopc->get("shop");
  112. EggWars-master/src/Driesboy/EggWars/EventListener.php-514-            $sandik->getInventory()->clearAll();
  113. EggWars-master/src/Driesboy/EggWars/EventListener.php-515-            for($i=0; $i<count($shop); $i += 2){
  114. --
  115. EggWars-master/src/Driesboy/EggWars/EventListener.php-535-            $ucret = $si->getItem($transSlot + 1)->getCount();
  116. EggWars-master/src/Driesboy/EggWars/EventListener.php-536-            $para = $main->ItemId($p, $si->getItem($transSlot + 1)->getId());
  117. EggWars-master/src/Driesboy/EggWars/EventListener.php-537-            if($para >= $ucret){
  118. EggWars-master/src/Driesboy/EggWars/EventListener.php-538-              $p->getInventory()->removeItem(Item::get($si->getItem($transSlot + 1)->getId(), 0, $ucret));
  119. EggWars-master/src/Driesboy/EggWars/EventListener.php-539-              $aitemd = $si->getItem($transSlot);
  120. EggWars-master/src/Driesboy/EggWars/EventListener.php:540:              $aitem = Item::get($aitemd->getId(), $aitemd->getDamage(), $aitemd->getCount());
  121. EggWars-master/src/Driesboy/EggWars/EventListener.php-541-              $p->getInventory()->addItem($aitem);
  122. EggWars-master/src/Driesboy/EggWars/EventListener.php-542-            }
  123. EggWars-master/src/Driesboy/EggWars/EventListener.php-543-            $e->setCancelled();
  124. EggWars-master/src/Driesboy/EggWars/EventListener.php-544-          }
  125. EggWars-master/src/Driesboy/EggWars/EventListener.php-545-          if($is != 264 or $is != 265 or $is != 266){
  126. --
  127. EggWars-master/src/Driesboy/EggWars/EventListener.php-598-    if($main->IsInArena($p->getName())){
  128. EggWars-master/src/Driesboy/EggWars/EventListener.php-599-      $ad = $main->ArenaStatus($main->IsInArena($p->getName()));
  129. EggWars-master/src/Driesboy/EggWars/EventListener.php-600-      if($ad === "Lobby"){
  130. EggWars-master/src/Driesboy/EggWars/EventListener.php-601-        if($b->getId() === 35){
  131. EggWars-master/src/Driesboy/EggWars/EventListener.php-602-          $arena = $main->IsInArena($p->getName());
  132. EggWars-master/src/Driesboy/EggWars/EventListener.php:603:          $tyun = array_search($b->getDamage() ,$main->TeamSearcher());
  133. EggWars-master/src/Driesboy/EggWars/EventListener.php-604-          $marena = $main->AvailableTeams($arena);
  134. EggWars-master/src/Driesboy/EggWars/EventListener.php-605-          if(in_array($tyun, $marena)){
  135. EggWars-master/src/Driesboy/EggWars/EventListener.php-606-            $color = $main->Teams()[$tyun];
  136. EggWars-master/src/Driesboy/EggWars/EventListener.php-607-            $p->setNameTag($color.$p->getName());
  137. EggWars-master/src/Driesboy/EggWars/EventListener.php-608-            $p->sendPopup("§8» Team $color"."$tyun Selected!");
  138. --
  139. EggWars-master/src/Driesboy/EggWars/EggWars.php-400-  public function TeamSellector($arena, Player $p){
  140. EggWars-master/src/Driesboy/EggWars/EggWars.php-401-    foreach($this->ArenaTeams($arena) as $at){
  141. EggWars-master/src/Driesboy/EggWars/EggWars.php-402-      $meta = $this->TeamSearcher()[$at];
  142. EggWars-master/src/Driesboy/EggWars/EggWars.php-403-      $color = $this->Teams()[$at];
  143. EggWars-master/src/Driesboy/EggWars/EggWars.php-404-      $item = Item::get(35);
  144. EggWars-master/src/Driesboy/EggWars/EggWars.php:405:      $item->setDamage($meta);
  145. EggWars-master/src/Driesboy/EggWars/EggWars.php-406-      $item->setCustomName("§r§8» ".$color.$at."§8 «");
  146. EggWars-master/src/Driesboy/EggWars/EggWars.php-407-      $p->getInventory()->addItem($item);
  147. EggWars-master/src/Driesboy/EggWars/EggWars.php-408-    }
  148. EggWars-master/src/Driesboy/EggWars/EggWars.php-409-    $p->getInventory()->sendContents($p);
  149. EggWars-master/src/Driesboy/EggWars/EggWars.php-410-  }
  150. root@ItaSkyGames:~/Server/plugins# ^C
  151. root@ItaSkyGames:~/Server/plugins#
RAW Paste Data
Top