Results 1 to 6 of 6
  1. #1

    Insane Limits: Ban Types by Singh400

    Posting this here for my own benefit (easier to track down) and because the questions crops up now and then as well.

    Different ban types explained:
    Code:
    //Simple Kick
    plugin.KickPlayerWithMessage(player.Name, plugin.R("Reason"));
    
    //EA Ban by player name - permanent ban
    plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Permanent, player.Name, 0, "Reason");
    
    //EA Ban by player name - round ban
    plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Round, player.Name, 0, "Reason");
    
    //EA Ban by player name - temp ban for 10 minutes
    plugin.EABanPlayerWithMessage(EABanType.Name, EABanDuration.Temporary, player.Name, 10, "Reason");
    
    //EA Ban by player IP address - permanent ban
    plugin.EABanPlayerWithMessage(EABanType.IPAddress, EABanDuration.Permanent, player.Name, 0, "Reason");
    
    //EA Ban by player IP address - round ban
    plugin.EABanPlayerWithMessage(EABanType.IPAddress, EABanDuration.Round, player.Name, 0, "Reason");
    
    //EA Ban by player IP address - temp ban for 10 minutes
    plugin.EABanPlayerWithMessage(EABanType.IPAddress, EABanDuration.Temporary, player.Name, 10, "Reason");
    
    //EA Ban by player EA GUID - permanent ban
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, player.Name, 0, "Reason");
    
    //EA Ban by player EA GUID - round ban
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Round, player.Name, 0, "Reason");
    
    //EA Ban by player EA GUID - temp ban for 10 minutes
    plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Temporary, player.Name, 10, "Reason");
    
    // PB Ban (all player details recorded) - permanent ban
    plugin.PBBanPlayerWithMessage(PBBanDuration.Permanent, player.Name, 0, "Reason");
    
    // PB Ban (all player details recorded) - temp ban for 10 minutes
    plugin.PBBanPlayerWithMessage(PBBanDuration.Temporary, player.Name, 10, "Reason");
    Last edited by PapaCharlie9; 20-12-2013 at 18:19.
    Don't send me private messages (PMs) unless you really need privacy, like your game server password. If you just have a question or need help, post in one of the threads. It's extra work for me to answer questions and give help in private messages and no one else gets the benefit of the answer.

  2. #2
    Procon Plugin Tester
    Join Date
    Nov 2011
    Posts
    472
    Just used this. Thank you.

  3. #3
    voting for sticky
    Feeding is my job.

  4. #4
    Quote Originally Posted by HexaCanon View Post
    voting for sticky
    Done.
    Don't send me private messages (PMs) unless you really need privacy, like your game server password. If you just have a question or need help, post in one of the threads. It's extra work for me to answer questions and give help in private messages and no one else gets the benefit of the answer.

  5. #5
    Senior Member
    Join Date
    Nov 2013
    Location
    Green Spring, WV
    Posts
    109
    Is this used for PB kick as well or only EA or both for BF4?

    //Simple Kick
    Code:
    plugin.KickPlayerWithMessage(player.Name, plugin.R("Reason"));

  6. #6
    Quote Originally Posted by lordicon View Post
    Is this used for PB kick as well or only EA or both for BF4?

    //Simple Kick
    Code:
    plugin.KickPlayerWithMessage(player.Name, plugin.R("Reason"));
    AFAIK it is the same.
    Developer of PBSS Scanner || Feedback Thread


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •