Stránka 1 z 1
AdvancedBan - Nefungují bany
Napsal: 29 srp 2016, 13:04
od Patik
Server: 82.208.17.22:27610
Zdravím,
Jelikož mě nešel ultrabans, našel jsem zde doporučení na AdvancedBan, který má i svůj banlist a plugin se i prostě zalíbil.
Já si ho stáhl, přeložil jsem ho pro moje účely, prostě nic profesionálního, nechtěl jsem to ale anglicky a přeložil jsem i jednotky času, bylo tam minutes, tak jsem to přeložil na minuty apod.
Dnes jsem na zkoušku dal ban na různé časy lidem, i když mu dám třeba perma ban nebo na měsíc, tak se hned může připojit a hrát a když mu dám znovu ban, napíše to, že už ho má.
Mě napadlo, že by to mohlo mít něco společného s tím, jak jsem přeložil ty jednotky času, nebo máte jiné doporučení?
Děkuji za veškeré rady.
Re: AdvancedBan - Nefungují bany
Napsal: 29 srp 2016, 14:29
od TopCz
Výpis logu něco v konzoly? Potřebujeme více informací ☺
Re: AdvancedBan - Nefungují bany
Napsal: 04 zář 2016, 12:30
od Patik
Právě, že v konzoli nic není ohledně tohoto pluginu...
Config:
Kód: Vybrat vše
# AdvancedBan v2 - Coded by Leoko
# For each setting there is a small description
# please read it carefully before changing anything
# For more information visit: https://www.spigotmc.org/resources/advancedban.8695/
# Do you want your own Plugin or Website, check out our Dev-Page: http://dev.skamps.eu
# If set to false all bans will be saved locally in the data.yml
UseMySQL: true
# Set to false if you want to have only short messages in the console
# On startup and on the shutdown.
DetailedEnableMessage: true
DetailedDisableMessage: true
# Change this if your server has a diffrent time that your users.
# eg.: ServerTime: 16:43 | Your Time: 13:43 | TimeDiff has to be set to -3
# You can check the server time with /systemPerfs
TimeDiff: 0
# This commands will be disabled for muted players
# A player woun't be able to bypass with eg "/minectaft:me"
MuteCommands:
- 'me'
- 'say'
# The date-format which will be used for the %DATE% variable
DateFormat: "dd.MM.yyyy-HH:mm"
# If you use extern REST-APIs they will have to respond in JSON
# The given APIs will only be used for NAME -> UUID
# For UUID -> NAME will either the official MojangAPI or the InternFetcher be used!
# To check if you can use the intern fetcher do /systemPerfs and compare your uuid
# to the one you can see online on http://NamesMC.com
# if they are similar we recommend using the InternFetcher
UUID-Fetcher:
# Disable for cracked servers
Enabled: true
Intern: false
REST-API:
URL: "https://api.mojang.com/users/profiles/minecraft/%NAME%?at=%TIMESTAMP%"
Key: "id"
BackUp-API:
URL: "https://us.mc-api.net/v3/uuid/%NAME%"
Key: "uuid"
# These are the commands that will be performed on warns
# If you skip a number the command from before will be performed
# You can also use not-AdvancedBan-Commands like 'broadcast' or 'clear %PLAYER%
# Variables: %PLAYER%, %REASON%, %COUNT%
WarnActions:
3: "kick %PLAYER% &c&oYou received the 3th warning!"
4: "tempban %PLAYER% 30m &c&oYou received the 4th warning!"
5: "tempban %PLAYER% 5h &c&oYou received the 5th warning!"
6: "tempban %PLAYER% 7d &c&oYou resived the 6th warning!"
7: "tempban %PLAYER% 1mo &c&oYou received the %COUNT%th warning!"
10: "ban %PLAYER% &c&oYou received the 10th warning!"
# Here you can create permission-nodes for max-punishment-duration.
# The permission "ab.tempban.dur.1" would allow the player to ban max. for 600sec = 10min
# The permission "ab.tempwarn.dur.2" would allow the player to warn max. for 3600sec = 1h
# You can only create up to 10 perms. The perms can be overridden with "ab.COMMAND.dur.max"
TempPerms:
1: 600
2: 3600
3: 43200
Messages:
Kód: Vybrat vše
General:
Prefix: "&4&lCrafteria &8&l\xbb"
NoPerms: "&4Nemáš práva!"
LayoutNotFound: "&cThere is no layout called %NAME%"
# This will be the replacement for the %DURATION% variable
TimeLayoutD: "%D%den(ny) %H%h %M%minut a %S%sekund"
TimeLayoutH: "%H%hodina(y) %M%minuta a %S%sekund"
TimeLayoutM: "%M%minuta(y) a %S%sekund"
TimeLayoutS: "%S% sekund"
Ban:
Usage: "&cUsage &8\xbb &7&o/ban [Name] [Reason/@Layout]"
Done: "&c&o%NAME% &7úspěšně zabanován!"
AlreadyDone: "&c&o%NAME% &7už má dávno ban!"
Exempt: "&7nejsi oprávněn banovat hráče &c&o%NAME%"
Layout:
- '%PREFIX% &7Permanentně zabanován'
- '&7'
- '&7'
- "&cDůvod &8\xbb &7%REASON%"
- '&7'
- '&8O unban žádejte na'
- "&eTS-Ip &8\xbb &c&n81.0.217.180:6107"
- "&eForum &8\xbb &c&ncrafteria.g6.cz"
Notification:
- "&c&o%NAME% &7dostal ban od &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
Ipban:
Usage: "&cUsage &8\xbb &7&o/banip [Name/IP] [Reason/@Layout]"
Layout:
- '%PREFIX% &7Permanentně zabanován na IP'
- '&7'
- '&7'
- "&cDůvod &8\xbb &7%REASON%"
- '&7'
- '&8O unban žádejte na'
- "&eTS-Ip &8\xbb &c&n81.0.217.180:6107"
- "&eForum &8\xbb &c&ncrafteria.g6.cz"
Notification:
- "&c&o%NAME% &7dostal IP ban od &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
IpNotCashed: "&cNení zde uložena IP pro hráče %NAME%!"
Tempban:
Usage: "&cUsage &8\xbb &7&o/tempban [Name] [Xmo/Xd/Xh/Xm/Xs/#TimeLayout] [Reason/@Layout]"
MaxDuration: "&cNemáš právo zabanovat hráče na víc jako %MAX%sec"
Layout:
- '%PREFIX% &7Dočasně zabanován'
- '&7'
- '&7'
- "&cDůvod &8\xbb &7%REASON%"
- "&cNa &8\xbb &7%DURATION%"
- '&7'
- '&8O unban žádejte na'
- "&eTS-Ip &8\xbb &c&n81.0.217.180:6107"
- "&eForum &8\xbb &c&ncrafteria.g6.cz"
Notification:
- "&c&o%NAME% &7gdostal časový ban &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
- "&7&oTento hráč má ban na &e&o%DURATION%" # "He" is only male "this person" is male and female
Mute:
Usage: "&cUsage &8\xbb &7&o/mute [Name] [Reason/@Layout]"
Done: "&c&o%NAME% &7úspěšně umlčen!"
AlreadyDone: "&c&o%NAME% &7už je umlčený!"
Exempt: "&7Nemáš právo umlčet hráče &c&o%NAME%"
Layout:
- '%PREFIX% &7Jsi permanentně umlčen!'
- "&cDůvod: &8\xbb &7%REASON%"
Notification:
- "&c&o%NAME% &7byl umlčen od &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
Tempmute:
Usage: "&cUsage &8\xbb &7&o/tempmute [Name] [Xmo/Xd/Xh/Xm/Xs/#TimeLayout] [Reason/@Layout]"
MaxDuration: "&cNemůžeš umlčet hráče na víc jak %MAX%sec"
Layout:
- '%PREFIX% &7Jsi umlčen na %DURATION%'
- "&cDůvod: &8\xbb &7%REASON%"
Notification:
- "&c&o%NAME% &7byl umlčen &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
- "&7&oTento hráč byl umlčen na &e&o%DURATION%"
Warn:
Usage: "&cUsage &8\xbb &7&o/warn [Name] [Reason/@Layout]"
Done: "&c&o%NAME% &7byl úspěšně profackován!"
Exempt: "&7YNemůžeš profackovat hráče &c&o%NAME%"
Layout:
- '%PREFIX% &cObdržel jsi facku!'
- "&cDůvod: &8\xbb &7%REASON%"
- '&7Nyní máš &c&o%COUNT% &7facek dohromady!'
Notification:
- "&c&o%NAME% &7dostal facku od &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
Tempwarn:
Usage: "&cUsage &8\xbb &7&o/tempwarn [Name] [Xmo/Xd/Xh/Xm/Xs/#TimeLayout] [Reason/@Layout]"
MaxDuration: "&cYou are not able to warn more than %MAX%sec"
Layout:
- '%PREFIX% &cYou resived a temp-warning'
- "&cReason &8\xbb &7%REASON%"
- "&cIt will pass in &8\xbb &7%DURATION%"
- '&7You have now &c&o%COUNT% &7warns in total!'
Notification:
- "&c&o%NAME% &7got temp-warned by &e&o%OPERATOR%"
- "&7For the reason &o%REASON%"
- "&7This warn will pass in &o%DURATION%"
Kick:
Usage: "&cUsage &8\xbb &7&o/kick [Name] [Reason/@Layout]"
Done: "&c&o%NAME% &7byl úspěšně vykopnut!"
NotOnline: "&c&o%NAME% &7není online!"
Exempt: "&7Nemůžeš vykopnout &c&o%NAME%"
Layout:
- '%PREFIX% &7Jsi vykopnut'
- '&7'
- "&cDůvod: &8\xbb &7%REASON%"
- '&7'
Notification:
- "&c&o%NAME% &7byl vykopnut od &e&o%OPERATOR%"
- "&cDůvod: &7&o%REASON%"
UnBan:
Usage: "&cUsage &8\xbb &7&o/unban [Name/IP]"
NotPunished: "&c&o%NAME% není zabanován!"
Done: "&a&o%NAME% &7úspěšně odbanován!"
UnMute:
Usage: "&cUsage &8\xbb &7&o/unmute [Name]"
NotPunished: "&c&o%NAME% není umlčen!"
Done: "&a&o%NAME% &7byl úspěšně odmlčen!"
UnWarn:
Usage: "&cUsage &8\xbb &7&o/unwarn [ID]"
NotFound: "&cCoud not find warning #%ID%"
Done: "&7Warn &a&o#%ID% &7was successfully deleted!"
Banlist:
Usage: "&cUsage &8\xbb &7&o/banlist <Page>"
OutOfIndex: "&cThere is no %PAGE%th page!"
NoEntries: "&c&oThere are no entries yet :("
Header:
- "%PREFIX% &7Banlist:"
- "&c&oPlayer/IP &8| &e&oDuration &8| &7&oBanned by"
- "&c&oType &8> &7&oReason"
- "&7"
Entry:
- "&8[&e%DATE%&8]"
- "&c%NAME% &8| &e%DURATION% &8| &7%OPERATOR%"
- "&c%TYPE% &8> &7&o%REASON%"
- "&7"
Footer: "&7Page &e&o%CURRENT_PAGE% &7of &e&o%TOTAL_PAGES% &8| &7Active bans: &e&o%COUNT%"
PageFooter: "&7Use &e&o/banlist %NEXT_PAGE% &7to see the next page"
History:
Usage: "&cUsage &8\xbb &7&o/history [Name/IP] <Page>"
OutOfIndex: "&cThere is no %PAGE%th page!"
NoEntries: "&c&oCould not find history of %NAME% :("
Header:
- "%PREFIX% &7History for %NAME%:"
- "&c&oName &8| &e&oDuration &8| &7&oOperator"
- "&c&oType &8> &7&oReason"
- "&7"
Entry:
- "&8[&e%DATE%&8]"
- "&c%NAME% &8| &e%DURATION% &8| &7%OPERATOR%"
- "&c%TYPE% &8> &7&o%REASON%"
- "&7"
Footer: "&7Page &e&o%CURRENT_PAGE% &7of &e&o%TOTAL_PAGES% &8| &7Total entries: &e&o%COUNT%"
PageFooter: "&7Use &e&o/history %NAME% %NEXT_PAGE% &7to see the next page"
Warns:
Usage: "&cUsage &8\xbb &7&o/warns [Name] <Page>"
OutOfIndex: "&cThere is no %PAGE%th page!"
NoEntries: "&c&o%NAME% has no warns yet"
Header:
- "%PREFIX% &7Warns for %NAME%:"
- "&c&oName &8| &e&oDuration &8| &7&oWarned by"
- "&c&o#ID &8> &7&oReason"
- "&7"
Entry:
- "&8[&e%DATE%&8]"
- "&c%NAME% &8| &e%DURATION% &8| &7%OPERATOR%"
- "&c&l#%ID% &8> &7&o%REASON%"
- "&7"
Footer: "&7Page &e&o%CURRENT_PAGE% &7of &e&o%TOTAL_PAGES% &8| &7Active warns: &e&o%COUNT%"
PageFooter: "&7Use &e&o/warns %NAME% %NEXT_PAGE% &7to see the next page"
Check:
Usage: "&cUsage &8\xbb &7&o/check [Name]"
Header: "&7Checking &e&o%NAME%"
UUID: "&cUUID &8\xbb &7%UUID%"
IP: "&cIP &8\xbb &7%IP%"
Geo: "&cCountry &8\xbb &7%LOCATION%"
Mute: "&cMuted &8\xbb &7%DURATION%"
Ban: "&cBanned &8\xbb &7%DURATION%"
Warn: "&cWarns &8\xbb &7%COUNT%"
NotFound: "&cSorry we have not been able to find %NAME%"
Konzole po banu:
https://ctrlv.cz/A28F
Re: AdvancedBan - Nefungují bany
Napsal: 06 zář 2016, 18:43
od nejento
Jelikož čas, který jsi zadal bral server jako Minuty a ne jako měsíce. Takhle vypadá šablona na daný příkaz
/tempban [PLAYER] [Xmo|Xd|Xh|Xm|Xs] <REASON>
Re: AdvancedBan - Nefungují bany
Napsal: 08 zář 2016, 16:18
od Patik
Já to chtěl dát ale na Minuty

je jedno jestli tam dáš M jako minuty nebo H jako hodiny, prostě mu můžeš dát permu a stejně se ti za sekundu vrátí

Re: AdvancedBan - Nefungují bany
Napsal: 08 zář 2016, 21:31
od nejento
Jelikož máš zapnutou MySQL databázi podle nastavení (její nastavení jsi pravděpodobně smazal, stačilo ovšem zakrýt heslo), tak zkontroluj, co se do MySQL uložilo.
Máš server v offline-modu?
Zkus příkaz /systemPerfs a řekni mi svoje uživatelské jméno ve hře.
Re: AdvancedBan - Nefungují bany
Napsal: 09 zář 2016, 09:30
od Mikekopec
Jde o to že ten plugin je v základu nastaven pouze na originální účty, takže musíš v configu změnit
UUID-Fetcher:
# Disable for cracked servers
Enabled: true
změň na
UUID-Fetcher:
# Disable for cracked servers
Enabled: false