Skip to content

Commit

Permalink
Initial implementation of redis bungee method
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCodez committed Dec 14, 2023
1 parent 4a88b10 commit add3dca
Show file tree
Hide file tree
Showing 14 changed files with 589 additions and 239 deletions.
8 changes: 8 additions & 0 deletions VotingPlugin/Resources/BungeeSettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ UseBungeecord: false
# SOCKETS
# PLUGINMESSAGING (Recommended)
# MYSQL
# REDIS
BungeeMethod: PLUGINMESSAGING

# Use Redis for between server communication, set BungeeMethod to REDIS to use this
Redis:
Host: localhost
Port: 6379
Username: ''
Password: ''

# Enables more debug messages for communication between servers
# Use /votingpluginbungee status for testing communication
BungeeDebug: false
Expand Down
15 changes: 12 additions & 3 deletions VotingPlugin/Resources/bungeeconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ Prefix: ''
#Attempt to use mariadb driver
#UseMariaDB: false

# Online mode for UUIDS
# Offline mode setups are not fully tested and are not supported currently
OnlineMode: true



####################################################################################
Expand Down Expand Up @@ -86,8 +84,16 @@ WhiteListedServers: []
# SOCKETS
# PLUGINMESSAGING (Recommended)
# MYSQL
# REDIS
BungeeMethod: PLUGINMESSAGING

# Use Redis for between server communication, set BungeeMethod to REDIS to use this
Redis:
Host: localhost
Port: 6379
Username: ''
Password: ''

# If false, votes will be checked if user is a valid player that has joined to server
# Works for PLUGINMESSAGING and SOCKETS methods only
# This requires spigot servers AllowUnJoined to be set to true in Config.yml
Expand Down Expand Up @@ -140,6 +146,9 @@ VoteParty:
BungeeCommands: []
Broadcast: '&aVote party has been reached!'

# Online mode for UUIDS
# Offline mode setups are not fully tested and are not supported currently
OnlineMode: true

##########################################
# PLUGINMESSAGING Settings
Expand Down
2 changes: 1 addition & 1 deletion VotingPlugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.3-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Loading

0 comments on commit add3dca

Please sign in to comment.