Merge remote-tracking branch 'origin/master'
Dieser Commit ist enthalten in:
Commit
7f5ea6e493
@ -47,7 +47,7 @@ public class ComponentParser {
|
|||||||
try {
|
try {
|
||||||
Class<?> readerClass = Class.forName("org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader");
|
Class<?> readerClass = Class.forName("org.bukkit.craftbukkit.libs.com.google.gson.stream.JsonReader");
|
||||||
Object reader = readerClass.getConstructor(Reader.class).newInstance(str);
|
Object reader = readerClass.getConstructor(Reader.class).newInstance(str);
|
||||||
Method setLenient = readerClass.getMethod("setLenienent", boolean.class);
|
Method setLenient = readerClass.getMethod("setLenient", boolean.class);
|
||||||
setLenient.invoke(reader, true);
|
setLenient.invoke(reader, true);
|
||||||
Method getAdapter = gson.getClass().getMethod("getAdapter", Class.class);
|
Method getAdapter = gson.getClass().getMethod("getAdapter", Class.class);
|
||||||
Object adapter = getAdapter.invoke(gson, component);
|
Object adapter = getAdapter.invoke(gson, component);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren