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

GrabBag 2.3.0

Collection of miscellaneous commands and listener modules

  1. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I want to use it on my plugin!!!!!!
  2. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    There is no API, but you can do this from a plugin:

    PHP:
    $this->getServer()->dispatchCommand(new ConsoleCommandSender,"freeze {player}");
    If you are using libcommon:

    PHP:
    Cmd::console($this->getServer(),"freeze aliuly");
    Legoboy0215 likes this.
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Thanks!!!
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Then How can I auto replace the {player} in the plugin? Like str_replace? An example?
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    PHP:
    "freeze ".$player->getName()
  6. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    Add HealthTag < there are 3 health tag plugin on PM world but all of it doesn't work well < Support CustomChat

    Add chat-off/chat-on

    ^^^
    Hides players messages but not server messages like when you kill player will KillRate plugin, only the KillRate message and other will show, just like Disablechatforme/iChat plugin that supports Custom Chat
  7. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    aliuly updated GrabBag with a new update entry:

    Simple updates

    Read the rest of this update entry...
  8. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Not sure what you want to get at.

    You should check with those plugin devs.
  9. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    but your the only one who do my request :(
  10. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    If you want I can start ignoring you too. Would that help?
    jojoe77777 likes this.
  11. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    That was really evil
    CaptainKenji17 likes this.
  12. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    To be fair, he has not bothered to post any reviews of this plugin.

    Anyway, the github version of this plugin has chat-on/chat-off, so will disable chat for players (or globally) as well as a clearchat command.

    I am not ready to post an update though. (I want to add Query support first).
    CaptainKenji17 likes this.
  13. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    You didn't tell me there is :( and I don't see on documentaton it's added
  14. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  15. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17

    PocketMine-MP Crash Dump Wed Jul 1 23:55:50 MDT 2015

    Error: include(phar:///home/multicraft/servers/server3668/plugins/GrabBag223.phar/src/aliuly/grabbag/Main.php): failed to open stream: phar error: Cannot open phar archive "/home/multicraft/servers/server3668/plugins/GrabBag223.phar" for reading
    File: /src/spl/BaseClassLoader
    Line: 128
    Type: warning

    THIS CRASH WAS CAUSED BY A PLUGIN

    Code:
    [119] * Called when there is a class to load
    [120] *
    [121] * @param string $name
    [122] *
    [123] * @return bool
    [124] */
    [125] public function loadClass($name){
    [126] $path = $this->findClass($name);
    [127] if($path !== \null){
    [128] include($path);
    [129] if(!\class_exists($name, \false) and !\interface_exists($name, \false) and !\trait_exists($name, \false)){
    [130] if($this->getParent() === \null){
    [131] throw new ClassNotFoundException("Class $name not found");
    [132] }
    [133] return \false;
    [134] }
    [135]
    [136] if(\method_exists($name, "onClassLoaded") and (new ReflectionClass($name))->getMethod("onClassLoaded")->isStatic()){
    [137] $name::eek:nClassLoaded();
    [138] }


    I cant phar the file in devtools so I tried to phar it by pemapmodder site and once I put the plugin this crash happens
  16. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    You just can't wait huh?... It is not ready to be posted yet, but it looks like the phar file was corrupted. You should report this to @PEMapModder
  17. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    BTW, the github repository contains a script called "mkplugin.php" You should use that to create the phar file. It automatically collects depedencies, otherwise the build will be incomplete.
  18. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    How do I use mkplugin.php?
  19. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    CaptainKenji17 likes this.
  20. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17

Share This Page

Advertisement