JAK napojit plugin maxbans na mysql + pridani banlistu

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Uživatelský avatar
KockaHraje
Příspěvky: 94
Registrován: 05 led 2017, 15:28
Reputation: 4

JAK napojit plugin maxbans na mysql + pridani banlistu

#1 Příspěvekod KockaHraje » 07 úno 2017, 22:45

82.208.17.20:27899
Dobrý den som v MySQL nováčik a potreboval by som poradiť neviem jak nastavit plugin maxbans aby dával automaticky lugin na banlist

Spoiler: zobrazit
version: 2.0

lockdown: false
lockdown-reason: ""

auto-dupeip: false

history-expirey-minutes: 10080 #1 week.

#Warnings config section
warnings:
#How long should warnings take to 'expire'?
#Set to 0 for never (...Honestly, I believe you should forgive them after a month at most...)
expirey-in-minutes: 4320
# This section looks scary, but really isn't... If you're scared,
# Just read the actual stuff and skip the comments unless you want to do some tricky things.

#What actions should we take when a player receives a warning?
#Format is like:
#<number of warnings>: 'commands to execute;seperated by semicolons'
#Examples:
#actions:
# 1: 'msg {name} You have been warned!'
# 2: 'strike {name};msg {name} You have angered Zeus!'
# 3: 'tempban {name} 1 hour Reached Max Warnings. Reasons:\n{reasons}\nBy: {banner}'
#Variables allowed:
#{name} the name of the player
#{ip} the last known IP of the player
#{reason} the last reason the player was warned
#{reasons} all the reasons (seperated by new lines) for this punishment. Example:
#Reason1: "Griefing"
#Reason2: "Spamming"
#Reason3: "Begging for items"
#Now, if I did
#3: 'tempban {name} 1 hour Reached Max Warnings:\n{reasons}'
#it would disconnect the user with this message:
#-------------------------------------
#You have been Temporarily Banned for:
#'Reached Max Warnings:
#Griefing
#Spamming
#Begging for items'
#By Console. Expires in 1 hour
#-------------------------------------
#If the command starts with a /, then the banner will execute the command
#Otherwise, the command will be executed by CONSOLE.
#You might want to use -s in these commands (To stop them broadcasting messages to players)
actions:
2: '/kick {name} Final Warning: \n{reason}'
3: '/tempban {name} 1 hour Reached Max Warnings:\n{reasons}'
#After receiving this many warnings, they will be all deleted.
#If 'actions' has an action for a number higher than this, then the action will never be
#done... Because this resets it to 0
#If you set this to <= 0, then it will be ignored, and warnings will never reset.
max: 3

#Should we check that we're running the latest version of MaxBans?
#This does NOT update it for you, it just notifies you in the console when
#the server boots up if there is a new version available.
#Not working in v1.9 & v2.0.
update-check: true

#Accepts colorcodes. (v1.2)
default-reason: "Misconduct"
#Appeal-message accepts color codes, like &a and &4... Set it to "" to disable this. Accepts new line characters, just add \n where you want a new line.
appeal-message: "No appeal website set :("

#The two char colors used that STAFF will see.
#Usually, primary = text, and secondary = variables (Like ban reason)
#0-9,a-f are valid. Also any Bukkit ChatColor is valid (Eg RED, AQUA, DARK_GRAY)
color:
primary: f
secondary: a

#Maximum tempban time, in seconds. 604800 is a week.
MaxTempbanTime: 604800


#This applies to kick, ban, and anything else.
kick-colors:
#0-9,a-f are valid. Also any Bukkit ChatColor is valid (Eg RED, AQUA, DARK_GRAY)
reason: f #"Misconduct"
regular: f #"By"
banner: f #"Netherfoam"
time: f #4 hours 59 minutes remaining.


#Some plugins will register their commands before we do (Eg other ban/kick plugins).
#This option allows users to try and force MaxBans to take those already-taken commands.
override-commands: true

chat-commands:
- me
- say

