mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-19 15:09:24 +00:00
debug message -> warn
This commit is contained in:
@@ -7,7 +7,7 @@ plugins {
|
||||
|
||||
allprojects {
|
||||
|
||||
version = "2.0.11"
|
||||
version = "2.0.11.1"
|
||||
|
||||
apply<JavaPlugin>()
|
||||
apply(plugin = "java")
|
||||
|
||||
@@ -329,6 +329,7 @@ public class FishingManagerImpl implements Listener, FishingManager {
|
||||
new BaitAnimationTask(plugin, player, fishHook, cloned);
|
||||
baitItem.setAmount(baitItem.getAmount() - 1);
|
||||
}
|
||||
|
||||
// Arrange hook check task
|
||||
this.hookCheckMap.put(player.getUniqueId(), new HookCheckTimerTask(this, fishHook, fishingPreparation, initialEffect));
|
||||
// trigger actions
|
||||
@@ -773,7 +774,7 @@ public class FishingManagerImpl implements Listener, FishingManager {
|
||||
String random = WeightUtils.getRandom(gameWithWeight);
|
||||
Pair<BasicGameConfig, GameInstance> gamePair = plugin.getGameManager().getGameInstance(random);
|
||||
if (random == null) {
|
||||
plugin.debug("No game is available for player:" + player.getName() + " location:" + condition.getLocation());
|
||||
LogUtils.warn("No game is available for player:" + player.getName() + " location:" + condition.getLocation());
|
||||
return false;
|
||||
}
|
||||
if (gamePair == null) {
|
||||
|
||||
@@ -180,8 +180,11 @@ public class HookCheckTimerTask implements Runnable {
|
||||
*/
|
||||
private void setTempState() {
|
||||
Loot nextLoot = CustomFishingPlugin.get().getLootManager().getNextLoot(initialEffect, fishingPreparation);
|
||||
if (nextLoot == null)
|
||||
if (nextLoot == null) {
|
||||
CustomFishingPlugin.get().debug("No loot available, using vanilla ");
|
||||
return;
|
||||
}
|
||||
|
||||
this.loot = nextLoot;
|
||||
fishingPreparation.insertArg("{nick}", nextLoot.getNick());
|
||||
fishingPreparation.insertArg("{loot}", nextLoot.getID());
|
||||
|
||||
@@ -128,7 +128,7 @@ mechanics:
|
||||
type: fake-item
|
||||
value:
|
||||
duration: 35
|
||||
position: hook
|
||||
position: other
|
||||
item: util:lava_effect
|
||||
priority_2:
|
||||
conditions:
|
||||
@@ -138,7 +138,7 @@ mechanics:
|
||||
type: fake-item
|
||||
value:
|
||||
duration: 35
|
||||
position: hook
|
||||
position: other
|
||||
item: util:water_effect
|
||||
|
||||
# Global properties which would help you reduce duplicated lines
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# global group
|
||||
global-group:
|
||||
conditions: {}
|
||||
list: []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# global 条件组
|
||||
# global group
|
||||
global-group:
|
||||
list: []
|
||||
conditions: {}
|
||||
|
||||
@@ -2,6 +2,6 @@ CREATE TABLE IF NOT EXISTS `{prefix}_data`
|
||||
(
|
||||
`uuid` char(36) NOT NULL UNIQUE,
|
||||
`lock` INT NOT NULL,
|
||||
`data` longblob NOT NULL,
|
||||
`data` longblob NOT NULL,
|
||||
PRIMARY KEY (`uuid`)
|
||||
);
|
||||
Reference in New Issue
Block a user