Skip to content

josantonius/minecraft-whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft PvP Plugin

License

A basic whitelist plugin based on player nicknames only.

Requirements

  • Java 17 or higher.
  • Purpur server 1.19.3 or Bukkit/Spigot/Paper server compatible with the Purpur API version used.

Installation

  1. Download the JAR file: whitelist-1.0.0-purpur-1.19.3.jar.

  2. Place the JAR file in the plugins folder of your Minecraft server.

  3. Restart the server to load the plugin.

Building

To build the plugin yourself, follow these steps:

  1. Make sure you have Java 17 or higher and Gradle installed on your system.

  2. Clone the plugin repository on your local machine:

    git clone https://github.com/josantonius/minecraft-whitelist.git
  3. Navigate to the directory of the cloned repository:

    cd minecraft-whitelist
  4. Use Gradle to compile the plugin:

    gradle build

Commands

  • /wl on - Enable whitelist

  • /wl off - Disable whitelist

  • /wl add <player> - Add player to whitelist

  • /wl remove <player> - Remove player from whitelist

  • /wl info <player> - Check if player is on the whitelist

  • /wl help - Show help

  • /wl reload - Reload the plugin

All commands requires the wl.admin permission to be used.

Configuration

The plugins/Whitelist/config.yml file contains specific plugin configurations.

Enable or disable the whitelist

If enabled, only players on the whitelist will be able to join the server. If disabled, all players will be able to join the server.

enabled: true

Exclude ops from the whitelist

If enabled, ops will be able to join the server even if they are not on the whitelist. If disabled, ops will not be able to join the server if they are not on the whitelist.

excludeOps: true

Kick players who are not on the whitelist

If enabled, players who are not on the whitelist will be kicked from the server when use the command /wl on or wl del <player>.

notifyOps: true

Notify ops when a player tries to connect to the server and is not on the whitelist

notifyOps: true

Messages

The plugins/Whitelist/messages.yml file contains all the messages that the plugin uses. You can change the messages to your liking.

TODO

  • Add new feature
  • Create tests
  • Improve documentation

Changelog

Detailed changes for each release are documented in the release notes.

Contribution

Please make sure to read the Contributing Guide, before making a pull request, start a discussion or report a issue.

Thanks to all contributors! ❤️

Sponsor

If this project helps you to reduce your development time, you can sponsor me to support my open source work 😊

License

This repository is licensed under the MIT License.

Copyright © 2023-present, Josantonius

About

A basic whitelist plugin based on player nicknames only

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages