Skip to content

Commit

Permalink
Add 1.16 and 1.16.1 Protocol Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre601 committed Jun 25, 2020
1 parent c57e5b2 commit 91a4191
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.andre601</groupId>
<artifactId>OneVersionRemake</artifactId>
<version>1.4.0</version>
<version>1.4.1</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -23,14 +23,14 @@
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.1</version>
<version>1.16-R0.1-SNAPSHOT</version>
<type>jar</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>net.md-5</groupId>
<artifactId>bungeecord-api</artifactId>
<version>1.16-R0.1</version>
<version>1.16-R0.1-SNAPSHOT</version>
<type>javadoc</type>
<scope>provided</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public void onEnable(){
* In such a case will we print this warning and return to not load the listeners, preventing possible issues.
*/
if(protocol < 47){
error("§c================================================================================");
error("§cWARNING!");
error("§cThe config option \"Version\" is set to less than 47 (MC 1.8.9)!");
error("§cThe plugin won't be fully loaded to prevent any issues.");
error("§c");
error("§cPlease change the Version to a supported one listed here:");
error("§chttps://github.com/Andre601/OneVersionRemake/wiki/Supported-Protocols");
error("§c================================================================================");
error("================================================================================");
error("WARNING!");
error("The config option \"Version\" is set to less than 47 (MC 1.8.9)!");
error("The plugin won't be fully loaded to prevent any issues.");
error("");
error("Please change the Version to a supported one listed here:");
error("https://github.com/Andre601/OneVersionRemake/wiki/Supported-Protocols");
error("================================================================================");
return;
}
info("Loaded Protocol %d (MC %s)!", protocol, Versions.getFriendlyName(protocol));
Expand Down Expand Up @@ -107,7 +107,7 @@ public void info(String text, Object... args){
}

private void error(String text, Object... args){
sendMessage("§7[§cOneVersionRemake§7] " + text, args);
sendMessage("§7[§cOneVersionRemake§7] §c" + text, args);
}

private void sendMessage(String text, Object... args){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* If, for example, ID 573 is used will {version} be changed to 1.15
*/
public enum Versions{
MC_1_16_1(736, "1.16.1"),
MC_1_16 (735, "1.16"),
MC_1_15_2(578, "1.15.2"),
MC_1_15_1(575, "1.15.1"),
MC_1_15 (573, "1.15"),
Expand Down
2 changes: 2 additions & 0 deletions wiki/Supported-Protocols.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The following list contains all supported protocols and what version String is r

| Protocol: | Displayed version: |
|:---------:|:------------------:|
| 736 | 1.16.1 |
| 735 | 1.16 |
| 578 | 1.15.2 |
| 575 | 1.15.1 |
| 573 | 1.15 |
Expand Down

0 comments on commit 91a4191

Please sign in to comment.