mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-21 18:15:32 +01:00
Update headers
This commit is contained in:
parent
fcc1b80771
commit
5d0d7b9f00
@ -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;
|
package me.pikamug.quests.util.stack;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -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;
|
package me.pikamug.quests.util.stack;
|
||||||
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
@ -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;
|
package me.pikamug.quests.util.stack;
|
||||||
|
|
||||||
import me.pikamug.quests.util.stack.impl.LegacyBlockItemStack;
|
import me.pikamug.quests.util.stack.impl.LegacyBlockItemStack;
|
||||||
|
@ -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;
|
package me.pikamug.quests.util.stack.impl;
|
||||||
|
|
||||||
import me.pikamug.quests.util.stack.BlockItemStack;
|
import me.pikamug.quests.util.stack.BlockItemStack;
|
||||||
|
@ -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;
|
package me.pikamug.quests.util.stack.impl;
|
||||||
|
|
||||||
import me.pikamug.quests.util.stack.BlockItemStack;
|
import me.pikamug.quests.util.stack.BlockItemStack;
|
||||||
|
@ -206,7 +206,8 @@ public class BukkitQuester implements Quester {
|
|||||||
updateJournal();
|
updateJournal();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
protected ConcurrentHashMap<Quest, BukkitQuestProgress> questProgress = new ConcurrentHashMap<Quest, BukkitQuestProgress>() {
|
protected ConcurrentHashMap<Quest, BukkitQuestProgress> questProgress
|
||||||
|
= new ConcurrentHashMap<Quest, BukkitQuestProgress>() {
|
||||||
|
|
||||||
private static final long serialVersionUID = -4607112433003926066L;
|
private static final long serialVersionUID = -4607112433003926066L;
|
||||||
|
|
||||||
@ -1439,7 +1440,8 @@ public class BukkitQuester implements Quester {
|
|||||||
message += " <mob>";
|
message += " <mob>";
|
||||||
}
|
}
|
||||||
if (formatNames) {
|
if (formatNames) {
|
||||||
message = message.replace("<mob>", BukkitMiscUtil.snakeCaseToUpperCamelCase(stage.getMobsToTame().get(tameIndex).name()));
|
message = message.replace("<mob>", BukkitMiscUtil.snakeCaseToUpperCamelCase(stage.getMobsToTame()
|
||||||
|
.get(tameIndex).name()));
|
||||||
}
|
}
|
||||||
objectives.add(new BukkitObjective(ObjectiveType.TAME_MOB, message,
|
objectives.add(new BukkitObjective(ObjectiveType.TAME_MOB, message,
|
||||||
new BukkitCountableMob(e, progress), new BukkitCountableMob(e, goal)));
|
new BukkitCountableMob(e, progress), new BukkitCountableMob(e, goal)));
|
||||||
@ -3840,8 +3842,8 @@ public class BukkitQuester implements Quester {
|
|||||||
getQuestProgressOrDefault(quest).setDelayTimeLeft(getQuestProgressOrDefault(quest).getDelayTimeLeft()
|
getQuestProgressOrDefault(quest).setDelayTimeLeft(getQuestProgressOrDefault(quest).getDelayTimeLeft()
|
||||||
- (System.currentTimeMillis() - getQuestProgressOrDefault(quest).getDelayStartTime()));
|
- (System.currentTimeMillis() - getQuestProgressOrDefault(quest).getDelayStartTime()));
|
||||||
} else {
|
} else {
|
||||||
getQuestProgressOrDefault(quest).setDelayTimeLeft(getCurrentStage(quest).getDelay() - (System.currentTimeMillis()
|
getQuestProgressOrDefault(quest).setDelayTimeLeft(getCurrentStage(quest).getDelay()
|
||||||
- getQuestProgressOrDefault(quest).getDelayStartTime()));
|
- (System.currentTimeMillis() - getQuestProgressOrDefault(quest).getDelayStartTime()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user