Zdravím, helpne mi někdo jak napojit BedWars na MySQL?
Vytvořila se mi akorát složka database, když jsem povolil statistiky, ale ne na mysql nýbrž ve složce na disku. Jinak jsem zkoušel i storage přepsat na MySQL nevím, jestli tam právě nemám něco napsat jiného než je yaml. Zkoušel jsem i různé podoby hosta. Ale fakt si nevím rady.
Zde předkládám config:
Spoiler: zobrazit
# ###############################
# ####### BEDWARS CONFIG ########
# ##### CREATED BY YANNICI ######
# ###############################
# ###### EXPLANATION ABOUT ######
# ##### EVERY CONFIGURATION #####
# ### YOU CAN FIND ON GITHUB ####
# ############ WIKI #############
# ###############################
#
# # TYPE HELP # #
# int: number (not decimal)
# string: a normal text (in most cases you can use colorcodes with a beginning §)
# boolean: true or false (IMPORTANT: true OR false ONLY)
# list<?>: a list of type ? (? is the type of the list items)
# byte: a int but limited between -128 ... 127
# short: a int but limited between -32768 ... 32767
# char: one character
chat-prefix: '&7[&bBedWars&7]&f'
command-prefix: bw
plugin-metrics: true
global-messages: true
global-autobalance: false
global-chat-after-end: true
gamelength: 60
allow-crafting: false
overwrite-names: false
lobby-gamemode: 0
holographic-stats:
show-prefix: false
name-color: '&7'
value-color: '&e'
head-line: Tvoje statistiky na &eBEDWARS
teamname-on-tab: false
teamname-in-chat: false
hearts-on-death: true
die-on-void: false
lobbytime: 60
lobby-chatformat: '$player$: $msg$'
ingame-chatformat-all: '[$all$] <$team$>$player$: $msg$'
ingame-chatformat: '<$team$>$player$: $msg$'
game-block: BED_BLOCK
store-game-records: true
store-game-records-holder: true
bed-sound: ENTITY_ENDERDRAGON_GROWL
player-drops: false
place-in-liquid: true
breakable-blocks:
use-as-blacklist: false
list:
- none
jointeam-entity:
show-name: true
lobby-scoreboard:
enabled: true
title: '&eBEDWARS'
content:
- ' '
- '&fMapa: &2$regionname$'
- '&fHracu: &2$players$&f/&2$maxplayers$'
- ' '
- '&fCekani ...'
- ' '
scoreboard:
format-bed-destroyed: '&c$status$ $team$'
format-bed-alive: '&a$status$ $team$'
format-title: '&e$region$&f - $time$'
titles:
win:
enabled: true
title-fade-in: 1.5
title-stay: 5.0
title-fade-out: 2.0
subtitle-fade-in: 1.5
subtitle-stay: 5.0
subtitle-fade-out: 2.0
map:
enabled: false
title-fade-in: 1.5
title-stay: 2.0
title-fade-out: 1.5
subtitle-fade-in: 1.5
subtitle-stay: 2.0
subtitle-fade-out: 1.5
countdown:
enabled: true
format: '&3{countdown}'
explodes:
destroy-worldblocks: false
destroy-beds: false
drop-blocking: false
lobbycountdown-rule: 2
friendlyfire: false
friendlybreak: true
gameoverdelay: 10
chat-to-all-prefix:
- '@'
seperate-game-chat: true
seperate-spectator-chat: false
statistics:
enabled: true
show-on-game-end: true
storage: yaml
bed-destroyed-kills: false
scores:
kill: 10
die: 0
win: 50
bed-destroy: 25
lose: 0
record: 100
player-leave-kills: false
database:
host: casa21.fakaheda.eu
port: 3306
db: 208437_mysql_db
user: 208437_mysql_db
password: *****
connection-pooling:
min-pool-size: 3
max-pool-size: 50
spectation-enabled: false
respawn-protection: 0
allowed-commands:
- /help
endgame:
mainlobby-enabled: false
all-players-to-mainlobby: false
bungeecord:
enabled: false
hubserver: hub
endgame-in-lobby: true
full-restart: true
spigot-restart: true
motds:
lobby: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
running: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
stopped: |
$regionname$
&c[Stopped]
full: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
locale: cz
ressource:
bronze:
item: CLAY_BRICK
spawn-interval: 1000
amount: 1
spread: 1.0
name: '&4Bronze'
iron:
item: IRON_INGOT
spawn-interval: 10000
amount: 1
spread: 1.0
name: '&7Iron'
gold:
item: GOLD_INGOT
spawn-interval: 20000
amount: 1
spread: 1.0
name: '&6Gold'
check-updates: true
update-infos: true
rewards:
enabled: false
player-win:
- /example {player} 200
player-end-game:
- /example {player} {score}
player-destroy-bed:
- /example {player} {score}
player-kill:
- /example {player} 10
specials:
rescue-platform:
break-time: 10
using-wait-time: 20
item: BLAZE_ROD
can-break: false
block: STAINED_GLASS
protection-wall:
break-time: 0
wait-time: 20
can-break: true
item: BRICK
block: SANDSTONE
width: 5
height: 3
distance: 2
magnetshoe:
probability: 75
boots: IRON_BOOTS
warp-powder:
show-particles: true
particle: fireworksSpark
teleport-time: 6
trap:
play-sound: true
effects:
- ==: PotionEffect
effect: 15
duration: 100
amplifier: 2
ambient: true
has-particles: true
- ==: PotionEffect
effect: 18
duration: 100
amplifier: 2
ambient: true
has-particles: true
- ==: PotionEffect
effect: 2
duration: 100
amplifier: 2
ambient: true
has-particles: true
tntsheep:
fuse-time: 8.0
speed: 0.4
explosion-factor: 1.0
sign:
first-line: $title$
second-line: $regionname$
third-line: Hracu &7[&b$currentplayers$&7/&b$maxplayers$&7]
fourth-line: $status$
player-settings:
one-stack-on-shift: false
overwrite-display-names: true
lobbytime-full: 15
hearts-in-halfs: true
# ####### BEDWARS CONFIG ########
# ##### CREATED BY YANNICI ######
# ###############################
# ###### EXPLANATION ABOUT ######
# ##### EVERY CONFIGURATION #####
# ### YOU CAN FIND ON GITHUB ####
# ############ WIKI #############
# ###############################
#
# # TYPE HELP # #
# int: number (not decimal)
# string: a normal text (in most cases you can use colorcodes with a beginning §)
# boolean: true or false (IMPORTANT: true OR false ONLY)
# list<?>: a list of type ? (? is the type of the list items)
# byte: a int but limited between -128 ... 127
# short: a int but limited between -32768 ... 32767
# char: one character
chat-prefix: '&7[&bBedWars&7]&f'
command-prefix: bw
plugin-metrics: true
global-messages: true
global-autobalance: false
global-chat-after-end: true
gamelength: 60
allow-crafting: false
overwrite-names: false
lobby-gamemode: 0
holographic-stats:
show-prefix: false
name-color: '&7'
value-color: '&e'
head-line: Tvoje statistiky na &eBEDWARS
teamname-on-tab: false
teamname-in-chat: false
hearts-on-death: true
die-on-void: false
lobbytime: 60
lobby-chatformat: '$player$: $msg$'
ingame-chatformat-all: '[$all$] <$team$>$player$: $msg$'
ingame-chatformat: '<$team$>$player$: $msg$'
game-block: BED_BLOCK
store-game-records: true
store-game-records-holder: true
bed-sound: ENTITY_ENDERDRAGON_GROWL
player-drops: false
place-in-liquid: true
breakable-blocks:
use-as-blacklist: false
list:
- none
jointeam-entity:
show-name: true
lobby-scoreboard:
enabled: true
title: '&eBEDWARS'
content:
- ' '
- '&fMapa: &2$regionname$'
- '&fHracu: &2$players$&f/&2$maxplayers$'
- ' '
- '&fCekani ...'
- ' '
scoreboard:
format-bed-destroyed: '&c$status$ $team$'
format-bed-alive: '&a$status$ $team$'
format-title: '&e$region$&f - $time$'
titles:
win:
enabled: true
title-fade-in: 1.5
title-stay: 5.0
title-fade-out: 2.0
subtitle-fade-in: 1.5
subtitle-stay: 5.0
subtitle-fade-out: 2.0
map:
enabled: false
title-fade-in: 1.5
title-stay: 2.0
title-fade-out: 1.5
subtitle-fade-in: 1.5
subtitle-stay: 2.0
subtitle-fade-out: 1.5
countdown:
enabled: true
format: '&3{countdown}'
explodes:
destroy-worldblocks: false
destroy-beds: false
drop-blocking: false
lobbycountdown-rule: 2
friendlyfire: false
friendlybreak: true
gameoverdelay: 10
chat-to-all-prefix:
- '@'
seperate-game-chat: true
seperate-spectator-chat: false
statistics:
enabled: true
show-on-game-end: true
storage: yaml
bed-destroyed-kills: false
scores:
kill: 10
die: 0
win: 50
bed-destroy: 25
lose: 0
record: 100
player-leave-kills: false
database:
host: casa21.fakaheda.eu
port: 3306
db: 208437_mysql_db
user: 208437_mysql_db
password: *****
connection-pooling:
min-pool-size: 3
max-pool-size: 50
spectation-enabled: false
respawn-protection: 0
allowed-commands:
- /help
endgame:
mainlobby-enabled: false
all-players-to-mainlobby: false
bungeecord:
enabled: false
hubserver: hub
endgame-in-lobby: true
full-restart: true
spigot-restart: true
motds:
lobby: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
running: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
stopped: |
$regionname$
&c[Stopped]
full: |
$regionname$
&7[&b$currentplayers$&7/&b$maxplayers$&7]
locale: cz
ressource:
bronze:
item: CLAY_BRICK
spawn-interval: 1000
amount: 1
spread: 1.0
name: '&4Bronze'
iron:
item: IRON_INGOT
spawn-interval: 10000
amount: 1
spread: 1.0
name: '&7Iron'
gold:
item: GOLD_INGOT
spawn-interval: 20000
amount: 1
spread: 1.0
name: '&6Gold'
check-updates: true
update-infos: true
rewards:
enabled: false
player-win:
- /example {player} 200
player-end-game:
- /example {player} {score}
player-destroy-bed:
- /example {player} {score}
player-kill:
- /example {player} 10
specials:
rescue-platform:
break-time: 10
using-wait-time: 20
item: BLAZE_ROD
can-break: false
block: STAINED_GLASS
protection-wall:
break-time: 0
wait-time: 20
can-break: true
item: BRICK
block: SANDSTONE
width: 5
height: 3
distance: 2
magnetshoe:
probability: 75
boots: IRON_BOOTS
warp-powder:
show-particles: true
particle: fireworksSpark
teleport-time: 6
trap:
play-sound: true
effects:
- ==: PotionEffect
effect: 15
duration: 100
amplifier: 2
ambient: true
has-particles: true
- ==: PotionEffect
effect: 18
duration: 100
amplifier: 2
ambient: true
has-particles: true
- ==: PotionEffect
effect: 2
duration: 100
amplifier: 2
ambient: true
has-particles: true
tntsheep:
fuse-time: 8.0
speed: 0.4
explosion-factor: 1.0
sign:
first-line: $title$
second-line: $regionname$
third-line: Hracu &7[&b$currentplayers$&7/&b$maxplayers$&7]
fourth-line: $status$
player-settings:
one-stack-on-shift: false
overwrite-display-names: true
lobbytime-full: 15
hearts-in-halfs: true
A zde výpis z konzole, co jediné mi to vypsalo:
Spoiler: zobrazit
>[2K [00:38:26 INFO]: [BedwarsRel] Enabling BedwarsRel v1.3.2
>[2K [00:38:26 INFO]: [BedWars] Loading statistics from YAML-File ...
>[2K [00:38:26 INFO]: [BedWars] Done!
>[2K [00:38:26 INFO]: [BedWars] Hra 'BW1' uspesne nactena!
>[2K [00:38:26 INFO]: [BedWars] Loading statistics from YAML-File ...
>[2K [00:38:26 INFO]: [BedWars] Done!
>[2K [00:38:26 INFO]: [BedWars] Hra 'BW1' uspesne nactena!