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

Join game and leave game blocker

Comments in 'Plugin Development' started by codmadnesspro, Oct 8, 2013.

  1. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    552
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    Hi
    Can someone make a plugin that when someone joins it dosnt say it. Also can you do it for leaveing a game. Thanks I will pay who ever makes this.
    Domme3011 likes this.
  2. 0becca0
    Offline

    0becca0 New Member

    Joined:
    Oct 4, 2013
    Posts:
    133
    Minecraft User:
    0becca0
  3. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    552
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    ?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Delete it in the src folder directly. Search drowned in each file is convenient way to do.
  5. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    552
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    But its when they leave and join not when they die
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I found it. In src/Player.php line 281, add # before the line.
    if($msg === true and $this->username != ""){
    $this->server->api->chat->broadcast($this->username." left the game");
    }
    console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason);
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Add # before the lines 281&282 for client and console respectively.
  8. Lambo
    Offline

    Lambo Notable Member Plugin Developer

    Joined:
    Sep 14, 2013
    Posts:
    435
    Plugins:
    4
    Minecraft User:
    Lambo
    The
    Code:
    <server> $player joined the game
    is default. I think that's just Minecraft PE.
    ZacHack and wies like this.
  9. ZacHack
    Offline

    ZacHack Staff Member Sectional Moderator

    Joined:
    Aug 23, 2013
    Posts:
    326
    Plugins:
    6
    Minecraft User:
    _ZacHack_
    Agreed
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I don't think so. Sometimes when I play ctf in lbsg.net and also in your LegionPE server, people are invisible to me, and only to me. Not that they hack, but it is server bug. But MCPE no longer shows the player nor in the "pause" menu player list (right bar). It means that, as long as the server no longer sends information about the player (maybe dead and not yet respawned?), they are not present. And if you say that, how do you explain this, or explain why this:
    PHP:
    if($msg === true and $this->username != ""){
    $this->server->api->chat->broadcast($this->username." left the game");
    }
    console("[INFO] ".FORMAT_AQUA.$this->username.FORMAT_RESET."[/".$this->ip.":".$this->port."] logged out due to ".$reason);
    exists?
  11. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    392
    mcpe will automatically give a message when someone joins. This is made because it's usefull when you make a local wifi server. The player left message in not in mcpe, pocketmine added it because it's in bukkit too.
    So you can't dissable the player join message in a server, only the client can do that by using a modded version of mcpe.
  12. KABOOOMsnakefang
    Offline

    KABOOOMsnakefang New Member

    Joined:
    Aug 31, 2013
    Posts:
    43
    Minecraft User:
    KABOOOMY
    Right, but if someone joins or leaves the game, that's server-side. Whenever something happens on the server, the server sends a message to the plugin, kind of like "Hey, does this event make something weird happen?" And the plugin that corresponds to that event responds and makes something happen. In worldedit, you break something with a hoe, and the plugin responds by marking that block as pos1.
    So, if someone joins or leaves the game, why can't the join and leave game messages be suppressed?

    That's just my understanding of the plugin system and mcpe.
  13. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    392
    Because their are things that happen client sided, that the server can't change. The join message is client sided and can't be changed by the server. Don't you understand? You can't send data to the client that tells "Don't show the join message". Just accept it, and don't argue about it anymore
  14. KABOOOMsnakefang
    Offline

    KABOOOMsnakefang New Member

    Joined:
    Aug 31, 2013
    Posts:
    43
    Minecraft User:
    KABOOOMY
  15. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Leave game is blockable. What about instead of telling the clients someone left the server, why not tell the clients the player died (message suppressable)?

    And how do you explain the existance of the code above?

    P.S. Why do I like it so much when talking about changing the source code?
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    BTW how do you suppress default instead of changing the source code?
    I mean, when a player destroys a block, how do you prevent the block from being destroyed, but not destroyed and the plugin re-place the block? And how do you prevent the item dropped?
  17. KABOOOMsnakefang
    Offline

    KABOOOMsnakefang New Member

    Joined:
    Aug 31, 2013
    Posts:
    43
    Minecraft User:
    KABOOOMY
    That's because blocks, and where in the map they are, is server side. So is the location of the player, which is why they can tp. What wies is saying above is that you can't suppress default.
  18. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    392
    You can suppress all messages except from the join message
  19. KABOOOMsnakefang
    Offline

    KABOOOMsnakefang New Member

    Joined:
    Aug 31, 2013
    Posts:
    43
    Minecraft User:
    KABOOOMY
    Oh ok.
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    How?

Share This Page

Advertisement