Nefunguje BanList

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
L0okAss
Příspěvky: 129
Registrován: 24 bře 2012, 13:59
Reputation: 0

Nefunguje BanList

#1 Příspěvekod L0okAss » 03 dub 2012, 17:53

Grrrr! Nefunguje mi banlist na webu. Zkoušel jsem oba dva pluginy jak FigAdmin tak Ultraban a nic ( přitom ultra ban mám na druhém serveru a jede krásně)
tady je config UltraBanu:

Kód: Vybrat vše

#Change to MySQL for mysql support#
#Change to SQLite for sqlite support#
Database: MySQL
mysql-database: 'jdbc:mysql://localhost:3306/minecraft'
mysql-user: 'gs_37359_1'
mysql-password: 'heslo sem dávat nebudu :D'
#Change these if you want to load or create different databases#
#First load will create these databases#
mysql-table: banlist
mysql-table-ip: banlistip
#SQLite Information#
sqlite-dbname: banlist
#parameters#
auto-complete: true
#Command Checks#
useFine: true
#Max allowable fine#
#If Zero then no max will be placed#
maxFineAmt: 0
useJail: true
useLockdown: true
useStarve: true
useForceRespawn: true
useEmpty: true
usePermaban: true
useWarn: true
useRules: true
#Default labels#
defAdminName: 'server'
defReason: 'not sure'
#change to true or false to enable lockdown#
#also can be done ingame /lockdown#
lockdown: false
#Enabling dupePolicy will disallow duplicate IP connections#
dupePolicy: false
#IPAddress Validation/Proxy Check#
#Be Advised that players may be too distant for ping check#
PingCheck: false
#This will also restrict client ping ~ms#
#If set to high server will lag when players join#
HostPingTimeOut: 1800
#Info Logon Player Host Check#
LogonInfo: true
messages:
  banMsgFailed: '&c%victim% &8is already banned!'
  unbanMsg: '&8Successfully unbanned &c%victim%&8!'
  unbanMsgBroadcast: '&c%victim% &8was unbanned by &9%admin%&8!'
  unbanMsgFailed: '&c%victim% &8is already unbanned!'
  kickAllMsg: '%admin% kicked everyone. Reason: %reason%!'
  kickMsgVictim: 'You have been kicked by %admin%. Reason: %reason%!'
  kickMsgBroadcast: '&c%victim% &8was kicked by &9%admin%&8. Reason: &c%reason%!'
  kickMsgFailed: '&8Kick failed: &8%victim% &8isn't online.'
  banMsgVictim: 'You have been banned by %admin%. Reason: %reason%!'
  banMsgBroadcast: '&c%victim% &8was banned by &9%admin%&8. Reason: &c%reason%!'
  permbanMsgVictim: 'You have been permabanned by %admin%. Reason: %reason%!'
  permbanMsgBroadcast: '&c%victim% &8has been permabanned by &9%admin%&8. Reason: &c%reason%!'
  tempbanMsgVictim: 'You have been temp. banned by %admin%. Reason: %reason%!'
  tempbanMsgBroadcast: '&c%victim% &8was temp. banned by &9%admin%&8. Reason: &c%reason%!'
  LoginTempban: '&8You are banned until &c%time%&8! Reason: &c%reason%!'
  LoginBan: '&8You are banned from this server! Reason: &c%reason%!'
  LoginIPBan: 'Your IP is banned!'
  fineMsgVictim: 'You have been fined by %admin% in the amount of %amt%!'
  fineMsgBroadcast: '&c%victim% &8was fined by &9%admin%&8 in the amount of &c%amt%!'
  emptyMsgVictim: '&9%admin% has cleared your inventory!'
  emptyMsgBroadcast: '&9%admin% has cleared the inventory of &c%victim%!'
  starveMsgVictim: '&8You are now starving!'
  starveMsgBroadcast: '&c%victim% is now starving!'
  fspawnMsgVictim: '&8You have been sent to spawn!'
  fspawnMsgBroadcast: '&c%victim% &8is now at spawn!'
  jailMsgVictim: '&8You have been jailed by &9%admin%&8. Reason: &c%reason%!'
  jailMsgRelease: '&c%victim% &8was released from jail by &9%admin%&8!'
  jailMsgBroadcast: '&c%victim% &8was jailed by &9%admin%&8. Reason: &c%reason%!'
  warnMsgVictim: '&8You have been warned by &9%admin%&8. Reason: &c%reason%!'
  warnMsgBroadcast: '&c%victim% &8was warned by &9%admin%&8. Reason: &c%reason%!'
  lockMsgLogin: 'Server is under a lockdown, Try again later! Sorry.'
  DupeIPKick: 'Duplicate IP addresses disabled.'
  jailCmdMsg: 'You cannot use commands while jailed!'
  jailChatMsg: 'Your cry falls on deaf ears.'
  jailPlaceMsg: 'You cannot place blocks while you are jailed!'
  jailBreakMsg: 'You cannot break blocks while you are jailed!'
  muteChatMsg: 'You have been muted!'
  unmuteMsgVictim: 'You have been unmuted.'
  unmuteMsg: 'You have unmuted %victim%.'
 
  ruleMsg: '&9The Servers Rules Are As Follows!'
