Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "Send Player to Server (IP)" Syntax for Skript #6987

Closed
1 task done
FemBoysAreCute opened this issue Aug 20, 2024 · 2 comments
Closed
1 task done

Add a "Send Player to Server (IP)" Syntax for Skript #6987

FemBoysAreCute opened this issue Aug 20, 2024 · 2 comments
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.

Comments

@FemBoysAreCute
Copy link

Suggestion

Add a syntax to allow sending players to a different server using their IP address.

Detailed Description:
Create a new expression or effect in Skript that allows server administrators to transfer players to another server by specifying the server's IP and port. The syntax could look like:

send player %player% to server with ip %string% and port %number%

This would make it possible for Skript users to easily route players to different servers without needing complex external plugins.

Example Usage:

command /switchserver:
    trigger:
        send player to server with ip "192.168.1.1" and port 25565

Why?

Many Minecraft networks consist of multiple servers, and being able to transfer players between these servers from within Skript adds flexibility. This feature will simplify the process of server migration or segmentation of player traffic.
Currently, such functionality requires separate plugins or proxy systems like BungeeCord, but incorporating it into Skript would centralize functionality and make it accessible to a broader range of server admins without the need for third-party tools.
This would seamlessly transfer the player to the server at the specified IP address.

Other

It would be helpful if this feature could work in conjunction with common proxy systems like BungeeCord or Velocity to ensure smooth integration with large server networks. Additionally, security measures should be considered to avoid misuse (e.g., rate-limiting the command or adding verification checks).

Agreement

  • I have read the guidelines above and affirm I am following them with this suggestion.
@cheeezburga
Copy link
Member

Spigot has some methods to achieve this in 1.20.5+ I think. The method to transfer is Player#transfer(String, int), and there is another method to check if a player has been transferred. There are also new "cookie" methods to store and retrieve info on the player's client, which can be used between server transfers. Seems like the kind of thing Skript could add fairly easily, but for the time being if you have skript-reflect then you can use those methods.

@Fusezion
Copy link
Contributor

Fusezion commented Aug 20, 2024

Skbee has these methods so you can skip the skript-reflect half pretty easily, as for adding this to skript this wouldn't be too hard for it to be done, and could be an extension to the existing connect effect

@Moderocky Moderocky added PR available Issues which have a yet-to-be merged PR resolving it enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). labels Aug 22, 2024
@Efnilite Efnilite added completed The issue has been fully resolved and the change will be in the next Skript update. and removed priority: medium Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation). PR available Issues which have a yet-to-be merged PR resolving it labels Oct 13, 2024
@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update. enhancement Feature request, an issue about something that could be improved, or a PR improving something. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

No branches or pull requests

6 participants