# DailyTask **Repository Path**: hou_bingkun/DailyTask ## Basic Information - **Project Name**: DailyTask - **Description**: DailyTask插件 开源项目 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-15 - **Last Updated**: 2025-02-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DailyTask # 介绍 1. 玩家每日任务 1. 可设置多少时间内完成 1. 可设置每日接取多少个任务(权限控制) 1. 可设置任务权限(拥有权限才会刷新VIP任务) 1. 接取任务可消耗货币、物品 1. 可完整自定义GUI界面 ### 任务模板 ``` #任务ID 不可重复 jd_1: #显示物品设置 Item: #显示名 按格式填写 颜色字符不要更换 Name: "&a&l[简单]: &b击杀生物1000只" #介绍 按格式 替换任务需求 Lore: - "&e任务需求:" - " &b僵尸&d: %Task_Task1_conditions_id1_count%/%Task_Task1_conditions_id1_max%" - " &b需要 &d%Task_Task1_Time% &b前完成" - "&a" - "&e奖励:" - "&6 挑战币 &d1" Type: WUWANGMOD_CAILIAO153 #完成后文本 Msg: "&c恭喜你完成了挑战任务" Reward: - 'fgive %player% 挑战币 1' #单位秒 3200=1小时 TimeLimit: 3200 #任务条件 Conditions: id1: #任务类型 ConditionsType: KillEntity #实体类型 为空则全部计数 Player则为玩家 Type: - PIG #任务需求数量 Count: 20 #每次完成1点 提示 Msg: "&a击杀生物: {Count}/{Max}" #限制任务世界 可删除 WorldLimit: Blacklist: false World: - World ``` ### 任务类型 #### BlockBreak 破坏方块 (需考虑玩家 放置后挖掉) ``` id1: ConditionsType: BlockBreak #方块ID、 Type: - Box1 #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "寻找宝箱: {Count}/{Max}" ``` #### Box 打开搜刮箱 ``` id1: ConditionsType: Box #搜刮箱ID Type: - Box1 #任务需求数量 Count: 2 Msg: "寻找宝箱: {Count}/{Max}" ``` #### SubmitItem 提交物品 ``` id1: ConditionsType: SubmitItem #搜刮箱ID Price: #类型 Money 游戏币 Points 点券 Item 物品 PriceType: Money Price: 5000 # Price: # #类型 Money 游戏币 Points 点券 Item 物品 # PriceType: Item # Item: STONE # Count: 64 #任务需求数量 Count: 2 Msg: "寻找宝箱: {Count}/{Max}" ``` #### Bred 繁殖 ``` id1: ConditionsType: Bred #实体ID Type: - PIG #任务需求数量 Count: 2 Msg: "繁殖猪: {Count}/{Max}" ``` #### CraftItem 合成物品 ``` id1: ConditionsType: CraftItem #物品ID Type: - SAND #任务需求数量 Count: 2 Msg: "合成物品: {Count}/{Max}" ``` #### EnchantItem 附魔 ``` id1: ConditionsType: EnchantItem #任务需求数量 Count: 2 #附魔类型 https://bukkit.windit.net/javadoc/org/bukkit/enchantments/Enchantment.html Type: - DIG_SPEED #附魔等级 Level: 30 Msg: "附魔: {Count}/{Max}" ``` #### Fish 钓鱼 ``` id1: ConditionsType: Fish #鱼物品ID 为空则全部生效 Type: - FISH #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "钓鱼: {Count}/{Max}" ``` #### FurnaceExtract 冶炼(熔炉) ``` id1: ConditionsType: FurnaceExtract #物品ID Type: - SAND #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### GlidingMove 滑翔 ``` id1: ConditionsType: GlidingMove #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### InteractBlock 右击方块 ``` id1: ConditionsType: InteractBlock #方块ID Type: - SAND #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "互交沙子: {Count}/{Max}" ``` #### InteractEntity 右击实体 ``` id1: ConditionsType: InteractEntity #实体ID Type: - SAND #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "寻找NPC : {Count}/{Max}" ``` #### KillEntity 击杀生物 ``` id1: ConditionsType: KillEntity #生物ID Type: - PIG #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "击杀生物: {Count}/{Max}" ``` #### KillMArena 怪物竞技场击杀 ``` id1: ConditionsType: KillMArena #实体ID MonsterName: 道士 #竞技场ID Arena: Arena1 #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "获得竞技场积分 : {Count}/{Max}" ``` #### KillPlayer 击杀玩家 ``` id1: ConditionsType: KillPlayer #限制玩家手中物品 可删除不填 Item: - SONTE #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### Move 移动 ``` id1: ConditionsType: Move #任务需求数量 Count: 2 Msg: "移动: {Count}/{Max}" ``` #### NewQh 使用强化石强化 ``` id1: ConditionsType: NewQh #强化结果 可为空 SUCCESS(成功),BROKEN(破碎),FAIL_PSTONE(失败 保护石保护),FAIL,BROKEN_PSTONE(破碎 保护石保护); Type: SUCCESS #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### ShearEntity 剪羊毛(雪傀儡 等) ``` id1: ConditionsType: ShearEntity #生物ID Type: - SAND #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### SneakingMove 潜行 ``` id1: ConditionsType: SneakingMove #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### SprintingMove 奔跑 ``` id1: ConditionsType: SprintingMove #任务需求数量 Count: 2 Msg: "挖掘沙子: {Count}/{Max}" ``` #### VehicleMove 载具行走 ``` id1: ConditionsType: VehicleMove #任务需求数量 Count: 2 #载具生物ID 马 矿车 猪 等 Type: xxx Msg: "挖掘沙子: {Count}/{Max}" ``` ## 总配置文件 ``` #每日任务数量 #权限DailyTask.Default DailyTask.VIP(自定义) TaskCount: Default: 3 VIP: 10 #任务选择界面 一次只能选择一个任务 在一个任务未结束前 打开的界面都是任务信息的界面 ChoiceGui: Title: "挑战任务" Size: 54 Gui: #项目ID jd_Task1: #界面显示位置 Slot: 10 #随机出现的任务 TaskRandom: - jd1 - jd2 - jd3 - jd4 - jd5 - jd6 - jd7 - jd8 - jd9 - jd10 RefreshPrice: PriceType: Money Price: 5000 Lore: - "&d" - "&b接取条件: &b5000铜币" - "&b今日已接取: &d%Task_TodayGetCount%/%Task_MaxGetCount% &b个任务" - "&b" - "&7shift+右键刷新任务消耗&f[挑战令牌*1]" jd_Task2: #界面显示位置 Slot: 19 #随机出现的任务 TaskRandom: - jd1 - jd2 - jd3 - jd4 - jd5 - jd6 - jd7 - jd8 - jd9 - jd10 RefreshPrice: PriceType: Money Price: 5000 Lore: - "&d" - "&b接取条件: &b5000铜币" - "&b今日已接取: &d%Task_TodayGetCount%/%Task_MaxGetCount% &b个任务" - "&b" - "&7shift+右键刷新任务消耗&f[挑战令牌*1]" jd_Task3: #界面显示位置 Slot: 28 #随机出现的任务 TaskRandom: - jd1 - jd2 - jd3 - jd4 - jd5 - jd6 - jd7 - jd8 - jd9 - jd10 RefreshPrice: PriceType: Money Price: 3000 Permission: vip1 Lore: - "&d" - "&b接取条件: &b3000铜币" - "&b今日已接取: &d%Task_TodayGetCount%/%Task_MaxGetCount% &b个任务" - "&b" - "&7shift+右键刷新任务消耗&f[挑战令牌*1]" #gb以下是装饰格子 gb1: Other: true Slot: 0 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb2: Other: true Slot: 1 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb3: Other: true Slot: 2 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb4: Other: true Slot: 9 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb5: Other: true Slot: 11 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb6: Other: true Slot: 18 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb7: Other: true Slot: 20 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb8: Other: true Slot: 27 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb9: Other: true Slot: 29 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb10: Other: true Slot: 36 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb11: Other: true Slot: 37 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb12: Other: true Slot: 38 Item: Name: "&a&a" Lore: - "&a" Type: LIME_STAINED_GLASS_PANE gb13: Other: true Slot: 3 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb14: Other: true Slot: 4 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb15: Other: true Slot: 5 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb16: Other: true Slot: 12 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb17: Other: true Slot: 14 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb18: Other: true Slot: 21 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb19: Other: true Slot: 23 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb20: Other: true Slot: 30 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb21: Other: true Slot: 32 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb22: Other: true Slot: 39 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb23: Other: true Slot: 40 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb24: Other: true Slot: 41 Item: Name: "&a&a" Lore: - "&a" Type: LIGHT_BLUE_STAINED_GLASS_PANE gb25: Other: true Slot: 6 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb26: Other: true Slot: 7 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb27: Other: true Slot: 8 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb28: Other: true Slot: 15 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb29: Other: true Slot: 17 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb30: Other: true Slot: 24 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb31: Other: true Slot: 26 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb32: Other: true Slot: 33 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb33: Other: true Slot: 35 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb34: Other: true Slot: 42 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb35: Other: true Slot: 43 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb36: Other: true Slot: 44 Item: Name: "&a&a" Lore: - "&a" Type: ORANGE_STAINED_GLASS_PANE gb37: Other: true Slot: 45 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb38: Other: true Slot: 46 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb39: Other: true Slot: 47 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb40: Other: true Slot: 48 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb41: Other: true Slot: 50 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb42: Other: true Slot: 51 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb43: Other: true Slot: 52 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb44: Other: true Slot: 53 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE #任务详细信息 TaskGui: Title: "&a&l挑战任务" Size: 9 #信息位置 Slot: 4 Gui: gb0: Other: true Slot: 0 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb1: Other: true Slot: 1 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb2: Other: true Slot: 2 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb3: Other: true Slot: 3 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb5: Other: true Slot: 5 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb6: Other: true Slot: 6 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb7: Other: true Slot: 7 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE gb8: Other: true Slot: 8 Item: Name: "&a&a" Lore: - "&a" Type: RED_STAINED_GLASS_PANE SQL: MySQLEnable: false username: root password: root hostname: localhost:3306 database: mc table: DailyTask additional: useSSL=true&useUnicode=true&&characterEncoding=UTF-8&connectTimeout=43200000 Lang: Task_Get: "任务领取成功" Task_FailGet_Price: "任务领取失败 你没有足够的金额或物品接取任务" Task_FailGet_1: "任务领取失败 你今日已经不能在领取任务了" DeBug: true ```