#Adjust as you see fit or set ingame.#
rules:
  one:
  two:
  three:
  four:
  five:
  six:
  seven:
  eight:
  nine:
  ten:
#Do Not Change Values Below#
jail:
  x: 0
  y: 0
  z: 0
  yaw: 0
  pitch: 0


PHP soubor :

Kód: Vybrat vše

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "localhost";
   $dbuser = "gs_37359_1";
   $dbpass = "Heslo sem dávat nebudu";
   $dbname = "gs_37359_1";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Type</td>
<td>Name</td>
<td>Reason</td>
<td>Admin/Mod</td>
<td>Time</td>
<td>TimeTempBan</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

echo"</table>"

?>
</div>
Ban database provided by UltraBans.
</body></html>
Pomohl jsem ti ? tak mi dej karmu !:)

Uživatelský avatar
Vojko
Příspěvky: 3247
Věk: 28
Registrován: 24 dub 2011, 11:47
Reputation: 1
Bydliště: Slovensko, Bratislava

Re: Nefunguje BanList

#2 Příspěvekod Vojko » 03 dub 2012, 17:56

2 chyby ....

Kód: Vybrat vše

mysql-database: 'jdbc:mysql://localhost:3306/minecraft'


na

Kód: Vybrat vše

mysql-database: 'jdbc:mysql://localhost:3306/gs_37359_1'


A

Kód: Vybrat vše

   $server = "localhost";


na

Kód: Vybrat vše

   $server = "nazovMašiny.fakaheda.eu";
Aj keď tu na fóre nie som aktívny, môžete mi písať na Skype, E-Mail, ...

Uživatelský avatar
L0okAss
Příspěvky: 129
Registrován: 24 bře 2012, 13:59
Reputation: 0

Re: Nefunguje BanList

#3 Příspěvekod L0okAss » 03 dub 2012, 19:52

furt nefunguje :(
Pomohl jsem ti ? tak mi dej karmu !:)

Uživatelský avatar
LavorekCZ
Příspěvky: 1805
Registrován: 20 lis 2011, 13:58
Reputation: 0
Kontaktovat uživatele:

Re: Nefunguje BanList

#4 Příspěvekod LavorekCZ » 03 dub 2012, 19:56

Zkopíruj sem aktuální configy :) Ať víme, jestli si to upravil dobře.
Pomohl ti někdo? Pak určitě bude rád, když mu zvedneš karmu!
not sure

Uživatelský avatar
L0okAss
Příspěvky: 129
Registrován: 24 bře 2012, 13:59
Reputation: 0

Re: Nefunguje BanList

#5 Příspěvekod L0okAss » 03 dub 2012, 20:34

Config ultrabanu -

Kód: Vybrat vše

