Skip to content

Commit

Permalink
update version code to 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Luluno01 committed Nov 28, 2020
1 parent 1ee7d5a commit f19d77b
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 6 deletions.
43 changes: 42 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ A blacklist and whitelist BungeeCord plugin with support of UUID look up.

This plugin was formerly named BungeeGuard. In order not to conflict with the existing plugin BungeeGuard, this plugin is renamed to BungeeSafeguard from v2.0.

Tested on Waterfall, version: `git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:c1ac7d5:377`.
Tested on Waterfall, version: `git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:1d2221d:384`.

- [BungeeSafeguard](#bungeesafeguard)
- [Features](#features)
Expand All @@ -20,6 +20,7 @@ Tested on Waterfall, version: `git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:c1ac7d
- [whitelist remove](#whitelist-remove)
- [whitelist x-remove](#whitelist-x-remove)
- [whitelist lazy-remove](#whitelist-lazy-remove)
- [whitelist import](#whitelist-import)
- [whitelist on](#whitelist-on)
- [whitelist off](#whitelist-off)
- [whitelist confirm](#whitelist-confirm)
Expand All @@ -30,6 +31,7 @@ Tested on Waterfall, version: `git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:c1ac7d
- [blacklist remove](#blacklist-remove)
- [blacklist x-remove](#blacklist-x-remove)
- [blacklist lazy-remove](#blacklist-lazy-remove)
- [blacklist import](#blacklist-import)
- [blacklist on](#blacklist-on)
- [blacklist off](#blacklist-off)
- [blacklist confirm](#blacklist-confirm)
Expand All @@ -51,6 +53,7 @@ Tested on Waterfall, version: `git:Waterfall-Bootstrap:1.16-R0.4-SNAPSHOT:c1ac7d
* Lazy translation from username to UUID (from v1.2, **offline server friendly**, see [lazy lists](#lazy-lists) for details)
* Switch between multiple configuration files (e.g., a config for maintenance mode which whitelists administrators only; from v2.4)
* Optional confirmation before adding or removing list entries (from v2.4, see [Operation Confirmation](#operation-confirmation) for more details)
* Import from old `whitelist.json` or `banned-players.json` (from v2.5, resolves issue #7; see [whitelist import](#whitelist-import) and [blacklist import](#blacklist-import) for more details)

## Usage

Expand Down Expand Up @@ -241,6 +244,25 @@ Example:
whitelist lazy-remove DummyPlayer0 DummyPlayer1 7be767e5-327c-4abd-852b-afab3ec1e2ff DummyPlayer2
```

#### whitelist import

Import UUID(s) from an existing JSON file, e.g. your old `whitelist.json`, to the whitelist.

```
whitelist import <path to whitelist.json>
```
Note that `<path to whitelist.json>` could be either an absolute path, e.g. `/home/mc/old-mc-server/whitelist.json`,
or a path relative to the **working directory** of the running BungeeCord process, e.g. `../old-mc-server/whitelist.json`.
Example:
```
whitelist import whitelist.json
```
*This feature is added as requested by issue #7.*
#### whitelist on
Turn on whitelist:
Expand Down Expand Up @@ -363,6 +385,25 @@ Example:
blacklist lazy-remove DummyPlayer0 DummyPlayer1 7be767e5-327c-4abd-852b-afab3ec1e2ff DummyPlayer2
```
#### blacklist import
Import UUID(s) from an existing JSON file, e.g. your old `banned-players.json`, to the blacklist.
```
blacklist import <path to banned-players.json>
```
Note that `<path to banned-players.json>` could be either an absolute path, e.g. `/home/mc/old-mc-server/banned-players.json`,
or a path relative to the **working directory** of the running BungeeCord process, e.g. `../old-mc-server/banned-players.json`.
Example:
```
blacklist import banned-players.json
```
*This feature is added as requested by issue #7.*
#### blacklist on
Turn on blacklist:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'vip.untitled'
version '2.4-SNAPSHOT'
version '2.5-SNAPSHOT'

sourceCompatibility = 1.8

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#########################################
# BungeeSafeguard Configuration #
# Version: 2.4 #
# Version: 2.5 #
# Author: Untitled #
#########################################

version: "2.4"
version: "2.5"
whitelist-message: :( You are not whitelisted on this server
blacklist-message: :( We can't let you enter this server
no-uuid-message: :( Name yourself
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: BungeeSafeguard
main: vip.untitled.bungeesafeguard.BungeeSafeguard
version: "2.4"
author: Untitled
version: "2.5"
author: Untitled

0 comments on commit f19d77b

Please sign in to comment.