Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AntiTower 1.1

Now, the tower will be blocked automatically!

  1. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    xpyctum submitted a new plugin:

    AntiTower - Now, the tower will be blocked automatically!

    Read more about this plugin...
  2. Creeperminer
    Offline

    Creeperminer Active Member

    Joined:
    Oct 12, 2014
    Posts:
    81
    Minecraft User:
    Creeperminer
  3. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,196
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    is this false positive? What if someone is building?
  4. Creeperminer
    Offline

    Creeperminer Active Member

    Joined:
    Oct 12, 2014
    Posts:
    81
    Minecraft User:
    Creeperminer
    I think it would be only for that certain player
  5. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,196
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    no. What i mean is, if the player is building, what happens?
  6. Creeperminer
    Offline

    Creeperminer Active Member

    Joined:
    Oct 12, 2014
    Posts:
    81
    Minecraft User:
    Creeperminer
    I don't know I really wouldn't want this on mine because I make towers alot
  7. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    Does the blocks just poof.. or can you make it to drop into blocks so the player doesn't lose his or her blocks.
  8. EvolSoft
    Offline

    EvolSoft Notable Member Plugin Developer

    Joined:
    Sep 10, 2014
    Posts:
    821
    Plugins:
    15
    Minecraft User:
    Flavius12
    Good work :D
    xpyctum likes this.
  9. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    okay. That will be included in next version
  10. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
    You can add permission for player who build.
    Code:
     antitower.admin 
    Also this default by op players
  11. predawnia
    Offline

    predawnia Active Member

    Joined:
    Dec 23, 2014
    Posts:
    167
    Minecraft User:
    GhostSpex
    Anyone notice Anti tower not working anymore in 0.11.0 #12xx onwards?
  12. xpyctum
    Offline

    xpyctum Active Member Plugin Developer

    Joined:
    Jan 13, 2014
    Posts:
    292
    Plugins:
    4
    Minecraft User:
    tylerdisney
  13. vvzar
    Offline

    vvzar New Member

    Joined:
    Mar 21, 2015
    Posts:
    40
    Crash

    Error: Call to a member function get() on null
    File: /AntiTower_v1.phar/src/AntiTower/PlaceBlockListener
    Line: 38
    Type: E_ERROR

    THIS CRASH WAS CAUSED BY A PLUGIN
    BAD PLUGIN: AntiTower v1

    Code:
    [29] $user = $e->getPlayer()->getDisplayName();
    [30] $x = $e->getBlock()->getX(); $y = $e->getBlock()->getY(); $z = $e->getBlock()->getZ();
    [31] if(!isset($this->places[$user])){
    [32] /** @array Vector3 */
    [33] $this->places[$user] = array("uses" => 1, "id" => $id, "Loc" => new Vector3($x,$y,$z));
    [34] }else{
    [35] if($e->getPlayer()->hasPermission("antitower.admin")){
    [36]
    [37] }else {
    [38] $max = $this->plugin->getConfig()->get("max-blocks");
    [39] $lastid = $this->places[$user]["id"];
    [40] $uses = $this->places[$user]["uses"];
    [41] $lastY = $this->places[$user]["Loc"]->getY();
    [42] if ($lastY == $y - 1) {
    [43] if ($id == $lastid) {
    [44] if ($uses == $max) {
    [45] $e->getPlayer()->sendMessage(TextFormat::RED."[AntiTower] You can't build towers!");
    [46] $e->getPlayer()->sendMessage(TextFormat::RED."[AntiTower] Removing...");
    [47] $level = $e->getBlock()->getLevel();
    [48] for ($i = 1; $i <= $max; $i++) {

    Backtrace:
    #0 (): pocketmine\Server->crashDump()

    PocketMine-MP version: 1.5dev #1254 [Protocol 27; API 1.12.0]
    Git commit: 0000000000000000000000000000000000000000
    uname -a: Linux mpe 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:30:00 UTC 2014 x86_64
    PHP Version: 5.6.4
    Zend version: 2.6.0
    OS : Linux, linux

Share This Page

Advertisement