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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
import me.pikamug.quests.util.stack.BlockItemStack;
|
||||
|
@ -206,7 +206,8 @@ public class BukkitQuester implements Quester {
|
||||
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;
|
||||
|
||||
@ -1439,7 +1440,8 @@ public class BukkitQuester implements Quester {
|
||||
message += " <mob>";
|
||||
}
|
||||
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,
|
||||
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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user