ldtteam / Rankup

Minecraft Sponge Auto-ranking plugin
2 stars 1 forks source link

wont connect to MySQL server #22

Open Jessasaurus opened 5 years ago

Jessasaurus commented 5 years ago

12.12 21:04:10 [Server] INFO [rankup]: preInit 12.12 21:04:10 [Server] INFO [rankup]: Starting QuickStart Module Loader version 0.8.2 subsystem. 12.12 21:04:10 [Server] WARN [rankup]: Pre Init failed 12.12 21:04:10 [Server] INFO uk.co.drnaylor.quickstart.exceptions.QuickStartModuleDiscoveryException: Unable to start QuickStart 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.ModuleContainer.(ModuleContainer.java:185) ~[ModuleContainer.class:?] 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.modulecontainers.DiscoveryModuleContainer.(DiscoveryModuleContainer.java:120) ~[DiscoveryModuleContainer.class:?] 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.modulecontainers.DiscoveryModuleContainer.(DiscoveryModuleContainer.java:45) ~[DiscoveryModuleContainer.class:?] 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.modulecontainers.DiscoveryModuleContainer$Builder.build(DiscoveryModuleContainer.java:239) ~[DiscoveryModuleContainer$Builder.class:?] 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.modulecontainers.DiscoveryModuleContainer$Builder.build(DiscoveryModuleContainer.java:161) ~[DiscoveryModuleContainer$Builder.class:?] 12.12 21:04:10 [Server] INFO at uk.co.drnaylor.quickstart.ModuleContainer$Builder.build(ModuleContainer.java:808) ~[ModuleContainer$Builder.class:?] 12.12 21:04:10 [Server] INFO at com.minecolonies.rankup.Rankup.onPreInit(Rankup.java:120) [Rankup.class:?] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.event.listener.GamePreInitializationEventListener_Rankup_onPreInit55.handle(Unknown Source) [?:?] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95) [RegisteredListener.class:1.12.2-7.1.0-BETA-33] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:408) [SpongeEventManager.class:1.12.2-7.1.0-BETA-33] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventManager.java:435) [SpongeEventManager.class:1.12.2-7.1.0-BETA-33] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:213) [SpongeImpl.class:1.12.2-7.1.0-BETA-33] 12.12 21:04:10 [Server] INFO at org.spongepowered.common.SpongeImpl.postState(SpongeImpl.java:221) [SpongeImpl.class:1.12.2-7.1.0-BETA-33]

Asherslab commented 5 years ago

please pass on a gist of your rankup.conf

Jessasaurus commented 5 years ago

core {

This is the template for the /ru check command, accepted entries are:

# {player}        - The Player's name (the one being checked)
# {rank-next}        - The Player's next rank
# {rank}          - The current rank of the player
# {prefix}        - The prefix of the player's current group
# {timing-time}   - How much time the player has been playing 
# {timing-next}   - How much time until the player joins the next group 
# {economy-bal}   - How much money the player has
# {economy-next}  - How much money the player needs to join the next group
# {purchase-left}  - How much money will be left after rank purchase
# {joindate}      - The date of when the player joined your server
# {lastjoin}      - When the player last joined the server
# {purchase-button}      - button used to purchase the next rank (needs purchase module)
# {track}         - The current track of the player.
check-message=[
    "§6---[§2{player}§6]---",
    "§fRank: {rank}",
    "§fTrack: {track}",
    "§fPlay time: {timing-time}",
    "§fTime to next group: {timing-next}",
    "§fJoin date: §a{joindate}",
    "§fLast join: §9{lastjoin}",
    "§6-----------"
]
# setting for "days" output in time desc
daysDisplay="day(s)"
# If true a message will be output to console every time players are updated or checked.
debug-mode=false
# This is weird, but basically Luckperms is screwing with something, anyway, please put your BASE group here (luckperms default is "default"
defaultGroup=default
# List of disabled groups
disabled-groups=[
    admin,
    mod,
    owner
]
# The message to display for a player in chat when they login to the server for the first time
first-time-welcome-message="Welcome to our server {player}!"
# setting for "hours" output in time desc
hoursDisplay="hour(s)"
# setting for "minutes" output in time desc
minutesDisplay="minute(s)"
# This is the prefix that will be put in place if a player has no prefix, leave "" to have no prefix fall-back
prefix-fallback=Default
# the command the plugin will execute via console to remove a rank from a player, valid entries: {player} and {group}
rankdown-command="luckperms user {player} parent remove {group}"
# The command the plugin will execute via console to add a rank to a player, valid entries: {player} and {group}
rankup-command="luckperms user {player} parent add {group}"
# Whether to remove all other player groups from player after rankUp (Using "rankdown-command")
remove-previous-group=true
# This is where all track config names are defined, please be careful here.
track-configs=[
    "groups.conf",
    "patreons.conf"
]
# The message to display for a player in chat when they login to the server
welcome-message="Welcome back {player}, your current rank is {prefix}!"

} databases {

You may choose between MySQL (Mariadb works too) or H2 (Hikari) databases for Player Stats storage!

database=mysql
sqlAddress="0.0.0.0:3306"
sqlDatabase=rankup
sqlPassword=password
sqlTablePrefix="rankup_"
sqlUsername=User

} magibridge {

Message to discord when a player ranks up!

# valid entries: {player}, {magibridge-next} and {magibridge-current}
rankup-Message="Player {player} has left the {magibridge-current} group and joined the {magibridge-next} group! :smile:"
# Set to true if you want the rankup message sent in the MC-Staff channel instead!
# (Only possible if Magibridge is set to use Nucleus)
send-in-staff=true

} modules { databases=ENABLED economy=DISABLED magibridge=ENABLED purchase=DISABLED timing=ENABLED } timing {

Here you may set how you want to have the body of the top command display, accepted entries are same as check-message

top-message=[
    "§6---[§2{player}§6]---",
    "§fRank: {rank}",
    "§f{timing-time}",
    "§fJoin date: §a{joindate}",
    "§6-----------"
]
# This is where you may define how the bottom of the top message displays
top-message-footer="§f----------------------------"
# This is where you may define how the top of the top message displays
top-message-head="§f------{Top Play Times}------"
# The amount of minutes to pass between timing updates
update-interval=1

} SQL ip address, & password removed from the copy

Asherslab commented 5 years ago

And that crash is only occurring when you enable the database module?

Jessasaurus commented 5 years ago

only when i use the MySQL database

Jecvay commented 5 years ago

QQ图片20190720135053