#Change to MySQL for mysql support#
#Change to SQLite for sqlite support#
Database: MySQL
mysql-database: 'jdbc:mysql://localhost:3306/gs_37359_1'
mysql-user: 'gs_37359_1'
mysql-password: 'heslokleslo'
#Change these if you want to load or create different databases#
#First load will create these databases#
mysql-table: banlist
mysql-table-ip: banlistip
#SQLite Information#
sqlite-dbname: banlist
#parameters#
auto-complete: true
#Command Checks#
useFine: true
#Max allowable fine#
#If Zero then no max will be placed#
maxFineAmt: 0
useJail: true
useLockdown: true
useStarve: true
useForceRespawn: true
useEmpty: true
usePermaban: true
useWarn: true
useRules: true
#Default labels#
defAdminName: 'server'
defReason: 'not sure'
#change to true or false to enable lockdown#
#also can be done ingame /lockdown#
lockdown: false
#Enabling dupePolicy will disallow duplicate IP connections#
dupePolicy: false
#IPAddress Validation/Proxy Check#
#Be Advised that players may be too distant for ping check#
PingCheck: false
#This will also restrict client ping ~ms#
#If set to high server will lag when players join#
HostPingTimeOut: 1800
#Info Logon Player Host Check#
LogonInfo: true
messages:
  banMsgFailed: '&c%victim% &8is already banned!'
  unbanMsg: '&8Successfully unbanned &c%victim%&8!'
  unbanMsgBroadcast: '&c%victim% &8was unbanned by &9%admin%&8!'
  unbanMsgFailed: '&c%victim% &8is already unbanned!'
  kickAllMsg: '%admin% kicked everyone. Reason: %reason%!'
  kickMsgVictim: 'You have been kicked by %admin%. Reason: %reason%!'
  kickMsgBroadcast: '&c%victim% &8was kicked by &9%admin%&8. Reason: &c%reason%!'
  kickMsgFailed: '&8Kick failed: &8%victim% &8isn't online.'
  banMsgVictim: 'You have been banned by %admin%. Reason: %reason%!'
  banMsgBroadcast: '&c%victim% &8was banned by &9%admin%&8. Reason: &c%reason%!'
  permbanMsgVictim: 'You have been permabanned by %admin%. Reason: %reason%!'
  permbanMsgBroadcast: '&c%victim% &8has been permabanned by &9%admin%&8. Reason: &c%reason%!'
  tempbanMsgVictim: 'You have been temp. banned by %admin%. Reason: %reason%!'
  tempbanMsgBroadcast: '&c%victim% &8was temp. banned by &9%admin%&8. Reason: &c%reason%!'
  LoginTempban: '&8You are banned until &c%time%&8! Reason: &c%reason%!'
  LoginBan: '&8You are banned from this server! Reason: &c%reason%!'
  LoginIPBan: 'Your IP is banned!'
  fineMsgVictim: 'You have been fined by %admin% in the amount of %amt%!'
  fineMsgBroadcast: '&c%victim% &8was fined by &9%admin%&8 in the amount of &c%amt%!'
  emptyMsgVictim: '&9%admin% has cleared your inventory!'
  emptyMsgBroadcast: '&9%admin% has cleared the inventory of &c%victim%!'
  starveMsgVictim: '&8You are now starving!'
  starveMsgBroadcast: '&c%victim% is now starving!'
  fspawnMsgVictim: '&8You have been sent to spawn!'
  fspawnMsgBroadcast: '&c%victim% &8is now at spawn!'
  jailMsgVictim: '&8You have been jailed by &9%admin%&8. Reason: &c%reason%!'
  jailMsgRelease: '&c%victim% &8was released from jail by &9%admin%&8!'
  jailMsgBroadcast: '&c%victim% &8was jailed by &9%admin%&8. Reason: &c%reason%!'
  warnMsgVictim: '&8You have been warned by &9%admin%&8. Reason: &c%reason%!'
  warnMsgBroadcast: '&c%victim% &8was warned by &9%admin%&8. Reason: &c%reason%!'
  lockMsgLogin: 'Server is under a lockdown, Try again later! Sorry.'
  DupeIPKick: 'Duplicate IP addresses disabled.'
  jailCmdMsg: 'You cannot use commands while jailed!'
  jailChatMsg: 'Your cry falls on deaf ears.'
  jailPlaceMsg: 'You cannot place blocks while you are jailed!'
  jailBreakMsg: 'You cannot break blocks while you are jailed!'
  muteChatMsg: 'You have been muted!'
  unmuteMsgVictim: 'You have been unmuted.'
  unmuteMsg: 'You have unmuted %victim%.'
 
  ruleMsg: '&9The Servers Rules Are As Follows!'
#Adjust as you see fit or set ingame.#
rules:
  one:
  two:
  three:
  four:
  five:
  six:
  seven:
  eight:
  nine:
  ten:
#Do Not Change Values Below#
jail:
  x: 0
  y: 0
  z: 0
  yaw: 0
  pitch: 0


banlist php -

Kód: Vybrat vše

"http://www.<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Ultra Banlist</title>
</head>
<body>
<h1>Ultra Banlist</h1>
<?php

// change these things

   $server = "victor.fakaheda.eu";
   $dbuser = "gs_37359_1";
   $dbpass = "heslokleslo";
   $dbname = "gs_37359_1";
   
mysql_connect($server, $dbuser, $dbpass);
mysql_select_db($dbname);

$result = mysql_query("SELECT * FROM banlist ORDER BY id DESC");
//This will display the most recent by id edit this query how you see fit. Limit, Order, ect.
echo "<table width=100% border=1 cellpadding=3 cellspacing=0>";

