diff --git a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStack.java b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStack.java index 19f432579..6e565145f 100644 --- a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStack.java +++ b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStack.java @@ -1,3 +1,13 @@ +/* + * Copyright (c) PikaMug and contributors + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package me.pikamug.quests.util.stack; import org.bukkit.Material; diff --git a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStackFactory.java b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStackFactory.java index 8d68ddbc6..faf31e2e2 100644 --- a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStackFactory.java +++ b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStackFactory.java @@ -1,3 +1,13 @@ +/* + * Copyright (c) PikaMug and contributors + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package me.pikamug.quests.util.stack; import org.bukkit.Material; diff --git a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStacks.java b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStacks.java index 3e20e8c7c..edc51fcfc 100644 --- a/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStacks.java +++ b/api/src/main/java/me/pikamug/quests/util/stack/BlockItemStacks.java @@ -1,3 +1,13 @@ +/* + * Copyright (c) PikaMug and contributors + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package me.pikamug.quests.util.stack; import me.pikamug.quests.util.stack.impl.LegacyBlockItemStack; diff --git a/api/src/main/java/me/pikamug/quests/util/stack/impl/LegacyBlockItemStack.java b/api/src/main/java/me/pikamug/quests/util/stack/impl/LegacyBlockItemStack.java index 2b48fb7fd..eb341e6f9 100644 --- a/api/src/main/java/me/pikamug/quests/util/stack/impl/LegacyBlockItemStack.java +++ b/api/src/main/java/me/pikamug/quests/util/stack/impl/LegacyBlockItemStack.java @@ -1,3 +1,13 @@ +/* + * Copyright (c) PikaMug and contributors + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package me.pikamug.quests.util.stack.impl; import me.pikamug.quests.util.stack.BlockItemStack; diff --git a/api/src/main/java/me/pikamug/quests/util/stack/impl/ModernBlockItemStack.java b/api/src/main/java/me/pikamug/quests/util/stack/impl/ModernBlockItemStack.java index ee691777a..128167622 100644 --- a/api/src/main/java/me/pikamug/quests/util/stack/impl/ModernBlockItemStack.java +++ b/api/src/main/java/me/pikamug/quests/util/stack/impl/ModernBlockItemStack.java @@ -1,3 +1,13 @@ +/* + * Copyright (c) PikaMug and contributors + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT + * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + package me.pikamug.quests.util.stack.impl; import me.pikamug.quests.util.stack.BlockItemStack; diff --git a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java index f89c3d007..7b72c462a 100644 --- a/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java +++ b/core/src/main/java/me/pikamug/quests/player/BukkitQuester.java @@ -206,7 +206,8 @@ public class BukkitQuester implements Quester { updateJournal(); } }; - protected ConcurrentHashMap questProgress = new ConcurrentHashMap() { + protected ConcurrentHashMap questProgress + = new ConcurrentHashMap() { private static final long serialVersionUID = -4607112433003926066L; @@ -1439,7 +1440,8 @@ public class BukkitQuester implements Quester { message += " "; } if (formatNames) { - message = message.replace("", BukkitMiscUtil.snakeCaseToUpperCamelCase(stage.getMobsToTame().get(tameIndex).name())); + message = message.replace("", BukkitMiscUtil.snakeCaseToUpperCamelCase(stage.getMobsToTame() + .get(tameIndex).name())); } objectives.add(new BukkitObjective(ObjectiveType.TAME_MOB, message, new BukkitCountableMob(e, progress), new BukkitCountableMob(e, goal))); @@ -3840,8 +3842,8 @@ public class BukkitQuester implements Quester { getQuestProgressOrDefault(quest).setDelayTimeLeft(getQuestProgressOrDefault(quest).getDelayTimeLeft() - (System.currentTimeMillis() - getQuestProgressOrDefault(quest).getDelayStartTime())); } else { - getQuestProgressOrDefault(quest).setDelayTimeLeft(getCurrentStage(quest).getDelay() - (System.currentTimeMillis() - - getQuestProgressOrDefault(quest).getDelayStartTime())); + getQuestProgressOrDefault(quest).setDelayTimeLeft(getCurrentStage(quest).getDelay() + - (System.currentTimeMillis() - getQuestProgressOrDefault(quest).getDelayStartTime())); } }