From 3ecdfd75b06db41005c0325267984275ad5518d7 Mon Sep 17 00:00:00 2001 From: unurled Date: Thu, 29 Feb 2024 15:07:39 +0100 Subject: [PATCH] refactor --- .../sr/data/gson/PotionEffectSerializer.java | 18 ++++++++++-------- src/main/resources/plugin.yml | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/unurled/sacredrealms/sr/data/gson/PotionEffectSerializer.java b/src/main/java/me/unurled/sacredrealms/sr/data/gson/PotionEffectSerializer.java index 0712b9f..7b08aa6 100644 --- a/src/main/java/me/unurled/sacredrealms/sr/data/gson/PotionEffectSerializer.java +++ b/src/main/java/me/unurled/sacredrealms/sr/data/gson/PotionEffectSerializer.java @@ -12,14 +12,16 @@ public class PotionEffectSerializer implements JsonSerializer { @Override public JsonElement serialize( PotionEffect potionEffect, Type type, JsonSerializationContext jsonSerializationContext) { - String sb = "{" - + potionEffect.getType().key() - + "," - + potionEffect.getDuration() - + "," - + potionEffect.getAmplifier() - + "," + potionEffect.hasParticles() - + "}"; + String sb = + "{" + + potionEffect.getType().key() + + "," + + potionEffect.getDuration() + + "," + + potionEffect.getAmplifier() + + "," + + potionEffect.hasParticles() + + "}"; return new JsonPrimitive(sb); } } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 8c928fc..01de738 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -5,7 +5,7 @@ api-version: "$apiVersion" description: $description load: POSTWORLD authors: - - unurled + - unurled permissions: sr.tutorial: