EnhancedBanSystem

Moved

Total Downloads: 3,116 - First Release: Jun 6, 2016 - Last Update: Feb 24, 2018

5/5, 18 likes
  1. Hello,

    When you ban a player for example (/ban Socrate 600) it just kick people, they can reconnect immediatly...

    Plugin issue ?
     
  2. because you ban the player for reason "600"
    it's /ban Socrate "come back in 10 minutes" 600
     
  3. When user connect
    Code:
    [10/25/2016 15:26:43] 37.215.20.205:37129/76561198287461322/karpov joined [windows/76561198287461322]
    [10/25/2016 15:26:43] [Oxide] 15:26 [Info] [Notifier] [KIS] karpov покинул сервер. (Причина: Kicked:<meta name="description" content="Webpage66 is an easy-to-use, full-featured website builder and hosting company for personal and business websites, offering e-commerce shopping carts, calendars, guest books, forms and much more">
    <meta name="keywords" content="website builder,web site builder,business website,personal website,web site design,web page design,web page background,free web site hosting,personal web page,best web site,web page template,cool web site,web site development,christian web site,web site designer,creating web page,free web page template,web site servers,web site template,web site builder,free web site promotion,free web site builder,free web page builder,how to build a web site,how to create a web page,educational web site,family web site,making a web site,high school web site,free online community,create your own chatroom,home page template,build a free web page,build a home page,free web page maker,free web site building,free personal web page,web site maker,home page design,free personal web site,home page builder,how to build a web site,build a web site,web page maker,free web site design,high school web site,making a web site,web site design,high school web site,yahoo home page"><SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
    <!--//// set global variables for later use.
    var backColor  = "";// going through parameters in URL.
    // the parameter names are case sensitive.
    var urlquery=this.location.search.substring(1);
        if (urlquery.length > 0)
        {
            var params = urlquery.split("&");
            for (var i=0 ; i<params.length ; i++)
            {
                var pos = params[i].indexOf("=");
                var name = params[i].substring(0, pos);
                var value = params[i].substring(pos + 1);
            if ( name == "bg" )
            {
               backColor = value;
            }
            }
        }// defaults.
        if ( backColor.length == 0 )
        {
           backColor = "eeeeee";
        }// -->
    </script>
    </head>
    <SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
         document.write( "<body bgcolor=\"#" + backColor + "\" width=\"100%\" marginwidth=\"0\" marginheight=\"0\" leftmargin=\"0\" topmargin=\"0\"> ");
    </script><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <!-- WP404 728x90 -->
    <ins class="adsbygoogle"
         style="display:inline-block;width:728px;height:90px"
         data-ad-client="ca-pub-0266525418451913"
         data-ad-slot="2830915403"></ins>(adsbygoogle = window.adsbygoogle || []).push({});
    </script>       
                               <!-- Online web site builder, website software, homepage creator, personal ecommerce - webpage66.com. -->
                    <!-- Online web site builder, website software, homepage creator, personal ecommerce - webpage66.com, webpage66.com is an easy-to-use, full-featured website builder and hosting company offering e-commerce shopping carts, calendars, guest books, forms and much more. -->
                     Webpage66 - Personal and Business Website Building Software - webpage66.com. </title>               
                        h1 {font:bold 24px tahoma,arial; color:0044aa;}
                        h2 {font:bold 18px arial; color:0066cc; padding:10px 10px 0px 0px;}
                        h3 {font:bold 16px arial; color:0066cc;}
                        td {font:13px arial;}
                        td.tab {font:11px verdana,arial;color:0066cc;text-align:center;}
                        td.rindex {padding:1px 10px 1px 10px}
                        td.tabs {font:10px verdana,arial;text-align:center;background-image:url(http://webpage.com/info/images/index_selected.jpg);width:75px;height:25px;padding:0px;margin:0px;cursor:hand;}
                        td.tabu {font:10px verdana,arial;text-align:center;background-image:url(http://webpage.com/info/images/index_unselected.jpg);width:75px;height:25px;padding:0px;margin:0px;cursor:hand;}
                        a.tabu {text-decoration:none;color:black;}
                        td.index {padding:0px;margin:0px;height:25px;}
                        a.index {font:12px verdana,arial; color:ffffff; text-decoration:none;height:25px;}
                        td.divider {font:12px verdana,arial; color:999999; padding:0px 0px 0px 0px}
                        li {padding:0px 0px 10px;}                    .border1 {
                            border-bottom: 1px dashed #cccccc;
                        }
                        .title_bar {
                            font-family: Arial, Helvetica, sans-serif;
                            font-size: 14px;
                            color: #666666;
                            font-weight: normal;
                        }
                        #error {
                            background:#FFF0F0;
                            border:1px solid #DD3C10;
                            margin: 10px 0px 10px 0px;
                            padding:10px;
                            font: bold 14px arial;
                            color: 333333;
                        }
                        #error a{
                            color: #0000FF;
                        }                    #companyLogoOutter {
                            clear:both;
                        }                    #companyLogoOutter a, #companyLogoOutter img{
                            border:none;
                        }                    #companyLogoInner {
                            width:980px;
                            border-bottom:#2868E5 1px solid;
                            margin-bottom:20px;
                        }
                    </style>
                    <meta name="description" content="Webpage66 is an easy-to-use, full-featured website builder and hosting company for personal and business websites, offering e-commerce shopping carts, calendars, guest books, forms and much more">                <meta name="keywords" content="website builder,web site builder,business website,personal website,web site design,web page design,web page background,free web site hosting,personal web page,best web site,web page template,cool web site,web site development,christian web site,web site designer,creating web page,free web page template,web site servers,web site template,web site builder,free web site promotion,free web site builder,free web page builder,how to build a web site,how to create a web page,educational web site,family web site,making a web site,high school web site,free online community,create your own chatroom,home page template,build a free web page,build a home page,free web page maker,free web site building,free personal web page,web site maker,home page design,free personal web site,home page builder,how to build a web site,build a web site,web page maker,free web site design,high school web site,making a web site,web site design,high school web site,yahoo home page">               
                   
                        function go(gourl) {
                            window.location = gourl;
                        }
                    </script>
        <!--
        .debug{
            color : #B30000;
            width : 100%;
            height : 15px;
            font-family : arial;
            background-color : #FFFFBF;
            font-weight : bold;
            margin-top : 0px;
        }
        -->
    </style>             </head>            <body leftmargin=0 rightmargin=0 topmargin=0 bottommargin=0 marginwidth=0 marginheight=0   >                        <table cellspacing=0 cellpadding=0 border=0 width=760 height=80><img src="http://webpage.com/info/images/header.jpg" width=760 height=80 border=0></td></tr></table>
                            <table cellspacing=0 cellpadding=0 border=0 width=760 height=25><td background="http://webpage.com/info/images/index_background.jpg">
                                <table cellspacing=0 cellpadding=0 border=0 width=760 height=25>
                                    <td class="index" width=75></td>                                    <td width="75" class="tabs">Home</td>                                            <td width="75" class="tabu" onclick="go('http://www.Webpage66.com/host/page/243.htm');return false;"><a href="http://www.Webpage66.com/host/page/243.htm" class="tabu">Features</a></td>                                            <td width="75" class="tabu" onclick="go('http://www.Webpage66.com/host/page/238.htm');return false;"><a href="http://www.Webpage66.com/host/page/238.htm" class="tabu">Screenshots</a></td>                                            <td width="75" class="tabu" onclick="go('http://www.Webpage66.com/host/page/234.htm');return false;"><a href="http://www.Webpage66.com/host/page/234.htm" class="tabu">Benefits</a></td>                                    <td width="75" class="tabu" onclick="go('http://www.Webpage66.com/support/host_ask.htm');return false;"><a href="http://www.Webpage66.com/support/host_ask.htm" class="tabu">Support</a></td>                                <td class="index" width="110"></td>
                                    <td class="index" width=100><a id='shoppingcartsplus' href="http://www.Webpage66.com/builder/signup/23.htm"><img src="http://webpage.com/info/images/index_signup.jpg?110718102341" width=100 height=25 border=0></a></td>
                                    <td class="index" width=100><a href="https://secure.systemsecure.com/host/login/23.htm"><img src="http://webpage.com/info/images/index_login.jpg?110718102341" width=100 height=25 border=0></a></td>
                                </tr></table>                        </td></tr></table>                <table cellspacing=0 cellpadding=0 border=0 width=760 bgcolor="ffffff" >
                        <font face="arial" size=2>           
                    table.outerHomeTable{
                        border-collapse:0px;
                        }
                    td.outerHomeTable{
                        padding:0px 0px
                        }
                </style>
                <table class="outerHomeTable">
                   
                        <td class="outerHomeTable">
                            <style type="text/css">
    <!--
    body {
        margin-left: 0;
        margin-top: 0px;
        margin-right: 0px;
        margin-bottom: 0px;
    }
    .style1 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        padding-top: 0px;
        padding-right: 15px;
        padding-bottom: 0px;
        padding-left: 15px;
        font-weight: bold;
    }
    .style2 {
        font-size: 12px;
        font-family: Arial, Helvetica, sans-serif;
        padding-left: 10px;
        padding-right: 26px;
    }
    .style3 {font-size: 14px; padding-top: 0px; padding-right: 15px; padding-bottom: 0px; padding-left: 15px; font-family: Arial, Helvetica, sans-serif;}
    --></style>
    </head><table width="760" cellspacing="0" cellpadding="0">
     
        <td colspan="2"><a href="http://www.Webpage66.com/builder/signup/23.htm"><img src="http://webpage.com/info/images/banner.jpg" width="760" height="166" border="0"></a></td>
      </tr>
     
        <td width="220" valign="top" background="http://webpage.com/info/images/leftbg.jpg"><img src="http://webpage.com/info/images/whatweoffer.jpg" width="220" height="41"></p>
        <p class="style1">- Tons of great features      - Easy Editor
          - Tools for Online       Marketing
          - Help and Support Available
          - Your own FREE Domain    </p>
        <a href="http://www.Webpage66.com/builder/signup/23.htm"><img src="http://webpage.com/info/images/10dayfreetrial.jpg" border="0"></a>    <img src="http://webpage.com/info/images/features.jpg" width="220" height="39"></p>
        <p class="style1">- 1,600 templates      - FREE domain name
          - ecommerce
          - shopping cart
          - links page
          - photo albums
          - auto responders
          - carrier class security
          - catalogs
          - newsletters
          - 2000+ images library
          - feedback form
          - email      - multimedia video
          - free support
          </p>      <img src="http://webpage.com/info/images/testimonials.jpg" width="220" height="37"><p class="style3">"One of the most powerful ways to create a professional looking website."</em>
            <span class="style1">
            David Chalk, Chalk TV</span>       
            "My web site pages are as good or better than some of my friends who are in the same type of business. They also are amazed especially when one considers they paid upwards of $6,000.00 for their sites. No Kidding!Your support is great! My site is great! I am happy."</em>
          <p class="style1">Dale McIntosh AMJ Funding Group</p>
    </p>
    </p>      &nbsp;</p>
        &nbsp;</p>
        &nbsp;</p></td>
        <td width="540" valign="top"><a href="http://www.Webpage66.com/host/page/238.htm"><img src="http://webpage.com/info/images/3websites.jpg" width="440" height="211" border="0"></a>
        <img src="http://webpage.com/info/images/startlearndesign.jpg" width="492" height="55" border="0" usemap="#Map">    <map name="Map">
          <area shape="rect" coords="10,-40,133,52" href="http://www.Webpage66.com/builder/signup/23.htm" alt="Start your free trial today!">
          <area shape="rect" coords="175,4,306,132" href="http://www.Webpage66.com/host/page/243.htm" alt="Learn more about our builder">
          <area shape="rect" coords="349,4,483,134" href="http://www.Webpage66.com/host/designer.htm" alt="Get your site professionally designed.">
        </map>       
        <img src="http://webpage.com/info/images/nohtmlskills.jpg" width="495" height="103">
        <p class="style2">If you can type a letter and click on a mouse, you will be able to build a great website. As for the design of your site, we have over 1,600 templates to choose from. Don't see something that you like? We can customize the look of your website.     
          We understand that starting a new business or promoting an existing one can be challenging - that's why we've included over $450 of FREE</strong> marketing credits for every one of our hosting customers! </p>
       
          <li class="style2">Marketing and Search Engine Optimization (SEO) Guides </li>
          <li class="style2">$50 Google Adwords Credit </li>
          <li class="style2">$60 Yahoo! Search Marketing Credit </li>      <li class="style2">FREE Domain Name</li>
          <li class="style2">Free eBay Integration </li>
          <li class="style2">Access to all major search engine submission sites </li>
          <li class="style2">Access and discount on search engine submission tools like Submitnet and HyperSubmit </li>
          <li class="style2">and many more! </li>
        </ul>    <p class="style2">       
            <img src="http://webpage.com/info/images/30daymoneyback.jpg" width="236" height="164"><a href="http://www.Webpage66.com/builder/signup/23.htm"><img src="http://webpage.com/info/images/price.jpg" border="0"></a>
           
            <a href="http://www.Webpage66.com/builder/signup/23.htm"><img src="http://webpage.com/info/images/plans.jpg" border="0"></a>
        </p></td>
      </tr>
    </table><!-- Embedded ParaChat: Insert the script below at the point on your page where you want the Click To Chat link to appear -->
    <script type='text/javascript' src='//livehelp.parachat.com/include.js?domain=404.parachat.com'></script>
    <script type='text/javascript' >
    sWOResponse='';
    if(typeof sWOTrackPage=='function')sWOTrackPage();
    </script>
    <!-- End of embedded ParaChat --></body></html>                    </td>
                    </tr>
                </table>                    </font></td></tr>
                    </table>            </body>
            </html></center>
    </body>
    </html>)
    [10/25/2016 15:26:53] [Oxide] 15:26 [Info] [Loyalty] Assigned every online player 1 loyalty point.
    Its spamming in my console(
    upload_2016-10-25_15-30-43.png
     
  4. you are using webapi when you didnt set it correctly
    if you didnt want to use it, then dont use it,
    if you want to use it, you need to create your own api
     
  5. But I don't use it
    upload_2016-10-25_21-42-7.png
    Don't change WebApi
    but still getting this error from webpage.com site
     
  6. then you are not calling a database, but a webpage.
     
  7. Two current issues:

    1 ) When you temp ban a player the message isn't announced and the player is still connected until manually kicked
    2 ) When player is rejected connection from the server they are given the default ban message and not the one from EBS (because it checks native bans first?)
     
  8. Code:
    [Oxide] 22:09 [Error] Failed to call hook 'SetPlayerData' on plugin 'PlayerDatabase v1.0.5' (InvalidCastException: Cannot cast from source type to destination type.)
    I have ban one player but it is realy good added to banlist ?
     
  9. most likely no seeing this error
     
  10. Code:
    [Oxide] 22:34 [Error] MySql handle raised an exception (Exception: Connection is null)
    [Oxide] 22:34 [Debug] at Oxide.Ext.MySql.Libraries.MySql+MySqlQuery.Handle () [0x00000] in :0
    [Oxide] 22:34 [Error] MySql handle raised an exception (Exception: Connection is null)
    [Oxide] 22:34 [Debug] at Oxide.Ext.MySql.Libraries.MySql+MySqlQuery.Handle () [0x00000] in :0 
    Im spam with this eror to. I can you share my config, i don't understand where is the problem
     
  11. Appears that you haven't specified a host to the MySql server - paste your config here.
     
  12. [Error] EnhancedBanSystem.cs(410,34): error CS1061: Type `Oxide.Core.Libraries.Covalence.IPlayerManager' does not contain a definition for `GetConnectedPlayer' and no extension method `GetConnectedPlayer' of type `Oxide.Core.Libraries.Covalence.IPlayerManager' could be found. Are you missing an assembly reference?
     
  13. Code:
    {
      "Ban - Broadcast": true,
      "Ban - Default Reason": "Banned",
      "Ban - Evade": true,
      "Ban - Evade Reason": "Ban Evade",
      "Ban - Log": true,
      "Banlist - Permission": "enhancedbansystem.banlist",
      "Bans - Broadcast": true,
      "Bans - Broadcast Message": "",
      "Bans - Default Reason": "Contactez un membres du staff pour plus d'info",
      "Bans - Permission": "enhancedbansystem.ban",
      "BanSystem - 0: Both System, 1: LocalData, 2: OnlineWebRequest": 0,
      "DataType - Files - use": false,
      "DataType - MySQL - Database": "103031_sql",
      "DataType - MySQL - Host": "sql.mtxserv.fr",
      "DataType - MySQL - Pass": "****************",
      "DataType - MySQL - Port": 3306,
      "DataType - MySQL - use": false,
      "DataType - MySQL - User": "w_103031",
      "DataType - Native - use": false,
      "DataType - PlayerDatabase - IP Filename": "EnhancedBanSystem_IPs.json",
      "DataType - PlayerDatabase - use": true,
      "DataType - SQLite - Database Filename": "banlist.db",
      "DataType - SQLite - use": false,
      "DataType - WebAPI - Banlist": "http://webpage.com/banlist.php?startid={startid}",
      "DataType - WebAPI - Host": "http://webpage.com/api.php?action=ban&pass=mypassword&id={id}&steamid={steamid}&name={name}&ip={ip}&reason={reason}&source={source}&game={game}&platform={platform}&server={server}&tempban={expiration}",
      "DataType - WebAPI - IsBanned": "http://webpage.com/api.php?action=isbanned&pass=mypassword&id={id}&update={update}&steamid={steamid}&ip={ip}&time={time}&name={name}&game=Rust&server=rust.kortal.org:28015",
      "DataType - WebAPI - Unban": "http://webpage.com/api.php?action=unban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&name={name}&source={source}",
      "DataType - WebAPI - use": false,
      "Denied Connection - Log": true,
      "Kick - Broadcast": true,
      "Kick - Broadcast Message": "{0} a été kick du serveur ({1})",
      "Kick - Log": true,
      "Kick - On Ban": true,
      "Kick - Permission": "enhancedbansystem.kick",
      "Online Banlist - Ban line request": "http://webpage.com/api.php?action=ban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&reason={reason}&source={source}&tempban={expiration}",
      "Online Banlist - Banlist page": "http://webpage.com/banlist.php",
      "Online Banlist - Check if banned request": "http://webpage.com/api.php?action=isbanned&pass=mypassword&steamid={steamid}&ip={ip}&time={time}&name={name}",
      "Online Banlist - Check if banned request - answer no": "0",
      "Online Banlist - Check if banned request - answer yes": "1",
      "Online Banlist - Unban line request": "http://webpage.com/api.php?action=unban&pass=mypassword&steamid={steamid}&name={name}&ip={ip}&name={name}&source={source}",
      "Permissions - Ban": "enhancedbansystem.ban",
      "Permissions - Banlist": "enhancedbansystem.banlist",
      "Permissions - Kick": "enhancedbansystem.kick",
      "Permissions - Unban": "enhancedbansystem.unban",
      "Server Info - Game": "Rust",
      "Server Info - IP:PORT": "37.187.131.133:27150",
      "Server Info - Platform": "Steam",
      "Unban - Permission": "enhancedbansystem.unban"
    }
    I have turn off MySql for moment use only PlayerDatabase, but with the PlayerDatabase i don't see here is the list of all banned.

    I pref MySql for simplicity :/
     
  14. you need to use Native if you want local banlist
     
  15. If I want the plugin to ban all known IPs for a user, do I need to have "DataType - PlayerDatabase - use" also set to true, or is support built in as long as I have PlayerDatabase installed?
     
    Last edited by a moderator: Oct 30, 2016
  16. the plugin will only ban the last known IP
    as it's useless to ban all known ips,because if your user changed ip,he won't get his old ip
    but if you still want to, you can use Player informations to ban all the /lastips of a player
     
  17. That makes sense, actually.
     
  18. [11/04/2016 01:03:23] [Oxide] 01:03 [Error] Failed to call hook 'OnServerInitialized' on plugin 'EnhancedBanSystem v5.0.8' (NullReferenceException: Object reference not set to an instance of an object)
    [11/04/2016 01:03:24] [Oxide] 01:03 [Error] Web request callback raised an exception (NullReferenceException: )
    [11/04/2016 01:04:10] [Oxide] 1:04 AM [Error] MySql handle raised an exception (Exception: Connection is null)
    [11/04/2016 01:04:10] [Oxide] 1:04 AM [Error] MySql handle raised an exception (Exception: Connection is null)
    [11/04/2016 01:04:44] [Oxide] 1:04 AM [Error] MySql handle raised an exception (Exception: Connection is null)
    [11/04/2016 01:04:44] [Oxide] 1:04 AM [Error] MySql handle raised an exception (Exception: Connection is null)
     
  19. fix please
     
  20. EnhancedBanSystem - Failed to compile: EnhancedBanSystem.cs(1785,35): error CS1061: Type `Oxide.Core.Libraries.Covalence.IPlayerManager' does not contain a definition for `GetAllPlayers' and no extension method `GetAllPlayers' of type `Oxide.Core.Libraries.Covalence.IPlayerManager' could be found. Are you missing an assembly reference?

    meeds an update