Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

MaxBans vs Wyswietlanie tresci bana na chacie... pomocy!


DoriiSuperPies

Rekomendowane odpowiedzi

Opublikowano

Witam.
Posiadam na swoich sewerach plugin MaxBans - jak się dostanie bana i chce się ponownie wbić, jest ban ok lecz wyświetlają się dziwne znaki ([LP]) w miejsce \n (messages.yml czyta \n jako nowa linia). Jak pozbyć się tego znaku z serwera, żeby nie był wyświetlany?

bannergif.gif

Opublikowano

Witam.

Posiadam na swoich sewerach plugin MaxBans - jak się dostanie bana i chce się ponownie wbić, jest ban ok lecz wyświetlają się dziwne znaki ([LP]) w miejsce /n (messages.yml czyta /n jako nowa linia). Jak pozbyć się tego znaku z serwera, żeby nie był wyświetlany?

 

Wklej config.yml oraz messages.yml na pastebin.com postaram sie pomóc :>

                                                             graphic.png

Opublikowano

Wklej config.yml oraz messages.yml na pastebin.com postaram sie pomóc :>

Tak jak kolega powiedział wklej nam swój config i maessages postartamy się pomóc, bo tak na ślepo to troszkę trudno

Opublikowano

@TheMatieusz @Zegcio
Proszę, oto pliki.

Config.yml

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: 0
 
update:
  #Update types:
  #Default: Perform update checks and automatically download and install the latest version from DevBukkit
  #No_Version_Check: Download and install the latest version, regardless of the currently installed version
  #No_Download: Checks for an update, but will not automatically download the latest version
  #None: Does not check for updates.
  type: NO_DOWNLOAD
 
#Accepts colorcodes. (v1.2)
default-reason: "Brak wpisanego powodu"
#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: "Chcesz UNBANA? Wejdz na forum dcraft.topl.pl i napisz podanie o UB albo kup w sklepie SMS UB!"
 
#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
    
    
#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.infoto 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
    - 188.68.250.119
    #Should we notify players with maxbans.notify when a player is joining with a proxy IP?
    notify: false
    #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: cenzored
    pass: cenzored
    host: cenzored
    port: cenzored
    name: cenzored

    read-only: false

 

 

Messages.yml

 

disconnection:

    you-were-kicked: "&cZostales wyrzucony przez &4{banner}&c. \nPowod: \n&4{reason}&c"
    you-are-banned: "&cZostales zbanowany na zawsze!\n Powod: \n&4{reason}&c\nZbanowano przez &4{banner}&c.\n{appeal-message}"
    you-are-ipbanned: "&cTwoje IP sieci jest zbanowane!\n Powod: \n&4{reason}&c.\nZbanowano przez &4{banner}&c.\n{appeal-message}"
    you-are-temp-banned: "&cZostales zbanowany na czas!\n Powod: &a{reason}&f\nZbanowany przez &a{banner}&f.\nKoniec Bana za: {time}.\n{appeal-message}"
    you-are-temp-ipbanned: "&cTwoje IP zostalo tymczasowo zbanowane!\n Powod: &4{reason}&c\nZbanowano przez &4{banner}&c.\nCzas do odbanowania: {time}.\n{appeal-message}"
    
    you-are-rangebanned: "&fYour IP Address (&c{range}&f) is RangeBanned.\nReason: &a{reason}&f\nBy: &a{banner}&f.\n{appeal-message}"
    you-are-temp-rangebanned: "&fYour IP Address (&c{range}&f) is RangeBanned.\nThe ban expires in &a{time}&f.\nReason: &a{reason}&f\nBy: &a{banner}&f.\n{appeal-message}"
    
    you-are-proxied: "&cZostales wyrzucony\n Twoje IP ({ip}) jest na liscie proxy, wylacz proxy i wejdz ponownie."
    
    lockdown-active: "\n&6{reason}"
    invalid-letters: "&cZostales wyrzucony.\nTwoj nick zawiera niedozwolone znaki:\n&4'{letters}'&c"
    invalid-name: "&cZostales wyrzucony.\nTwoj nick jest nieprawidlowy!"
    
    
