Thread: [PI] My time based mute/ban system

Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11  
    Donator

    Join Date
    Oct 2014
    Posts
    587
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Why exactly are you using a event system for this? You should check if the ban/mute is over on the moment the player tries to do a action that is restricted. Such as logging in to a banned account or talking on a muted account. Your system is using way to much resources.
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Nov 2014
    Posts
    253
    Thanks given
    39
    Thanks received
    146
    Rep Power
    248
    Quote Originally Posted by Excision Pk View Post
    Why exactly are you using a event system for this? You should check if the ban/mute is over on the moment the player tries to do a action that is restricted. Such as logging in to a banned account or talking on a muted account. Your system is using way to much resources.
    Seeing as the server ticks every 600ms doing so so much more, refreshing punishments every 2 minutes is negligible? (I think he's doing it either 2 seconds or 2 minutes, I'd do it every 2 minutes)

    I mean how often do people talk? Probably more often than once per two minutes. Bans should be checked for on login sure, you don't want people that are banned to even log in
    Reply With Quote  
     

  3. #13  
    Donator

    Join Date
    Oct 2014
    Posts
    587
    Thanks given
    29
    Thanks received
    76
    Rep Power
    26
    Quote Originally Posted by Intrice Joe View Post
    Seeing as the server ticks every 600ms doing so so much more, refreshing punishments every 2 minutes is negligible? (I think he's doing it either 2 seconds or 2 minutes, I'd do it every 2 minutes)

    I mean how often do people talk? Probably more often than once per two minutes. Bans should be checked for on login sure, you don't want people that are banned to even log in
    He is doing it every 2 ticks. The point is why should you do that if you can check on the moment the player tries to do a action that is restricted if this action should still be restricted? Its pointless to make a event which only eats up resources.
    Reply With Quote  
     

  4. #14  
    Super Donator


    Join Date
    Feb 2011
    Age
    27
    Posts
    1,126
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Make sure u're using JAVA JDK 7 or newer version.
    Reply With Quote  
     

  5. #15  
    -Founder Off Returnofpk-


    Join Date
    Oct 2012
    Age
    28
    Posts
    655
    Thanks given
    97
    Thanks received
    211
    Rep Power
    303
    Lollol
    Reply With Quote  
     

Page 2 of 2 FirstFirst 12

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [PI]Player Time Based Npc Rewards
    By blastashes in forum Snippets
    Replies: 41
    Last Post: 06-20-2012, 08:36 AM
  2. [PI] Mute/Ban Timer [PAYING]
    By Radiation in forum Help
    Replies: 28
    Last Post: 05-26-2011, 12:12 AM
  3. [PI]muted, banned, or ip'd help
    By killdogz in forum Help
    Replies: 2
    Last Post: 04-10-2011, 10:00 PM
  4. PI my Jailing system
    By SeekScape in forum Help
    Replies: 0
    Last Post: 01-21-2011, 06:25 AM
  5. [PI] My point system doesn't save? [PI]
    By jake3393 in forum Help
    Replies: 7
    Last Post: 11-07-2010, 04:59 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •