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

[Documentation] Banning a player doesn't automatically remove them #2344

Closed
Wealthyturtle opened this issue Aug 6, 2019 · 3 comments
Closed
Labels
documentation Related to Skript's official documentation. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).

Comments

@Wealthyturtle
Copy link
Member

Description

When banning a player via skript's ban effect, the player will not automatically be kicked off the server. Instead, the player's ban will only really be noticeable once logged off

Steps to Reproduce

command /test <player>:
    trigger:
        ban arg-1

Try running /test <your username>, you will not be kicked off, but once you relog your ban will take effect

Expected Behavior

The ban effect should include kicking the player off the server

Errors / Screenshots

Server Information

  • Server version/platform: Spigot 1.14.4
  • Skript version: Skript 2.4-beta5

Additional Context

@TheBentoBox
Copy link
Member

This isn't a Skript issue, that's how bans work. You'll see plugins like Essentials are also manually kicking the player after adding them to the ban list. These are separated by Bukkit intentionally so that you can ban someone without kicking them immediately so it takes effect from their next login onwards.

If you're using Skript to write a ban system and want your banned players to automatically be kicked, then you can just kick player due to "%your ban reason%".

@TheBentoBox TheBentoBox added the invalid Not a Skript issue, already implemented, does not apply, etc. label Aug 6, 2019
@Wealthyturtle
Copy link
Member Author

Sorry. Did not know that that was intended behaviour... in that case, could the description of the ban effect be updated from “Bans/unbans a player or an IP address.” to “Bans/unbans a player or an IP address. Note that banning a player will not automatically remove them from the server, use the kick effect for that behaviour” or something along those lines? That way, it’ll be more clear @TheBentoBox

@TheBentoBox TheBentoBox added enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements). and removed invalid Not a Skript issue, already implemented, does not apply, etc. labels Aug 7, 2019
@TheBentoBox
Copy link
Member

Sure, that seems like a fair change.

@TheBentoBox TheBentoBox reopened this Aug 7, 2019
@TheBentoBox TheBentoBox changed the title Banning a player doesn't automatically remove them [Documentation] Banning a player doesn't automatically remove them Aug 7, 2019
@TheBentoBox TheBentoBox added the documentation Related to Skript's official documentation. label Aug 7, 2019
Wealthyturtle added a commit to Wealthyturtle/Skript that referenced this issue Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to Skript's official documentation. enhancement Feature request, an issue about something that could be improved, or a PR improving something. priority: lowest "Nice to have" updates that are not required (tiny low impact bug fixes or QoL enhancements).
Projects
None yet
Development

No branches or pull requests

2 participants