announcement:
    player-was-kicked: "&4{name}&c zostal wyrzucony przez &4{banner}&c za &4{reason}&c."
    player-was-banned: "&4{banner}&c zbanowal &4{name}&c za &4{reason}&c."
    player-was-ip-banned: "&4{banner}&c zbanowal ip &4{name}&c (&4{ip}&c) za &4{reason}&c."
    player-was-muted: "&4{banner}&c wyciszyl &4{name}&c za &4{reason}&c."
    player-was-tempbanned: "&4{banner}&c zbanowal tymczasowo &4{name}&c na &4{time}&c, za &4{reason}&f"
    player-was-tempipbanned: "&4{banner}&c zbanowal ip tymczasowo &4{name}&c (&4{ip}&c) na &4{time}, za &4{reason}&c"
    player-was-temp-muted: "&4{banner}&c wyciszyl &4{name} &cza &4{reason}&c na &4{time}."
    player-was-unbanned: "&2{banner}&a odbanowal &2{name}&a."
    player-was-unmuted: "&2{banner}&a wylaczyl wyciszenie dla gracza &2{name}&a."
    player-was-warned: "&4{banner}&c ostrzegl gracza &4{name}&c za &4{reason}&c."
    ip-was-unbanned: "&a&2{ip}&a zostalo odbanowane przez &2{banner}&a."
    player-warnings-cleared: "&2{banner}&a wyczyscil graczowi &2{name}&a wszystkie ostrzezenia."
    unwarn-success: "&2{banner}&a wyczyscil graczowi &2{name}&c ostrzezenia."
    
error:
    no-player-given: "&cNie podales nicku."
    no-permission: "&cNie masz uprawnien aby uzyc systemu Banowania na tym serwerze!."
    no-ip-known: "&cThat player has no IP history!"
    no-ipban-found: "&cNie mozna znalezc bana dla tego ip: &a{ip}&f."
    no-ban-found: "&cNie mozna znalezc bana dla tego nicku: &a{name}&f."
    no-mute-found: "&a{name}&c nie jest wyciszony."
    no-dupeip-duplicates: "&fNie duplikuj!"
    no-history: "&cNie ma historii."
    no-warnings: "&4{name}&c nie ma zadnych ostrzezen."
    
    unknown-player: "&cNie znaleziono takiego gracza: &4{name}&c."
    player-already-banned: "&cTen gracz jest juz zbanowany."
    ip-already-banned: "&cTo IP jest juz zbanowane."
    
    
    tempban-shorter-than-last: "&cThat player has a tempban which will last longer than the one you supplied!"
    tempipban-shorter-than-last: "&cThat IP has a tempban which will last longer than the one you supplied!"

    tempmute-shorter-than-last: "&cThat player already has a mute which lasts longer than the one you tried to give."

 

bannergif.gif

Opublikowano

@TheMatieusz I wyświetla się '', właściwie napisałeś post który nie wnosi nic do tematu;

 

Nie ma \n to nie ma znaku, lecz chcę żeby był \n (nowa linia)...

Sorry źle przeczytałem...

 

A co do tematu:

Na moim serwerze twoje messages.yml działa normalnie...

Więc dziwne, spróbuj zaktualizować plugin może pomoże, a jak nie to ja już nie wiem.

Opublikowano

@TheMatieusz U mnie również!
Piszę, \n = nowa linia, lecz na chacie jest znak, ponieważ gdy gracz jest zbanowany wchodzi przez portal na serwer. Mam serwerownię. Jak gracz jest na serwerze i dostanie bana, pokazuje mu się normalnie na tle treść bana.
Plugin mam najnowszy.

bannergif.gif

Opublikowano

@DoriiSuperPies

 

Wszystko wydaje sie być okej, nie wiem co moze byc przyczyną ;d. Jak dalej jest ten błąd to poszukaj w jakimś pluginie/skrypcie czy nic sie nie gryzie z MaxBans ;p

                                                             graphic.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...