echo "<tr style=\"font-weight:bold\">
<td>Type</td>
<td>Name</td>
<td>Reason</td>
<td>Admin/Mod</td>
<td>Time</td>
<td>TimeTempBan</td>
<td>id</td>

</tr>";

while($row = mysql_fetch_assoc($result)){

if($col == "#eeeeee"){
$col = "#ffffff";
}else{
$col = "#eeeeee";
}
echo "<tr bgcolor=$col>";
if($row['type'] == "5"){
echo "<td>Unban</td>";
}else{
    if($row['type'] == "3"){
    echo "<td>Kick</td>";
    }else{
        if($row['type'] == "2"){
        echo "<td>Warn</td>";
        }else{
            if($row['type'] == "0"){
            echo "<td>Banned</td>";
            }else{
                if($row['type'] == "1"){
                echo "<td>IPBanned</td>";
                }else{
                    if($row['type'] == "4"){
                    echo "<td>Fine</td>";
                    }else{
                        if($row['type'] == "6"){
                        echo "<td>Jailed</td>";
                        }else{
                            if($row['type'] == "9"){
                            echo "<td>Perma</td>";
                            }else{
                            echo "<td>Unknown</td>";
//Holy Epic If Statement Batman!
                            }
                        }
                    }
                }
            }
        }
    }
}
echo "<td>".$row['name']."</td>";
echo "<td>".$row['reason']."</td>";
echo "<td>".$row['admin']."</td>";
//Convert Epoch Time to Standard format
$datetime = date("F j, Y, g:i a", $row['time']);
echo "<td>$datetime</td>";
$dateconvert = date("F j, Y, g:i a", $row['temptime']); 
if($row['temptime'] == "0"){
echo "<td>None</td>";
}else{
echo "<td>$dateconvert</td>";
}
echo "<td>".$row['id']."</td>";

echo "</tr>";
}

echo"</table>"

?>
</div>
Ban database provided by UltraBans.
</body></html>


nezdá se mi tento řádek

Kód: Vybrat vše

mysql-database: 'jdbc:mysql://localhost:3306/gs_37359_1'

mám ho dobře ?
Ani totiš na victor fakaheda se nic nezapisuje , zatím co na Juliet na mém druhém serveru je tam 270 zápisů z toho banlistu
Pomohl jsem ti ? tak mi dej karmu !:)

Uživatelský avatar
Shaggy84675
Příspěvky: 1239
Věk: 28
Registrován: 23 srp 2011, 12:53
Reputation: 0
Kontaktovat uživatele:

Re: Nefunguje BanList

#6 Příspěvekod Shaggy84675 » 04 dub 2012, 06:31

zobrazí se ti tabulky v MySQL?
Omluvte prosím moji nefunkčnost podpisu. Momentálně přesouvám podpis na svůj webserver.

Uživatelský avatar
Sejsel
Příspěvky: 4131
Registrován: 19 čer 2011, 09:43
Reputation: 0
Bydliště: /home/sejsel/
Kontaktovat uživatele:

Re: Nefunguje BanList

#7 Příspěvekod Sejsel » 04 dub 2012, 12:37

Máš to dobře, co máš na serveru za jiné pluginy? Jiné pluginy si mohou ukradnout příkaz, takže se vlastně nic v tom pluginu neprovede, stává se to, když máš na serveru např. Essentials.
01101110011101010110001001110111

Uživatelský avatar
L0okAss
Příspěvky: 129
Registrován: 24 bře 2012, 13:59
Reputation: 0

Re: Nefunguje BanList

#8 Příspěvekod L0okAss » 04 dub 2012, 14:53

no,na serveru essentials mám,ale na druhém serveru je taky mám a funguje banlist..
Pomohl jsem ti ? tak mi dej karmu !:)

Uživatelský avatar
L0okAss
Příspěvky: 129
Registrován: 24 bře 2012, 13:59
Reputation: 0

Re: Nefunguje BanList

#9 Příspěvekod L0okAss » 04 dub 2012, 14:58

Tak jsem zkoušel smazat essentials a nic
Pomohl jsem ti ? tak mi dej karmu !:)

Uživatelský avatar
Sejsel
Příspěvky: 4131
Registrován: 19 čer 2011, 09:43
Reputation: 0
Bydliště: /home/sejsel/
Kontaktovat uživatele:

Re: Nefunguje BanList

#10 Příspěvekod Sejsel » 04 dub 2012, 15:09

Seznam pluginů, prosím
01101110011101010110001001110111


Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 51 hostů