Skip to content

Commit

Permalink
* Cross-Server now offers an optional MySQL feature, enabling the use…
Browse files Browse the repository at this point in the history
… of a database for transferring destination coordinates and portal commands to a destination server

  - To determine the coordinates a player will be sent to on their destination server, use the new "/simpleportals <setswitchlocation|ssl> <portal>" command
  - Ensure each server on the network has the SimplePortals plugin installed and the MySQL settings are personalized for EACH server (server-name option in particular)
  - Cross-Server commands are simple, just add commands to the origin portal and the plugin will do the rest

* Portals now save a new location named "Switch Server Location," serving as the destination when players are transferred to another server through the configured portal
  - Use the "/simpleportals <setswitchlocation|ssl> <portal>" command to set the "Switch Server Location" to the current position of the command sender
  - The "switch-server-set-message" message in the lang.yml was modified to remind the sender to also set the location
  - Added the "switch-location-set-message", "invalid-world", "invalid-coordinate" message to the lang.yml

* The "join-protection" option was removed from the config.yml
  - Replaced with the "portal-to-portal-protection" option, now players joining the server, spawning, or teleporting into a portal's region will be restricted from teleporting until they leave the portal area.

* Force joining will now also force the player to the set location when respawning (unless the player has a bed or a valid spawn point)

* Fixed an issue causing Nether and End portal replacement locations to not function as intended

Signed-off-by: XZot1K <[email protected]>
  • Loading branch information
XZot1K committed Jan 30, 2024
1 parent 307b0ee commit 7703e48
Show file tree
Hide file tree
Showing 22 changed files with 792 additions and 683 deletions.
17 changes: 17 additions & 0 deletions .idea/dataSources.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/dictionaries/alexo.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__io_netty_netty_buffer_4_1_90_Final.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__io_netty_netty_codec_4_1_90_Final.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__io_netty_netty_common_4_1_90_Final.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__io_netty_netty_resolver_4_1_90_Final.xml

This file was deleted.

13 changes: 0 additions & 13 deletions .idea/libraries/Maven__io_netty_netty_transport_4_1_90_Final.xml

This file was deleted.

This file was deleted.

4 changes: 3 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 33 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<groupId>xzot1k.plugins.sp</groupId>
<artifactId>SimplePortals</artifactId>
<version>1.7.4</version>
<version>1.7.5</version>
<packaging>jar</packaging>

<name>SimplePortals</name>
Expand Down Expand Up @@ -45,6 +45,37 @@
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
<relocation>
<pattern>redis.clients</pattern>
<shadedPattern>xzot1k.plugins.sp.redis.clients</shadedPattern>
</relocation>
<relocation>
<pattern>org.jetbrains</pattern>
<shadedPattern>xzot1k.plugins.sp.org.jetbrains</shadedPattern>
</relocation>
<relocation>
<pattern>org.intellij</pattern>
<shadedPattern>xzot1k.plugins.sp.org.intellij</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>*:*</artifact>
<excludeDefaults>false</excludeDefaults>
<includes>
<include>xzot1k.plugins.sp.redis.clients</include>
</includes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludeDefaults>false</excludeDefaults>
<includes>
<include>xzot1k.plugins.sp.org.jetbrains</include>
<include>xzot1k.plugins.sp.org.intellij</include>
</includes>
</filter>
</filters>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -77,7 +108,7 @@
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>1.20.2-R0.1-SNAPSHOT</version>
<version>1.20.4-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Loading

0 comments on commit 7703e48

Please sign in to comment.