Stránka 1 z 2
UltraBans
Napsal: 22 pro 2011, 19:43
od AsraelCZ
93.91.250.103:27545
Mno ... takže mám na serveru ultrabans ale když to tam mám tak mi nejde /ban apod. nevíte proč? mám pro sebe všechny práva
Re: UltraBans
Napsal: 22 pro 2011, 19:54
od Shaggy84675
Máš to propojené s MySQL databází?
Pokud ano, pošli mi sem config.
Re: UltraBans
Napsal: 22 pro 2011, 20:01
od AsraelCZ
mám ..
Kód: Vybrat vše
#Change to MySQL for mysql support#
#Change to SQLite for sqlite support#
Database: SQLite
mysql-database: 'jdbc:mysql://localhost:3306/gs_27545_1'
mysql-user: 'gs_27545_1'
mysql-password: '********'
#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
#Ultraban requires Vault for the Command /fine#
#Disable this if you don't not want to use fines#
#Or would rather not use the Vault Library#
#Command Checks#
useFine: true
useJail: true
useLockdown: true
useStarve: true
useForceRespawn: true
useEmpty: true
usePermaban: true
useWarn: true
useRules: true
#change to true or false to enable lockdown#
#also can be done ingame /lockdown#
lockdown: false
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.'
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
Re: UltraBans
Napsal: 22 pro 2011, 20:34
od Shaggy84675
Změň ve 3. řádku z SQlite na MySQL
Z:
Kód: Vybrat vše
#Change to MySQL for mysql support#
#Change to SQLite for sqlite support#
Database: SQLite
mysql-database: 'jdbc:mysql://localhost:3306/gs_27545_1'
na:
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_27545_1'
Re: UltraBans
Napsal: 22 pro 2011, 21:08
od AsraelCZ
Díky a co znamená toto když to mám na webu? Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/users/bartcz/war-of-nations.4fan.cz/web/banlist.php on line 35
Re: UltraBans
Napsal: 22 pro 2011, 21:17
od AsraelCZ
Hmm tak jsem to změnil na mysql a stejně to nejde ani po restartu
Re: UltraBans
Napsal: 22 pro 2011, 22:54
od Shaggy84675
vytvořila se ti v MySQL tabulka s banlist a banlistip?
//EDIT máš na serveru Commandbook? nebo Essentials?
Re: UltraBans
Napsal: 22 pro 2011, 23:06
od AsraelCZ
mám tam essentials
Re: UltraBans
Napsal: 22 pro 2011, 23:08
od AsraelCZ
jo a mám tam ty tabulky

já si toho nevšiml
Re: UltraBans
Napsal: 22 pro 2011, 23:10
od Shaggy84675
Podle mě má Essentials taky nějaký příkaz v sobě na /BAN zkus projít config a zakázat ho.