#Should we notify players with maxbans.notify whenever a banned player tries (fails) to join?
notify: true
#Should we verify names have the letters (A-Z,a-z,0-9 and _) only and are valid?
filter-names: true

#Should we use the DNS blacklist?
dnsbl:
#Should we use this? Setting it to false disables DNSBL entirely.
use: true
#The DNSBL servers we should use to look up. More servers = Slower results.
#Each server takes approx 4 seconds to respond. Use http://dnsbl.info to find
#More servers, if you like.
#DNSBL results are cached for 1 week, then expire (Are deleted).
#This is how MaxBans checks for proxied IPs
# 1. Have we looked the IP up on DNSBL before, and has it not expired? If so go to 3
# 2. Start IP lookup, this takes a few seconds...
# 3. If the IP is not a proxy, stop checking, they're allowed, do not proceed to step 4.
# 4. Take appropriate action (Kick, notify) if any.
servers:
- bl.spamcop.net
- sbl.spamhaus.org
#Should we notify players with maxbans.notify when a player is joining with a proxy IP?
notify: true
#Should we kick players who are discovered to have proxy IPs?
kick: false

bungee: false
# Sync is an advanced feature of MaxBans.
# It only applies to server owners who want to BAN/etc Players using a WEBPAGE, such as PHP Script
# Or owners who want two servers to have the SAME banlist!
# This option is in BETA! I take no responsibility if it breaks, though I will endeaver to fix it.
sync:
#Should we use Sync? Setting this to false disables it entirely :)
use: false
#Is this server the Sync server? Otherwise it's a client.
server: false
#The host of the Sync server, if this is a client.
host: 127.0.0.1
#The port of the Sync server.
port: 2711
#The password required to join.
pass: ChangeMeNow
debug: false

database:
mysql:true
user: 236380_mysql_db
pass: xxxxxx
host: mysql.fakaheda.eu
port: 3306
name: 236380_mysql_db
read-only: false

prosim o pomoc dakujem

vojtamaniak
Příspěvky: 3512
Věk: 26
Registrován: 18 úno 2012, 21:02
Reputation: 11

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#2 Příspěvekod vojtamaniak » 08 úno 2017, 10:31

Pro příště: Configy dávej do CODE tagů, aby se neztratilo formátování.

Mezi mysql: true musí být mezera.

A dále si nejsem jist tím hostem, určitě tam dáváš údaje, které ti přišli na mail?

Uživatelský avatar
KockaHraje
Příspěvky: 94
Registrován: 05 led 2017, 15:28
Reputation: 4

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#3 Příspěvekod KockaHraje » 09 úno 2017, 19:53

maxbans som na mysql uspešne napojil ale má to jednu muchu na banliste mu ukazuje error pritom som to iste napísal na maxbans
Spoiler: zobrazit
application:
mapping:
*: \*Module\Presenters\*Presenter
errorPresenter: Error

database:
dsn: 'mysql:host=%database.hostname%;dbname=%database.database%'
user: %database.username%
password: %database.password%
reflection: conventional
options:
lazy: TRUE

di:
debugger: TRUE

session:
debugger: TRUE

tracy:
maxLen: 100
maxDepth: 5
showLocation: TRUE
strictMode: TRUE

extensions:
webloader: WebLoader\Nette\Extension
autowired: Kdyby\Autowired\DI\AutowiredExtension
replicator: Kdyby\Replicator\DI\ReplicatorExtension
translation: Kdyby\Translation\DI\TranslationExtension
tracyBar: Mysteria\TracyExtension

translation:
default: cz
whitelist: [cs, sk, en, de, pl]
fallback: [cs_CZ]

tracyBar:
logParser:
enable: TRUE
groupLogs: FALSE
maximumLogs: 1000
locationDatabase: '%wwwDir%/www/location.mmdb'
forbiddenUserAgents:
- Bot
cacheParser:
enable: TRUE
cacheDirectory: '%tempDir%/cache'
validationParser:
enable: FALSE

webloader:
css:
default:
tempDir: %wwwDir%/www
tempPath: www
files:
- { files: ['*.css'], from: %wwwDir%/css }
filters:
- @cssMin
js:
default:
tempDir: %wwwDir%/www
tempPath: www
remoteFiles:
- https://code.jquery.com/jquery-3.1.1.min.js
files:
- %wwwDir%/js/nette.ajax.js
- %wwwDir%/js/nette.ajax.live.js
- %wwwDir%/js/fancybox.min.js
- %wwwDir%/js/tipsy.js
- %wwwDir%/js/main.js
filters:
- @jsMin
debugger: FALSE

decorator:
Presenters\BasePresenter:
setup:
- setParameters(@container::getParameters())
Presenters\ErrorSqlPresenter:
setup:
- setParameters(%database%)

services:
nette.latteFactory:
setup:
- addFilter(NULL, [Utils\Filters, loader])
router: Routers\RouterFactory::createRouter
cssMin: Joseki\Webloader\CssMinFilter
jsMin: Joseki\Webloader\JsMinFilter
- Models\PunishmentRepository('v_punishment', %other.itemsPerPage%, %database%)
- Utils\Mailer(%other.email%)

php:
date.timezone: Europe/Prague

parameters:
database:
hostname: 'mysql.fakaheda.eu' # Hostitel MySQL databáze
username: '236380_web' # Přihlašovací jméno k MySQL databázi
password: 'xxxxxxx' # Heslo k MySQL databázi
database: '236380_web' # Název MySQL databáze
other:
email: 'stefanmojzes@gmail.com' # Váš email, na který budou odesílány žádosti o zrušení a udělení trestu
itemsPerPage: 25 # Maximální počet trestů zobrazených na jedné stránce
pagesLimit: 5 # Maximální počet dalších stránek před a za aktuální stránkou zobrazených u stránkování
protestUrl: '' # URL adresa webu včetně http://, kam se budou směrovat žádosti o zrušení trestu; prázdná znamená zobrazení standardního formuláře odesílaného na email
suggestUrl: '' # URL adresa webu včetně http://, kam se budou směrovat žádosti o udělení trestu; prázdná znamená zobrazení standardního formuláře odesílaného na email-

P.S JE T banlist od Mysteria

Uživatelský avatar
Mysteria
Příspěvky: 9122
Registrován: 26 pro 2009, 15:40
Reputation: 7
Bydliště: Česká republika
Kontaktovat uživatele:

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#4 Příspěvekod Mysteria » 09 úno 2017, 21:36

Co třeba sem napsat, co přesně ti to píše?

Uživatelský avatar
KockaHraje
Příspěvky: 94
Registrován: 05 led 2017, 15:28
Reputation: 4

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#5 Příspěvekod KockaHraje » 09 úno 2017, 22:13

ja neviem kde je chyba
ked dám do mozilly

http://236380_web.fakaheda.eu/banlist/
tak ma to upozorni na error

Uživatelský avatar
Mysteria
Příspěvky: 9122
Registrován: 26 pro 2009, 15:40
Reputation: 7
Bydliště: Česká republika
Kontaktovat uživatele:

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#6 Příspěvekod Mysteria » 09 úno 2017, 22:19

Já tam teda žádnej error nevidím, ormálně všechno OK. Možná to bylo tím, jak vypadávalo i fórum a weby od Fakahedy.

Uživatelský avatar
KockaHraje
Příspěvky: 94
Registrován: 05 led 2017, 15:28
Reputation: 4

Re: JAK napojit plugin maxbans na mysql + pridani banlistu

#7 Příspěvekod KockaHraje » 09 úno 2017, 22:22

1045 - SQL Error

Access denied for user '236380_web'@'82.208.17.20'.

Uživateli '236380_web' byl odepřen přístup k databázi '82.208.17.20'.

-- 09 úno 2017, 22:36 --

banlist už ide
možte //locked

PS keďže nemám karmu aspoň ďakujen za ochotu


Zpět na „Minecraft, Tekkit“

Kdo je online

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