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

Slapper 1.2.9.3

Hit entities to run commands!

  1. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Yes, multiworld is supported
  2. I_Is_Payton_
    Offline

    I_Is_Payton_ Active Member Plugin Developer

    Joined:
    Jan 18, 2014
    Posts:
    76
    Plugins:
    1
    Minecraft User:
    I_Is_Payton_
    I could see a very helpful use for this plugin. Good work!
  3. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Thanks!
    Oneeb and I_Is_Payton_ like this.
  4. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    New bug found:

    Attached Files:

  5. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Appears that anyone can hit the NPC..
  6. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Please, Fix it:
    Armor of NPC's are being dropped.

    Attached Files:

  7. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Try spawning in a new one. Does it still happen?
    Oneeb likes this.
  8. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    Yes... Every time.. when the server starts there are more than 200 of this Armor's.
    i did lagg clear and logged again.. already was new ones.
  9. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    :oops: For now, maybe take the armour off, or change the skin to add fake armour.
    Oneeb likes this.
  10. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Yeah... I think. I have no idea why/how.
    Oneeb likes this.
  11. lucasvitegui
    Offline

    lucasvitegui Active Member

    Joined:
    Apr 18, 2015
    Posts:
    191
    Minecraft User:
    lucasviteguiBR
    it wouldn't be so Real... But ok
    And what about hitting the NPC's ? everyone can hit it.
  12. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Spawn in new ones.
    Oneeb likes this.
  13. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    I had to do some changes in the latest update, so you need to spawn new ones.
    Oneeb likes this.
  14. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Well, i had this problem also, but i dont know exactly when that happened, i am pretty sure after updating the plugin.
    One of my NPC's always dropped items.
    I spawned a new one with the updated version and the problem was gone.
    So i can confirm that
    works.
    And now i have a suggestion:
    add a point in the config for the npc's if they may drop their stuff on death or not.
    PHP:
        public function onSlapperDeath(EntityDeathEvent $ev){
            if(
    $ev->isCancelled()) return;
            
    $taker $ev->getEntity();
            if(
    $taker instanceof SlapperHuman){
                
    $takerName $taker->getName();
                
    $configPart $this->getConfig()->getNested($takerName ".drop");
                if(
    $configPart == null){
                    return;
                }
                if(
    $configPart == false){
                    
    $taker->getInventory()->clearAll();
                }
                else return;
            }
        }
    The config can look like that then:
    Also, on line 179 please add {npc}-filter for config, so you can do:
    Code:
    PHP:
    $this->getServer()->dispatchCommand(new ConsoleCommandSender(), str_replace("{player}"$giverNamestr_replace("{npc}"$takerName$commandNew)));
    Also maybe adding a different method to message a player (for example rcaslapper)? Because when you set the command to msg {player} hi its send as console, and your result is [CONSOLE]->me: Hi
    Last edited: Sep 2, 2015
    jojoe77777 likes this.
  15. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Thanks, I'll try that.
    But I don't think too many server owners would be wanting the NPCs to talk to the players... But maybe I could make a separate tellraw plugin.
    Last edited: Sep 5, 2015
    Oneeb and thebigsmileXD like this.
  16. MehmetProTR
    Offline

    MehmetProTR New Member

    Joined:
    Sep 3, 2015
    Posts:
    13
    Minecraft User:
    MehmetProTR
    How to download plz tell me I use ipad 2 plz tell me how to download without computer
  17. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    You can only run it on a computer.
    Oneeb likes this.
  18. HyPlex
    Offline

    HyPlex Banned

    Joined:
    Sep 3, 2015
    Posts:
    7
    Minecraft User:
    EnchantedSkulls
    Y
    you cant! need computer for that or the android its hard on ipad.
  19. HyPlex
    Offline

    HyPlex Banned

    Joined:
    Sep 3, 2015
    Posts:
    7
    Minecraft User:
    EnchantedSkulls
    And Android.
  20. MehmetProTR
    Offline

    MehmetProTR New Member

    Joined:
    Sep 3, 2015
    Posts:
    13
    Minecraft User:
    MehmetProTR
    It says open with vshare

Share This Page

Advertisement