1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How do I temp ban?

Discussion in 'Development' started by DiamondGamer30, Oct 16, 2017.

  1. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    Can anyone tell me how to be able to temp ban using php?
     
  2. TheShinPin

    TheShinPin Baby Zombie

    Messages:
    121
    • Use a ban hammer
    Use a plugin
     
    QuiverlyRivalry likes this.
  3. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    I’m trying to code something that requires temp ban.
     
  4. TheShinPin

    TheShinPin Baby Zombie

    Messages:
    121
    I don't know code @any1else
     
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you create a list
    with "user","banuntil"

    if time is not > banuntil
    kick it or smth...
    else
    remove that user
     
  6. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    Thanks, working on death ban :p Probably will have many errors.
     
  7. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    Wait nvm, still kinda confused. If you can, would you like to maybe chat private so you can help me, if you dont have time, then I guess I'll have to find someone else.
     
  8. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
  9. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
  10. Teamblocket

    Teamblocket Zombie

    Messages:
    301
    GitHub:
    teamblocket
    Your able to temp ban without any plugin.
    Its PMMP baby
     
  11. DiamondGamer30

    DiamondGamer30 Baby Zombie

    Messages:
    175
    GitHub:
    diamondgamermcpe
    ??
     
  12. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
    please tell me that you didn't read the entire line before making that post... :facepalm:
     
  13. Indexfire

    Indexfire Baby Zombie

    Messages:
    137
    GitHub:
    Indexfire
    function addBan(string $target, string $reason = null, /DateTime $expires = null, string $source = null);
     
    HimbeersaftLP, SOFe and jasonwynn10 like this.
  14. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
  15. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    This is a Development forum thread!
     
  16. TeraCube

    TeraCube Zombie

    Messages:
    262
    GitHub:
    teracube
    Oops sorry
     
  17. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Keep it public for search engine purposes.


    As @Thunder33345 said, compare the current timestamp with the timestamp during the ban. What do you not understand exactly?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.