diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/bag/BagManager.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/bag/BagManager.java index 69a858bc..5f01cf69 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/bag/BagManager.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/bag/BagManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.bag; import net.momirealms.customfishing.common.plugin.feature.Reloadable; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BaitConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BaitConfigParser.java index 19908a7f..a059cb9c 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BaitConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BaitConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BlockConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BlockConfigParser.java index 8b1f97e1..8934849f 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BlockConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/BlockConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigManager.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigManager.java index 73e72b80..400194b8 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigManager.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigType.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigType.java index aaa66efe..8f3e02f9 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigType.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ConfigType.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EnchantConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EnchantConfigParser.java index 0ab2cdf8..83efe3d4 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EnchantConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EnchantConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EntityConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EntityConfigParser.java index 36d74d2d..dc95002f 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EntityConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/EntityConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/GUIItemParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/GUIItemParser.java index d80f3e47..4c981e10 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/GUIItemParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/GUIItemParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/HookConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/HookConfigParser.java index a6171b07..7c424c9d 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/HookConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/HookConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ItemConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ItemConfigParser.java index d644349e..8147451c 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ItemConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/ItemConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/RodConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/RodConfigParser.java index ce979f8b..1d68774a 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/RodConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/RodConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/TotemConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/TotemConfigParser.java index 68703199..3a46e38a 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/TotemConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/TotemConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/UtilConfigParser.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/UtilConfigParser.java index afacdb33..782723dd 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/UtilConfigParser.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/UtilConfigParser.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BaseEffectParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BaseEffectParserFunction.java index 21534380..d76358d1 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BaseEffectParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BaseEffectParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.effect.LootBaseEffect; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BlockParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BlockParserFunction.java index 6c28f607..22e27322 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BlockParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/BlockParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.block.BlockConfig; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ConfigParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ConfigParserFunction.java index 320745bd..42c64dd9 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ConfigParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ConfigParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; public interface ConfigParserFunction { diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EffectModifierParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EffectModifierParserFunction.java index bbfdea7a..7f16e816 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EffectModifierParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EffectModifierParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.effect.EffectModifier; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EntityParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EntityParserFunction.java index f2532718..203220d6 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EntityParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EntityParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.entity.EntityConfig; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EventParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EventParserFunction.java index 7833c7f6..1e048515 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EventParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/EventParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.event.EventCarrier; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/HookParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/HookParserFunction.java index 0422f6e8..6ecf66e7 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/HookParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/HookParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.hook.HookConfig; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ItemParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ItemParserFunction.java index 179726c3..196526b7 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ItemParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ItemParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/LootParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/LootParserFunction.java index c25bdcab..83451837 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/LootParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/LootParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.loot.Loot; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ParserType.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ParserType.java index ec3e521d..338cff10 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ParserType.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/ParserType.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; public enum ParserType { diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/PriorityFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/PriorityFunction.java index b8264abe..09a13dcd 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/PriorityFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/PriorityFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import org.jetbrains.annotations.NotNull; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/TotemParserFunction.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/TotemParserFunction.java index c44e8f4d..c7d47a1a 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/TotemParserFunction.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/config/function/TotemParserFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.config.function; import net.momirealms.customfishing.api.mechanic.totem.TotemConfig; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectManager.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectManager.java index 6e614dfe..285b1d16 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectManager.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.effect; import net.momirealms.customfishing.api.mechanic.item.MechanicType; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectModifierImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectModifierImpl.java index ce224d96..43b6b1fd 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectModifierImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/EffectModifierImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.effect; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffect.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffect.java index 8ba10801..60bb20c7 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffect.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffect.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.effect; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffectImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffectImpl.java index a1139914..bbc47ce0 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffectImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/effect/LootBaseEffectImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.effect; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrier.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrier.java index 026d2b76..7f44df14 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrier.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrier.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.event; import net.momirealms.customfishing.api.mechanic.action.Action; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrierImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrierImpl.java index 9f8096bc..e648ac0e 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrierImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/event/EventCarrierImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.event; import net.momirealms.customfishing.api.mechanic.action.Action; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/CustomFishingHook.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/CustomFishingHook.java index 26fb4c13..55e48d18 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/CustomFishingHook.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/CustomFishingHook.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingGears.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingGears.java index f2d18aae..0c40b18f 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingGears.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingGears.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingPreparation.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingPreparation.java index 4a13e565..1b9825d3 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingPreparation.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/FishingPreparation.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing; public class FishingPreparation { diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/HookMechanic.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/HookMechanic.java index c81b1889..2bea4182 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/HookMechanic.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/HookMechanic.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing.hook; import net.momirealms.customfishing.api.mechanic.effect.Effect; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/LavaFishingMechanic.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/LavaFishingMechanic.java index ecdf0f34..b61261d7 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/LavaFishingMechanic.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/LavaFishingMechanic.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing.hook; import io.papermc.paper.block.fluid.FluidData; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VanillaMechanic.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VanillaMechanic.java index 4b5e3baa..07a16eb5 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VanillaMechanic.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VanillaMechanic.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing.hook; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VoidFishingMechanic.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VoidFishingMechanic.java index 20a0488e..444c63c0 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VoidFishingMechanic.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/fishing/hook/VoidFishingMechanic.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.fishing.hook; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/hook/HookConfig.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/hook/HookConfig.java index ab63ab2d..3259c2f4 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/hook/HookConfig.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/hook/HookConfig.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.hook; import java.util.List; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItem.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItem.java index 71ecd4f5..d9a3c997 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItem.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItem.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.item; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItemImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItemImpl.java index 1701aa4f..362a2af2 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItemImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/CustomFishingItemImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.item; import net.momirealms.customfishing.api.mechanic.config.function.PriorityFunction; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/MechanicType.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/MechanicType.java index 415ca26f..e5b06312 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/MechanicType.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/item/MechanicType.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.item; import net.kyori.adventure.util.Index; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/loot/LootImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/loot/LootImpl.java index 44858298..6c8a6cbf 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/loot/LootImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/loot/LootImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.loot; import net.momirealms.customfishing.api.mechanic.effect.LootBaseEffect; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/season/Season.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/season/Season.java index a419eb90..02c897ba 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/season/Season.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/season/Season.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.season; public enum Season { diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/ExpressionMathValueImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/ExpressionMathValueImpl.java index c8c6a132..99d77e08 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/ExpressionMathValueImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/ExpressionMathValueImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlaceholderTextValueImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlaceholderTextValueImpl.java index 919478ee..6d3dea9a 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlaceholderTextValueImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlaceholderTextValueImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainMathValueImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainMathValueImpl.java index 861cf2e2..9fd0f4de 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainMathValueImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainMathValueImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainTextValueImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainTextValueImpl.java index e79dff94..6a3907e9 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainTextValueImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/PlainTextValueImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/RangedMathValueImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/RangedMathValueImpl.java index 1be03baa..dde3dd34 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/RangedMathValueImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/RangedMathValueImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/TextValue.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/TextValue.java index 4094784b..1640ccd3 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/TextValue.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/misc/value/TextValue.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.misc.value; import net.momirealms.customfishing.api.mechanic.context.Context; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/requirement/ConditionalElement.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/requirement/ConditionalElement.java index fdd40a9f..eeb6e829 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/requirement/ConditionalElement.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/requirement/ConditionalElement.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.requirement; import java.util.Map; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatistics.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatistics.java index a76661d3..37cd64c9 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatistics.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatistics.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.statistic; import net.momirealms.customfishing.common.util.Pair; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatisticsImpl.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatisticsImpl.java index 46a09373..5dcbc2ec 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatisticsImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/statistic/FishingStatisticsImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.statistic; import net.momirealms.customfishing.common.util.Pair; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemConfig.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemConfig.java index a0ed1a23..e6bed212 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemConfig.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemConfig.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.totem; import net.momirealms.customfishing.api.mechanic.misc.value.MathValue; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemManager.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemManager.java index 5a355775..3b11f6aa 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemManager.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.totem; import net.momirealms.customfishing.common.plugin.feature.Reloadable; diff --git a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemParticle.java b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemParticle.java index e8354a6e..71ec13ef 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemParticle.java +++ b/api/src/main/java/net/momirealms/customfishing/api/mechanic/totem/TotemParticle.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.mechanic.totem; import net.momirealms.customfishing.common.plugin.scheduler.SchedulerTask; diff --git a/api/src/main/java/net/momirealms/customfishing/api/storage/data/EarningData.java b/api/src/main/java/net/momirealms/customfishing/api/storage/data/EarningData.java index b3bcbcef..60b1e8e3 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/storage/data/EarningData.java +++ b/api/src/main/java/net/momirealms/customfishing/api/storage/data/EarningData.java @@ -57,6 +57,14 @@ public class EarningData { return new EarningData(earnings, date); } + public double earnings() { + return earnings; + } + + public int date() { + return date; + } + public void refresh() { Calendar calendar = Calendar.getInstance(); int dat = (calendar.get(Calendar.MONTH) +1) * 100 + calendar.get(Calendar.DATE); diff --git a/api/src/main/java/net/momirealms/customfishing/api/storage/user/UserDataImpl.java b/api/src/main/java/net/momirealms/customfishing/api/storage/user/UserDataImpl.java index da9eda18..fafb6652 100644 --- a/api/src/main/java/net/momirealms/customfishing/api/storage/user/UserDataImpl.java +++ b/api/src/main/java/net/momirealms/customfishing/api/storage/user/UserDataImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.api.storage.user; import net.momirealms.customfishing.api.mechanic.bag.FishingBagHolder; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandFeature.java b/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandFeature.java index c8d7d40c..0597df25 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandFeature.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandFeature.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import net.kyori.adventure.text.Component; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandManager.java b/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandManager.java index db06fc8d..32f9d41a 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandManager.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/AbstractCommandManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/CommandBuilder.java b/common/src/main/java/net/momirealms/customfishing/common/command/CommandBuilder.java index 5a866b77..2bf569c2 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/CommandBuilder.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/CommandBuilder.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import org.incendo.cloud.Command; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/CommandConfig.java b/common/src/main/java/net/momirealms/customfishing/common/command/CommandConfig.java index 5c02be53..d07e0307 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/CommandConfig.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/CommandConfig.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import java.util.ArrayList; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/CommandFeature.java b/common/src/main/java/net/momirealms/customfishing/common/command/CommandFeature.java index 381cdeeb..b3f88835 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/CommandFeature.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/CommandFeature.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import net.kyori.adventure.text.Component; diff --git a/common/src/main/java/net/momirealms/customfishing/common/command/CustomFishingCommandManager.java b/common/src/main/java/net/momirealms/customfishing/common/command/CustomFishingCommandManager.java index 83f79cf7..09b69c55 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/command/CustomFishingCommandManager.java +++ b/common/src/main/java/net/momirealms/customfishing/common/command/CustomFishingCommandManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.command; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/common/src/main/java/net/momirealms/customfishing/common/config/ConfigLoader.java b/common/src/main/java/net/momirealms/customfishing/common/config/ConfigLoader.java index 8cdb4bd8..1f07cb17 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/config/ConfigLoader.java +++ b/common/src/main/java/net/momirealms/customfishing/common/config/ConfigLoader.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.config; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/common/src/main/java/net/momirealms/customfishing/common/config/node/Node.java b/common/src/main/java/net/momirealms/customfishing/common/config/node/Node.java index e3ef6b94..7357ee78 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/config/node/Node.java +++ b/common/src/main/java/net/momirealms/customfishing/common/config/node/Node.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.config.node; import org.jetbrains.annotations.NotNull; diff --git a/common/src/main/java/net/momirealms/customfishing/common/dependency/DependencyProperties.java b/common/src/main/java/net/momirealms/customfishing/common/dependency/DependencyProperties.java index 11a11ab5..132781bd 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/dependency/DependencyProperties.java +++ b/common/src/main/java/net/momirealms/customfishing/common/dependency/DependencyProperties.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.dependency; import java.io.IOException; diff --git a/common/src/main/java/net/momirealms/customfishing/common/helper/AdventureHelper.java b/common/src/main/java/net/momirealms/customfishing/common/helper/AdventureHelper.java index c5d9ad2b..8a1a8e75 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/helper/AdventureHelper.java +++ b/common/src/main/java/net/momirealms/customfishing/common/helper/AdventureHelper.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.helper; import com.github.benmanes.caffeine.cache.Cache; diff --git a/common/src/main/java/net/momirealms/customfishing/common/helper/ExpressionHelper.java b/common/src/main/java/net/momirealms/customfishing/common/helper/ExpressionHelper.java index 8c0c458f..f418c795 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/helper/ExpressionHelper.java +++ b/common/src/main/java/net/momirealms/customfishing/common/helper/ExpressionHelper.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.helper; import net.objecthunter.exp4j.ExpressionBuilder; diff --git a/common/src/main/java/net/momirealms/customfishing/common/helper/GsonHelper.java b/common/src/main/java/net/momirealms/customfishing/common/helper/GsonHelper.java index 7548c0cb..fb9ba96a 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/helper/GsonHelper.java +++ b/common/src/main/java/net/momirealms/customfishing/common/helper/GsonHelper.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.helper; import com.google.gson.Gson; diff --git a/common/src/main/java/net/momirealms/customfishing/common/item/AbstractItem.java b/common/src/main/java/net/momirealms/customfishing/common/item/AbstractItem.java index ecae3616..380bd907 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/item/AbstractItem.java +++ b/common/src/main/java/net/momirealms/customfishing/common/item/AbstractItem.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.item; import net.momirealms.customfishing.common.plugin.CustomFishingPlugin; diff --git a/common/src/main/java/net/momirealms/customfishing/common/item/ComponentKeys.java b/common/src/main/java/net/momirealms/customfishing/common/item/ComponentKeys.java index 4a83ccef..817df15d 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/item/ComponentKeys.java +++ b/common/src/main/java/net/momirealms/customfishing/common/item/ComponentKeys.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.item; import net.kyori.adventure.key.Key; diff --git a/common/src/main/java/net/momirealms/customfishing/common/item/Item.java b/common/src/main/java/net/momirealms/customfishing/common/item/Item.java index e6ac79d9..b6545274 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/item/Item.java +++ b/common/src/main/java/net/momirealms/customfishing/common/item/Item.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.item; import net.momirealms.customfishing.common.util.Key; diff --git a/common/src/main/java/net/momirealms/customfishing/common/item/ItemFactory.java b/common/src/main/java/net/momirealms/customfishing/common/item/ItemFactory.java index 3f929221..f3ed9015 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/item/ItemFactory.java +++ b/common/src/main/java/net/momirealms/customfishing/common/item/ItemFactory.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.item; import net.momirealms.customfishing.common.plugin.CustomFishingPlugin; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionFormatter.java b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionFormatter.java index d9998c8b..b63e2e48 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionFormatter.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionFormatter.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.text.Component; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionKeys.java b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionKeys.java index 75e94f05..47dcf374 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionKeys.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionKeys.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import org.incendo.cloud.caption.Caption; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionProvider.java b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionProvider.java index 3a45a735..226be8bf 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionProvider.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/CustomFishingCaptionProvider.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import org.checkerframework.checker.nullness.qual.NonNull; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/MessageConstants.java b/common/src/main/java/net/momirealms/customfishing/common/locale/MessageConstants.java index aa598731..cd21a631 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/MessageConstants.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/MessageConstants.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.text.Component; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistry.java b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistry.java index f6eb877c..afa376fa 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistry.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistry.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.key.Key; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistryImpl.java b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistryImpl.java index 811a96b4..3652e6a9 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistryImpl.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslationRegistryImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.internal.Internals; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslator.java b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslator.java index 9a5af778..47c42114 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslator.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslator.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.text.Component; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslatorImpl.java b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslatorImpl.java index 076720b9..ea55ec5c 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslatorImpl.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/MiniMessageTranslatorImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import net.kyori.adventure.key.Key; diff --git a/common/src/main/java/net/momirealms/customfishing/common/locale/TranslationManager.java b/common/src/main/java/net/momirealms/customfishing/common/locale/TranslationManager.java index 6fb29a56..13f33ab3 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/locale/TranslationManager.java +++ b/common/src/main/java/net/momirealms/customfishing/common/locale/TranslationManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.locale; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/common/src/main/java/net/momirealms/customfishing/common/plugin/CustomFishingPlugin.java b/common/src/main/java/net/momirealms/customfishing/common/plugin/CustomFishingPlugin.java index 4e4f5d9c..e4fa118b 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/plugin/CustomFishingPlugin.java +++ b/common/src/main/java/net/momirealms/customfishing/common/plugin/CustomFishingPlugin.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.plugin; import net.momirealms.customfishing.common.config.ConfigLoader; diff --git a/common/src/main/java/net/momirealms/customfishing/common/plugin/feature/Reloadable.java b/common/src/main/java/net/momirealms/customfishing/common/plugin/feature/Reloadable.java index 6a207a23..6e7efc82 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/plugin/feature/Reloadable.java +++ b/common/src/main/java/net/momirealms/customfishing/common/plugin/feature/Reloadable.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.plugin.feature; public interface Reloadable { diff --git a/common/src/main/java/net/momirealms/customfishing/common/plugin/scheduler/RegionExecutor.java b/common/src/main/java/net/momirealms/customfishing/common/plugin/scheduler/RegionExecutor.java index bbb4c70c..320542af 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/plugin/scheduler/RegionExecutor.java +++ b/common/src/main/java/net/momirealms/customfishing/common/plugin/scheduler/RegionExecutor.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.plugin.scheduler; public interface RegionExecutor { diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/ArrayUtils.java b/common/src/main/java/net/momirealms/customfishing/common/util/ArrayUtils.java index c51371bd..e9c6662a 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/ArrayUtils.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/ArrayUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.lang.reflect.Array; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/Either.java b/common/src/main/java/net/momirealms/customfishing/common/util/Either.java index c5577b27..3464b28d 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/Either.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/Either.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import org.jetbrains.annotations.NotNull; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/EitherImpl.java b/common/src/main/java/net/momirealms/customfishing/common/util/EitherImpl.java index 32bd8c07..ab6ff54b 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/EitherImpl.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/EitherImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import org.jetbrains.annotations.NotNull; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/FileUtils.java b/common/src/main/java/net/momirealms/customfishing/common/util/FileUtils.java index 297c8946..0cd34962 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/FileUtils.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/FileUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.io.IOException; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/Key.java b/common/src/main/java/net/momirealms/customfishing/common/util/Key.java index 30809be3..46037c6b 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/Key.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/Key.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; public record Key(String namespace, String value) { diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/ListUtils.java b/common/src/main/java/net/momirealms/customfishing/common/util/ListUtils.java index 350f7481..5550bd6a 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/ListUtils.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/ListUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.util.List; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/RandomUtils.java b/common/src/main/java/net/momirealms/customfishing/common/util/RandomUtils.java index da91d34d..760ced64 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/RandomUtils.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/RandomUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.util.Random; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/TriConsumer.java b/common/src/main/java/net/momirealms/customfishing/common/util/TriConsumer.java index a83c9e97..470cb71b 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/TriConsumer.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/TriConsumer.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; public interface TriConsumer { diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/TriFunction.java b/common/src/main/java/net/momirealms/customfishing/common/util/TriFunction.java index 994ee6ec..7f038164 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/TriFunction.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/TriFunction.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.util.Objects; diff --git a/common/src/main/java/net/momirealms/customfishing/common/util/UUIDUtils.java b/common/src/main/java/net/momirealms/customfishing/common/util/UUIDUtils.java index 3269b698..3b6d7c5e 100644 --- a/common/src/main/java/net/momirealms/customfishing/common/util/UUIDUtils.java +++ b/common/src/main/java/net/momirealms/customfishing/common/util/UUIDUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.common.util; import java.math.BigInteger; diff --git a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/item/McMMOTreasureProvider.java b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/item/McMMOTreasureProvider.java index 3bc1f622..b379e48b 100644 --- a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/item/McMMOTreasureProvider.java +++ b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/item/McMMOTreasureProvider.java @@ -70,7 +70,7 @@ public class McMMOTreasureProvider implements ItemProvider { times++; } } - return itemStack == null ? new ItemStack(Material.COD) : itemStack; + return itemStack == null ? (Math.random() > 0.5 ? new ItemStack(Material.COD) : (Math.random() > 0.2) ? new ItemStack(Material.SALMON) : new ItemStack(Material.PUFFERFISH)) : itemStack; } @Override diff --git a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CompetitionPapi.java b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CompetitionPapi.java index 6382605b..1cdc1904 100644 --- a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CompetitionPapi.java +++ b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CompetitionPapi.java @@ -1,144 +1,147 @@ -///* -// * Copyright (C) <2022> -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU General Public License as published by -// * the Free Software Foundation, either version 3 of the License, or -// * any later version. -// * -// * This program is distributed in the hope that it will be useful, -// * but WITHOUT ANY WARRANTY; without even the implied warranty of -// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// * GNU General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see . -// */ -// -//package net.momirealms.customfishing.bukkit.integration.papi; -// -//import me.clip.placeholderapi.expansion.PlaceholderExpansion; -//import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; -//import net.momirealms.customfishing.api.mechanic.competition.FishingCompetition; -//import org.bukkit.OfflinePlayer; -//import org.jetbrains.annotations.NotNull; -//import org.jetbrains.annotations.Nullable; -// -//import java.util.Optional; -// -//public class CompetitionPapi extends PlaceholderExpansion { -// -// private final BukkitCustomFishingPlugin plugin; -// -// public CompetitionPapi(BukkitCustomFishingPlugin plugin) { -// this.plugin = plugin; -// } -// -// public void load() { -// super.register(); -// } -// -// public void unload() { -// super.unregister(); -// } -// -// @Override -// public @NotNull String getIdentifier() { -// return "cfcompetition"; -// } -// -// @Override -// public @NotNull String getAuthor() { -// return "XiaoMoMi"; -// } -// -// @Override -// public @NotNull String getVersion() { -// return "2.0"; -// } -// -// @Override -// public boolean persist() { -// return true; -// } -// -// @Override -// public @Nullable String onRequest(OfflinePlayer player, @NotNull String params) { -// switch (params) { -// case "goingon" -> { -// return String.valueOf(plugin.getCompetitionManager().getOnGoingCompetition() != null); -// } -// case "nextseconds" -> { -// return String.valueOf(plugin.getCompetitionManager().getNextCompetitionInSeconds()); -// } -// case "nextsecond" -> { -// return plugin.getCompetitionManager().getNextCompetitionInSeconds() % 60 + CFLocale.FORMAT_Second; -// } -// case "nextminute" -> { -// int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); -// int min = (sec % 3600) / 60; -// return sec < 60 ? "" : min + CFLocale.FORMAT_Minute; -// } -// case "nexthour" -> { -// int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); -// int h = (sec % (3600 * 24)) / 3600; -// return sec < 3600 ? "" : h + CFLocale.FORMAT_Hour; -// } -// case "nextday" -> { -// int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); -// int day = sec / (3600 * 24); -// return day == 0 ? "" : day + CFLocale.FORMAT_Day; -// } -// case "rank" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// else return String.valueOf(competition.getRanking().getPlayerRank(player.getName())); -// } -// case "goal" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// else return competition.getGoal().name(); -// } -// case "seconds" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// return competition.getCachedPlaceholder("{seconds}"); -// } -// case "second" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// return competition.getCachedPlaceholder("{second}"); -// } -// case "minute" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// return competition.getCachedPlaceholder("{minute}"); -// } -// case "hour" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// return competition.getCachedPlaceholder("{hour}"); -// } -// } -// -// String[] split = params.split("_", 2); -// switch (split[0]) { -// case "score" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// if (split.length == 1) { -// return String.format("%.2f", competition.getRanking().getPlayerScore(player.getName())); -// } else { -// return String.format("%.2f", competition.getRanking().getScoreAt(Integer.parseInt(split[1]))); -// } -// } -// case "player" -> { -// FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); -// if (competition == null) return ""; -// if (split.length == 1) return "Invalid format"; -// return Optional.ofNullable(competition.getRanking().getPlayerAt(Integer.parseInt(split[1]))).orElse(""); -// } -// } -// return "null"; -// } -//} +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.momirealms.customfishing.bukkit.integration.papi; + +import me.clip.placeholderapi.expansion.PlaceholderExpansion; +import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; +import net.momirealms.customfishing.api.mechanic.competition.FishingCompetition; +import net.momirealms.customfishing.api.mechanic.context.ContextKeys; +import net.momirealms.customfishing.common.locale.MessageConstants; +import net.momirealms.customfishing.common.locale.TranslationManager; +import org.bukkit.OfflinePlayer; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.Optional; + +public class CompetitionPapi extends PlaceholderExpansion { + + private final BukkitCustomFishingPlugin plugin; + + public CompetitionPapi(BukkitCustomFishingPlugin plugin) { + this.plugin = plugin; + } + + public void load() { + super.register(); + } + + public void unload() { + super.unregister(); + } + + @Override + public @NotNull String getIdentifier() { + return "cfcompetition"; + } + + @Override + public @NotNull String getAuthor() { + return "XiaoMoMi"; + } + + @Override + public @NotNull String getVersion() { + return "2.2"; + } + + @Override + public boolean persist() { + return true; + } + + @Override + public @Nullable String onRequest(OfflinePlayer player, @NotNull String params) { + switch (params) { + case "goingon" -> { + return String.valueOf(plugin.getCompetitionManager().getOnGoingCompetition() != null); + } + case "nextseconds" -> { + return String.valueOf(plugin.getCompetitionManager().getNextCompetitionInSeconds()); + } + case "nextsecond" -> { + return plugin.getCompetitionManager().getNextCompetitionInSeconds() % 60 + TranslationManager.miniMessageTranslation(MessageConstants.FORMAT_SECOND.build().key()); + } + case "nextminute" -> { + int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); + int min = (sec % 3600) / 60; + return sec < 60 ? "" : min + TranslationManager.miniMessageTranslation(MessageConstants.FORMAT_MINUTE.build().key()); + } + case "nexthour" -> { + int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); + int h = (sec % (3600 * 24)) / 3600; + return sec < 3600 ? "" : h + TranslationManager.miniMessageTranslation(MessageConstants.FORMAT_HOUR.build().key()); + } + case "nextday" -> { + int sec = plugin.getCompetitionManager().getNextCompetitionInSeconds(); + int day = sec / (3600 * 24); + return day == 0 ? "" : day + TranslationManager.miniMessageTranslation(MessageConstants.FORMAT_DAY.build().key()); + } + case "rank" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + else return String.valueOf(competition.getRanking().getPlayerRank(player.getName())); + } + case "goal" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + else return competition.getGoal().toString(); + } + case "seconds" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + return String.valueOf(competition.getPublicContext().arg(ContextKeys.SECONDS)); + } + case "second" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + return String.valueOf(competition.getPublicContext().arg(ContextKeys.SECOND)); + } + case "minute" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + return String.valueOf(competition.getPublicContext().arg(ContextKeys.MINUTE)); + } + case "hour" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + return String.valueOf(competition.getPublicContext().arg(ContextKeys.HOUR)); + } + } + + String[] split = params.split("_", 2); + switch (split[0]) { + case "score" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + if (split.length == 1) { + return String.format("%.2f", competition.getRanking().getPlayerScore(player.getName())); + } else { + return String.format("%.2f", competition.getRanking().getScoreAt(Integer.parseInt(split[1]))); + } + } + case "player" -> { + FishingCompetition competition = plugin.getCompetitionManager().getOnGoingCompetition(); + if (competition == null) return ""; + if (split.length == 1) return "Invalid format"; + return Optional.ofNullable(competition.getRanking().getPlayerAt(Integer.parseInt(split[1]))).orElse(""); + } + } + return "null"; + } +} diff --git a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CustomFishingPapi.java b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CustomFishingPapi.java index 74170889..6fe85a2c 100644 --- a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CustomFishingPapi.java +++ b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/CustomFishingPapi.java @@ -1,126 +1,125 @@ -///* -// * Copyright (C) <2022> -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU General Public License as published by -// * the Free Software Foundation, either version 3 of the License, or -// * any later version. -// * -// * This program is distributed in the hope that it will be useful, -// * but WITHOUT ANY WARRANTY; without even the implied warranty of -// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// * GNU General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see . -// */ -// -//package net.momirealms.customfishing.bukkit.integration.papi; -// -//import me.clip.placeholderapi.expansion.PlaceholderExpansion; -//import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; -//import org.bukkit.Bukkit; -//import org.bukkit.OfflinePlayer; -//import org.bukkit.entity.Player; -//import org.jetbrains.annotations.NotNull; -//import org.jetbrains.annotations.Nullable; -// -//public class CustomFishingPapi extends PlaceholderExpansion { -// -// private final BukkitCustomFishingPlugin plugin; -// -// public CustomFishingPapi(BukkitCustomFishingPlugin plugin) { -// this.plugin = plugin; -// } -// -// public void load() { -// super.register(); -// } -// -// public void unload() { -// super.unregister(); -// } -// -// @Override -// public @NotNull String getIdentifier() { -// return "customfishing"; -// } -// -// @Override -// public @NotNull String getAuthor() { -// return "XiaoMoMi"; -// } -// -// @Override -// public @NotNull String getVersion() { -// return "2.0"; -// } -// -// @Override -// public boolean persist() { -// return true; -// } -// -// @Override -// public @Nullable String onRequest(OfflinePlayer offlinePlayer, @NotNull String params) { -// String[] split = params.split("_"); -// -// Player player = offlinePlayer.getPlayer(); -// if (player == null) -// return ""; -// -// switch (split[0]) { -// case "market" -> { -// if (split.length < 2) -// return null; -// switch (split[1]) { -// case "limit" -> { -// if (split.length < 3) { -// return String.format("%.2f", plugin.getMarketManager().earningLimit(player)); -// } else { -// Player another = Bukkit.getPlayer(split[2]); -// if (another == null) { -// return ""; -// } -// return String.format("%.2f", plugin.getMarketManager().earningLimit(another)); -// } -// } -// case "earnings" -> { -// OnlineUserData user; -// if (split.length < 3) { -// user = plugin.getStorageManager().getOnlineUser(player.getUniqueId()); -// } else { -// Player another = Bukkit.getPlayer(split[2]); -// if (another == null) { -// return ""; -// } -// user = plugin.getStorageManager().getOnlineUser(another.getUniqueId()); -// } -// if (user == null) -// return ""; -// return String.format("%.2f", user.getEarningData().earnings); -// } -// case "canearn" -> { -// if (split.length < 3) { -// OnlineUserData user = plugin.getStorageManager().getOnlineUser(player.getUniqueId()); -// if (user == null) -// return ""; -// return String.format("%.2f", plugin.getMarketManager().earningLimit(player) - user.getEarningData().earnings); -// } else { -// Player another = Bukkit.getPlayer(split[2]); -// if (another == null) { -// return ""; -// } -// -// OnlineUserData user = plugin.getStorageManager().getOnlineUser(another.getUniqueId()); -// if (user == null) -// return ""; -// return String.format("%.2f", plugin.getMarketManager().earningLimit(another) - user.getEarningData().earnings); -// } -// } -// } -// } -// } -// return null; -// } -//} +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.momirealms.customfishing.bukkit.integration.papi; + +import me.clip.placeholderapi.expansion.PlaceholderExpansion; +import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; +import net.momirealms.customfishing.api.mechanic.context.Context; +import net.momirealms.customfishing.api.storage.user.UserData; +import org.bukkit.Bukkit; +import org.bukkit.OfflinePlayer; +import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +public class CustomFishingPapi extends PlaceholderExpansion { + + private final BukkitCustomFishingPlugin plugin; + + public CustomFishingPapi(BukkitCustomFishingPlugin plugin) { + this.plugin = plugin; + } + + public void load() { + super.register(); + } + + public void unload() { + super.unregister(); + } + + @Override + public @NotNull String getIdentifier() { + return "customfishing"; + } + + @Override + public @NotNull String getAuthor() { + return "XiaoMoMi"; + } + + @Override + public @NotNull String getVersion() { + return "2.2"; + } + + @Override + public boolean persist() { + return true; + } + + @Override + public @Nullable String onRequest(OfflinePlayer offlinePlayer, @NotNull String params) { + String[] split = params.split("_"); + Player player = offlinePlayer.getPlayer(); + if (player == null) + return ""; + switch (split[0]) { + case "market" -> { + if (split.length < 2) + return null; + switch (split[1]) { + case "limit" -> { + if (split.length < 3) { + return String.format("%.2f", plugin.getMarketManager().earningLimit(Context.player(player))); + } else { + Player another = Bukkit.getPlayer(split[2]); + if (another == null) { + return ""; + } + return String.format("%.2f", plugin.getMarketManager().earningLimit(Context.player(another))); + } + } + case "earnings" -> { + UserData user; + if (split.length < 3) { + user = plugin.getStorageManager().getOnlineUser(player.getUniqueId()).orElse(null); + } else { + Player another = Bukkit.getPlayer(split[2]); + if (another == null) { + return ""; + } + user = plugin.getStorageManager().getOnlineUser(another.getUniqueId()).orElse(null); + } + if (user == null) + return ""; + return String.format("%.2f", user.earningData().earnings()); + } + case "canearn" -> { + if (split.length < 3) { + UserData user = plugin.getStorageManager().getOnlineUser(player.getUniqueId()).orElse(null); + if (user == null) + return ""; + return String.format("%.2f", plugin.getMarketManager().earningLimit(Context.player(player)) - user.earningData().earnings()); + } else { + Player another = Bukkit.getPlayer(split[2]); + if (another == null) { + return ""; + } + UserData user = plugin.getStorageManager().getOnlineUser(another.getUniqueId()).orElse(null); + if (user == null) + return ""; + return String.format("%.2f", plugin.getMarketManager().earningLimit(Context.player(another)) - user.earningData().earnings()); + } + } + } + } + } + return null; + } +} diff --git a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/StatisticsPapi.java b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/StatisticsPapi.java index 051c288e..cc85aca7 100644 --- a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/StatisticsPapi.java +++ b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/papi/StatisticsPapi.java @@ -1,112 +1,116 @@ -///* -// * Copyright (C) <2022> -// * -// * This program is free software: you can redistribute it and/or modify -// * it under the terms of the GNU General Public License as published by -// * the Free Software Foundation, either version 3 of the License, or -// * any later version. -// * -// * This program is distributed in the hope that it will be useful, -// * but WITHOUT ANY WARRANTY; without even the implied warranty of -// * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// * GNU General Public License for more details. -// * -// * You should have received a copy of the GNU General Public License -// * along with this program. If not, see . -// */ -// -//package net.momirealms.customfishing.bukkit.integration.papi; -// -//import me.clip.placeholderapi.expansion.PlaceholderExpansion; -//import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; -//import org.bukkit.OfflinePlayer; -//import org.jetbrains.annotations.NotNull; -//import org.jetbrains.annotations.Nullable; -// -//import java.util.List; -// -//public class StatisticsPapi extends PlaceholderExpansion { -// -// private final BukkitCustomFishingPlugin plugin; -// -// public StatisticsPapi(BukkitCustomFishingPlugin plugin) { -// this.plugin = plugin; -// } -// -// public void load() { -// super.register(); -// } -// -// public void unload() { -// super.unregister(); -// } -// -// @Override -// public @NotNull String getIdentifier() { -// return "fishingstats"; -// } -// -// @Override -// public @NotNull String getAuthor() { -// return "XiaoMoMi"; -// } -// -// @Override -// public @NotNull String getVersion() { -// return "2.0"; -// } -// -// @Override -// public boolean persist() { -// return true; -// } -// -// @Override -// public @Nullable String onRequest(OfflinePlayer player, @NotNull String params) { -// OnlineUserData onlineUser = plugin.getStorageManager().getOnlineUser(player.getUniqueId()); -// if (onlineUser == null) return "Data not loaded"; -// Statistics statistics = onlineUser.getStatistics(); -// String[] split = params.split("_", 2); -// switch (split[0]) { -// case "total" -> { -// return String.valueOf(statistics.getTotalCatchAmount()); -// } -// case "hascaught" -> { -// if (split.length == 1) return "Invalid format"; -// return String.valueOf(statistics.getLootAmount(split[1]) != 0); -// } -// case "amount" -> { -// if (split.length == 1) return "Invalid format"; -// return String.valueOf(statistics.getLootAmount(split[1])); -// } -// case "size-record" -> { -// return String.format("%.2f", statistics.getSizeRecord(split[1])); -// } -// case "category" -> { -// if (split.length == 1) return "Invalid format"; -// String[] categorySplit = split[1].split("_", 2); -// if (categorySplit.length == 1) return "Invalid format"; -// List category = plugin.getStatisticsManager().getCategory(categorySplit[1]); -// if (category == null) return "Category Not Exists"; -// if (categorySplit[0].equals("total")) { -// int total = 0; -// for (String loot : category) { -// total += statistics.getLootAmount(loot); -// } -// return String.valueOf(total); -// } else if (categorySplit[0].equals("progress")) { -// int size = category.size(); -// int unlocked = 0; -// for (String loot : category) { -// if (statistics.getLootAmount(loot) != 0) unlocked++; -// } -// double percent = ((double) unlocked * 100) / size; -// String progress = String.format("%.1f", percent); -// return progress.equals("100.0") ? "100" : progress; -// } -// } -// } -// -// return "null"; -// } -//} +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package net.momirealms.customfishing.bukkit.integration.papi; + +import me.clip.placeholderapi.expansion.PlaceholderExpansion; +import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; +import net.momirealms.customfishing.api.mechanic.statistic.FishingStatistics; +import net.momirealms.customfishing.api.storage.user.UserData; +import org.bukkit.OfflinePlayer; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.util.List; +import java.util.Optional; + +public class StatisticsPapi extends PlaceholderExpansion { + + private final BukkitCustomFishingPlugin plugin; + + public StatisticsPapi(BukkitCustomFishingPlugin plugin) { + this.plugin = plugin; + } + + public void load() { + super.register(); + } + + public void unload() { + super.unregister(); + } + + @Override + public @NotNull String getIdentifier() { + return "fishingstats"; + } + + @Override + public @NotNull String getAuthor() { + return "XiaoMoMi"; + } + + @Override + public @NotNull String getVersion() { + return "2.2"; + } + + @Override + public boolean persist() { + return true; + } + + @Override + public @Nullable String onRequest(OfflinePlayer player, @NotNull String params) { + Optional onlineUser = plugin.getStorageManager().getOnlineUser(player.getUniqueId()); + return onlineUser.map( + data -> { + FishingStatistics statistics = data.statistics(); + String[] split = params.split("_", 2); + switch (split[0]) { + case "total" -> { + return String.valueOf(statistics.amountOfFishCaught()); + } + case "hascaught" -> { + if (split.length == 1) return "Invalid format"; + return String.valueOf(statistics.getAmount(split[1]) != 0); + } + case "amount" -> { + if (split.length == 1) return "Invalid format"; + return String.valueOf(statistics.getAmount(split[1])); + } + case "size-record" -> { + return String.format("%.2f", statistics.getMaxSize(split[1])); + } + case "category" -> { + if (split.length == 1) return "Invalid format"; + String[] categorySplit = split[1].split("_", 2); + if (categorySplit.length == 1) return "Invalid format"; + List category = plugin.getStatisticsManager().getCategoryMembers(categorySplit[1]); + if (categorySplit[0].equals("total")) { + int total = 0; + for (String loot : category) { + total += statistics.getAmount(loot); + } + return String.valueOf(total); + } else if (categorySplit[0].equals("progress")) { + int size = category.size(); + int unlocked = 0; + for (String loot : category) { + if (statistics.getAmount(loot) != 0) unlocked++; + } + double percent = ((double) unlocked * 100) / size; + String progress = String.format("%.1f", percent); + return progress.equals("100.0") ? "100" : progress; + } + } + } + return ""; + } + ).orElse("Data not loaded"); + } +} diff --git a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/season/AdvancedSeasonsProvider.java b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/season/AdvancedSeasonsProvider.java index dcae10cb..9749a750 100644 --- a/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/season/AdvancedSeasonsProvider.java +++ b/compatibility/src/main/java/net/momirealms/customfishing/bukkit/integration/season/AdvancedSeasonsProvider.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.integration.season; import net.advancedplugins.seasons.api.AdvancedSeasonsAPI; diff --git a/core/build.gradle.kts b/core/build.gradle.kts index c6b34518..fc3da64a 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -6,6 +6,7 @@ plugins { repositories { maven("https://repo.xenondevs.xyz/releases") // invui + maven("https://repo.extendedclip.com/content/repositories/placeholderapi/") // papi } dependencies { @@ -52,6 +53,8 @@ dependencies { compileOnly("org.incendo:cloud-paper:${rootProject.properties["cloud_paper_version"]}") // expression compileOnly("net.objecthunter:exp4j:${rootProject.properties["exp4j_version"]}") + // placeholder api + compileOnly("me.clip:placeholderapi:${rootProject.properties["placeholder_api_version"]}") } tasks { diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitBootstrap.java b/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitBootstrap.java index 2f04ece7..5e5441f4 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitBootstrap.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitBootstrap.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitCustomFishingPluginImpl.java b/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitCustomFishingPluginImpl.java index d35c0cc6..2a50b4b7 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitCustomFishingPluginImpl.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/BukkitCustomFishingPluginImpl.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/action/BukkitActionManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/action/BukkitActionManager.java index 9d8c879e..a66d5aa1 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/action/BukkitActionManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/action/BukkitActionManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.action; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandFeature.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandFeature.java index 59fb5148..62bd90b0 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandFeature.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandFeature.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandManager.java index d5931a85..4ae2f1b5 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/BukkitCommandManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command; import net.kyori.adventure.util.Index; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOfflineBagCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOfflineBagCommand.java index defd2903..b6488b62 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOfflineBagCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOfflineBagCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOnlineBagCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOnlineBagCommand.java index 30bba549..043f58a9 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOnlineBagCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EditOnlineBagCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EndCompetitionCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EndCompetitionCommand.java index a1ea10b5..7cd6b068 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EndCompetitionCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/EndCompetitionCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/FishingBagCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/FishingBagCommand.java index fe508e24..9c62e597 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/FishingBagCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/FishingBagCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GetItemCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GetItemCommand.java index 6492be52..a88f066c 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GetItemCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GetItemCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GiveItemCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GiveItemCommand.java index 106b7268..8e2dc5a3 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GiveItemCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/GiveItemCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenBagCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenBagCommand.java index 603e6056..2fa70d79 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenBagCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenBagCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenMarketCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenMarketCommand.java index 95270c58..63ab7405 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenMarketCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/OpenMarketCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/ReloadCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/ReloadCommand.java index 3aff0e9e..67605ebf 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/ReloadCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/ReloadCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/SellFishCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/SellFishCommand.java index 019d28ef..e113b6de 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/SellFishCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/SellFishCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StartCompetitionCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StartCompetitionCommand.java index 68208f0f..7d3419c8 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StartCompetitionCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StartCompetitionCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.kyori.adventure.text.Component; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StopCompetitionCommand.java b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StopCompetitionCommand.java index daa60228..02fc38b7 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StopCompetitionCommand.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/command/feature/StopCompetitionCommand.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.command.feature; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java index 74467370..a52e893b 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/config/BukkitConfigManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.config; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/event/BukkitEventManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/event/BukkitEventManager.java index 1ac5b3b4..1a775969 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/event/BukkitEventManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/event/BukkitEventManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.event; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/fishing/BukkitFishingManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/fishing/BukkitFishingManager.java index f874e717..61fc0a79 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/fishing/BukkitFishingManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/fishing/BukkitFishingManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.fishing; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/hook/BukkitHookManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/hook/BukkitHookManager.java index 036adf2d..ccf3998b 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/hook/BukkitHookManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/hook/BukkitHookManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.hook; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/integration/BukkitIntegrationManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/integration/BukkitIntegrationManager.java index 1c22a3c4..71b9aae2 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/integration/BukkitIntegrationManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/integration/BukkitIntegrationManager.java @@ -29,6 +29,9 @@ import net.momirealms.customfishing.bukkit.integration.entity.ItemsAdderEntityPr import net.momirealms.customfishing.bukkit.integration.entity.MythicEntityProvider; import net.momirealms.customfishing.bukkit.integration.item.*; import net.momirealms.customfishing.bukkit.integration.level.*; +import net.momirealms.customfishing.bukkit.integration.papi.CompetitionPapi; +import net.momirealms.customfishing.bukkit.integration.papi.CustomFishingPapi; +import net.momirealms.customfishing.bukkit.integration.papi.StatisticsPapi; import net.momirealms.customfishing.bukkit.integration.quest.BattlePassQuest; import net.momirealms.customfishing.bukkit.integration.quest.BetonQuestQuest; import net.momirealms.customfishing.bukkit.integration.quest.ClueScrollsQuest; @@ -139,6 +142,11 @@ public class BukkitIntegrationManager implements IntegrationManager { if (isHooked("BetonQuest")) { BetonQuestQuest.register(); } + if (isHooked("PlaceholderAPI")) { + new CustomFishingPapi(plugin).load(); + new CompetitionPapi(plugin).load(); + new StatisticsPapi(plugin).load(); + } } private boolean isHooked(String hooked) { diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemFactory.java b/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemFactory.java index c5d2347a..4a88371b 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemFactory.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemFactory.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.item; import com.saicone.rtag.RtagItem; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemManager.java index 7895ef44..750a723f 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/item/BukkitItemManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.item; import net.momirealms.customfishing.api.BukkitCustomFishingPlugin; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/ComponentItemFactory.java b/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/ComponentItemFactory.java index 5373d92a..d58c15e3 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/ComponentItemFactory.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/ComponentItemFactory.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.item.impl; import com.saicone.rtag.RtagItem; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/UniversalItemFactory.java b/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/UniversalItemFactory.java index 7b1dab21..794091e9 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/UniversalItemFactory.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/item/impl/UniversalItemFactory.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.item.impl; import com.saicone.rtag.RtagItem; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/loot/BukkitLootManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/loot/BukkitLootManager.java index 3225873c..f1a68729 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/loot/BukkitLootManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/loot/BukkitLootManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.loot; import dev.dejvokep.boostedyaml.YamlDocument; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/requirement/BukkitRequirementManager.java b/core/src/main/java/net/momirealms/customfishing/bukkit/requirement/BukkitRequirementManager.java index 44e82aea..9205f49c 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/requirement/BukkitRequirementManager.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/requirement/BukkitRequirementManager.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.requirement; import dev.dejvokep.boostedyaml.block.implementation.Section; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/util/ItemStackUtils.java b/core/src/main/java/net/momirealms/customfishing/bukkit/util/ItemStackUtils.java index 6a5aa771..b8391df3 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/util/ItemStackUtils.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/util/ItemStackUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.util; import com.saicone.rtag.RtagMirror; diff --git a/core/src/main/java/net/momirealms/customfishing/bukkit/util/PlayerUtils.java b/core/src/main/java/net/momirealms/customfishing/bukkit/util/PlayerUtils.java index 2b74e8eb..8c55a185 100644 --- a/core/src/main/java/net/momirealms/customfishing/bukkit/util/PlayerUtils.java +++ b/core/src/main/java/net/momirealms/customfishing/bukkit/util/PlayerUtils.java @@ -1,3 +1,20 @@ +/* + * Copyright (C) <2022> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package net.momirealms.customfishing.bukkit.util; import net.momirealms.customfishing.common.util.RandomUtils;