Skip to content

Commit 218bcea

Browse files
committed
added more stuff
1 parent 23de534 commit 218bcea

File tree

8 files changed

+797
-1
lines changed

8 files changed

+797
-1
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "11:00"
8+
open-pull-requests-limit: 10

.github/workflows/maven.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will build a Java project with Maven
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3+
4+
name: Build with Maven
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Build with Maven
24+
run: mvn -B package --file pom.xml

LICENSE

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<h1 align="center">VelocityBlockVersion</h1>
2+
3+
<p align="center">
4+
<img src="https://img.shields.io/badge/Minecraft-1.8--1.17.1-orange" alt="Minecraft versions">
5+
<img src="https://img.shields.io/github/v/release/hyperdefined/VelocityBlockVersion" alt="GitHub release (latest by date)">
6+
<a href="https://github.com/hyperdefined/VelocityBlockVersion/releases"><img src="https://img.shields.io/github/downloads/hyperdefined/VelocityBlockVersion/total?logo=github" alt="Downloads"></a>
7+
<a href="https://en.cryptobadges.io/donate/1F29aNKQzci3ga5LDcHHawYzFPXvELTFoL"><img src="https://en.cryptobadges.io/badge/micro/1F29aNKQzci3ga5LDcHHawYzFPXvELTFoL" alt="Donate with Bitcoin"></a>
8+
<a href="https://en.cryptobadges.io/donate/0x0f58B66993a315dbCc102b4276298B5Ff8895F41"><img src="https://en.cryptobadges.io/badge/micro/0x0f58B66993a315dbCc102b4276298B5Ff8895F41" alt="Donate with Ethereum"></a>
9+
<a href="https://www.gnu.org/licenses/gpl-3.0"><img src="https://img.shields.io/badge/License-GPLv3-blue.svg" alt="License: GPL v3"></a>
10+
</p>
11+
12+
A port of BungeeBlockVersion for Velocity. This plugin will block players from connecting to your network with certain versions.
13+
14+
## Features
15+
* Block players if they are using a version that is on the list.
16+
* Custom disconnect message.
17+
18+
## Documentation
19+
Visit the [wiki](https://docs.hyper.lol/velocityblockversion) for help.
20+
21+
## License
22+
This plugin is released under GNU General Public License v3. See [LICENSE](https://github.com/hyperdefined/VelocityBlockVersion/blob/master/LICENSE).

pom.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ This file is part of VelocityBlockVersion.
4+
~
5+
~ VelocityBlockVersion is free software: you can redistribute it and/or modify
6+
~ it under the terms of the GNU General Public License as published by
7+
~ the Free Software Foundation, either version 3 of the License, or
8+
~ (at your option) any later version.
9+
~
10+
~ VelocityBlockVersion is distributed in the hope that it will be useful,
11+
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
~ GNU Lesser General Public License for more details.
14+
~
15+
~ You should have received a copy of the GNU General Public License
16+
~ along with VelocityBlockVersion. If not, see <https://www.gnu.org/licenses/>.
17+
-->
18+
219
<project xmlns="http://maven.apache.org/POM/4.0.0"
320
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
421
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

src/main/java/lol/hyper/velocityblockversion/VelocityBlockVersion.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* This file is part of VelocityBlockVersion.
3+
*
4+
* VelocityBlockVersion is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* VelocityBlockVersion is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with VelocityBlockVersion. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
118
package lol.hyper.velocityblockversion;
219

320
import com.google.inject.Inject;

src/main/java/lol/hyper/velocityblockversion/tools/ConfigHandler.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* This file is part of VelocityBlockVersion.
3+
*
4+
* VelocityBlockVersion is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* VelocityBlockVersion is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with VelocityBlockVersion. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
118
package lol.hyper.velocityblockversion.tools;
219

320
import com.moandjiezana.toml.Toml;

src/main/java/lol/hyper/velocityblockversion/tools/VersionToStrings.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
/*
2+
* This file is part of VelocityBlockVersion.
3+
*
4+
* VelocityBlockVersion is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* VelocityBlockVersion is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with VelocityBlockVersion. If not, see <https://www.gnu.org/licenses/>.
16+
*/
17+
118
package lol.hyper.velocityblockversion.tools;
219

320
import java.util.ArrayList;
@@ -45,7 +62,7 @@ public static void init() {
4562
/**
4663
* Builds a string that will show what versions the server supports. Example: 1.8 to 1.14.4
4764
* @param deniedVersions Versions to deny.
48-
* @return Returns the string of versions.
65+
* @return Returns the string of versions. Returns nulls if there are no versions that are allowed.
4966
*/
5067
public static String allowedVersions(List<Integer> deniedVersions) {
5168
List<Integer> allVersions = new ArrayList<>(versionStrings.keySet());

0 commit comments

Comments
 (0)