Skip to content

Commit 7a33186

Browse files
committed
zAPI 2.0.4
1 parent 39602e2 commit 7a33186

3 files changed

Lines changed: 11 additions & 17 deletions

File tree

changelog.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
## Dependency Changes
2-
- Updated [NBTAPI to 2.15.7](https://github.com/tr7zw/Item-NBT-API/releases/tag/2.15.7)
3-
- Updated [PlaceholderAPI to 2.12.2](https://github.com/PlaceholderAPI/PlaceholderAPI/releases/tag/2.12.2)
4-
- Updated bStats to 2.3.2
5-
- Updated to Paper API 1.21.11
6-
71
## General Changes
8-
- Added support for 26.1.1 and 26.1
9-
- Added logging files deletion after x days or when there is more than x files in the logs folder
10-
- Updated dependencies (bStats, PlaceholderAPI & NBT-API)
11-
- Classes relocation for better organization
12-
- Command paremeters now support suggestions, tab completion and code execution
13-
- New condition evaluator for menu display conditions
14-
- Improvements to logging system
15-
- Math is now supported in menu display conditions
2+
- Quick patch to YAMLBuilder, to not duplicate "\\" when building a YAML string. This was causing issues with some plugins that use zAPI's YAMLBuilder to build their own YAML strings.
163

174

18-
**Full Changelog**: https://github.com/yL3oft/zAPI/compare/2.0.2..2.0.3
5+
**Full Changelog**: https://github.com/yL3oft/zAPI/compare/2.0.3..2.0.4

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.yleoft</groupId>
88
<artifactId>zAPI</artifactId>
9-
<version>2.0.3</version>
9+
<version>2.0.4</version>
1010
<description>A library for creating Paper-based plugins.</description>
1111
<url>https://github.com/yL3oft/zAPI</url>
1212

src/main/java/me/yleoft/zAPI/configuration/YAMLBuilder.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,14 @@ private int findClosingQuote(String value, char quoteChar, int startIndex) {
20742074
private String unquote(String value) {
20752075
if ((value.startsWith("\"") && value.endsWith("\"")) ||
20762076
(value.startsWith("'") && value.endsWith("'"))) {
2077-
return value.substring(1, value.length() - 1);
2077+
String inner = value.substring(1, value.length() - 1);
2078+
return inner
2079+
.replace("\\\\", "\\")
2080+
.replace("\\\"", "\"")
2081+
.replace("\\'", "'")
2082+
.replace("\\n", "\n")
2083+
.replace("\\r", "\r")
2084+
.replace("\\t", "\t");
20782085
}
20792086
return value;
20802087
}

0 commit comments

Comments
 (0)