• 游客, 欢迎您来到九域资源社区,如果您是新人,请前往 论坛公告 板块查看新人引导教程 或者 点我打开
    如果您发现没有下载许可, 请先验证邮箱再进行下载;金锭可通过每日登陆或资源出售获取,目前没有其他渠道可获取。
OnlineReward — 可自定义GUI的在线奖励插件[1.8-1.20]

Bukkit OnlineReward — 可自定义GUI的在线奖励插件[1.8-1.20] 1.7.3-BETA

没有下载权限
◆ 支持核心
CatServer,Magma,Spigot,PaperSpigot
◆ 插件前置
AyCore, NBTAPI
一、特性
  • 每日在线奖励
  • GUI完全自定义
  • 总在线时长奖励
  • 自动发放奖励
  • 支持 MySQL
NBTAPI 下载地址:https://modrinth.com/plugin/nbtapi/versions
默认配置文件使用的是 1.12.2 的物品名,其他版本请自行修改。

源码:https://github.com/blank038/OnlineReward

二、命令
/or - 查看自己的奖励(总在线)
/or open - 打开每日在线奖励界面 (需权限: onlinereward.open)
/or reload - 重载插件配置 (需权限: onlinereward.admin)

CustomModelData 配置项:custom-data

推荐 time-out 设置为 20

PlaceholderAPI变量:
-> %onlinereward_day% -今日在线时长
-> %onlinereward_all% - 总在线时长
-> %onlinereward_format_day% - 自定义格式今日在线时长
-> %onlinereward_format_all% - 自定义格式总在线时长
-> %onlinereward_is_gotten_<奖励编号>% - 返回在线奖励领取状态

三、图片
156

157


四、配置文件(仅展示,非最新版配置)
config.yml

YAML:
test:
  time: 7200
  name: "&c国庆厚礼"
  commands:
    - "pe %player% 6 1"
gui.yml
YAML:
Inventory:
  size: 54
  title: "&8&n每日在线奖励"
Items:
  head:
    type: SKULL_ITEM
    amount: 1
    data: 3
    name: "&a个人信息"
    lore:
      - " "
      - " &e今日在线: &f%online%分钟 "
      - " "
    slot: 49
  fg:
    type: STAINED_GLASS_PANE
    amount: 1
    data: 15
    name: "&f欢迎来到去吧皮卡丘"
    lore: []
    slots:
      - 0
      - 1
      - 2
      - 3
      - 4
      - 5
      - 6
      - 7
      - 8
      - 9
      - 17
      - 18
      - 26
      - 27
      - 35
      - 36
      - 44
      - 45
      - 46
      - 47
      - 48
      - 50
      - 51
      - 52
      - 53
  30f:
    type: DRAGONS_BREATH
    data: 0
    amount: 3
    name: "&a30分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x1000 "
      - " &f ◈ 钻石 x10 "
      - " &f ◈ &e飞行能量 x100 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 20
    online: 30
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 1000"
      - "nye give %player% 钻石 10"
      - "flightcharge add %player% 100"
  60f:
    type: DRAGONS_BREATH
    data: 0
    amount: 6
    name: "&a60分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x2000 "
      - " &f ◈ 钻石 x20 "
      - " &f ◈ &e飞行能量 x200 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 22
    online: 60
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 2000"
      - "nye give %player% 钻石 20"
      - "flightcharge add %player% 200"
  90f:
    type: DRAGONS_BREATH
    data: 0
    amount: 9
    name: "&a90分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x3000 "
      - " &f ◈ 钻石 x30 "
      - " &f ◈ &e飞行能量 x300 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 24
    online: 90
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 3000"
      - "nye give %player% 钻石 30"
      - "flightcharge add %player% 300"
  120f:
    type: DRAGONS_BREATH
    data: 0
    amount: 12
    name: "&a120分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x4000 "
      - " &f ◈ 钻石 x40 "
      - " &f ◈ &e飞行能量 x500 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 29
    online: 120
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 4000"
      - "nye give %player% 钻石 40"
      - "flightcharge add %player% 500"
  150f:
    type: DRAGONS_BREATH
    data: 0
    amount: 150
    name: "&a150分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x5000 "
      - " &f ◈ 钻石 x50 "
      - " &f ◈ &b体力药丸&f(小) x1 "
      - " &f ◈ &e飞行能量 x700 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 31
    online: 150
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 5000"
      - "nye give %player% 钻石 50"
      - "saveditems get tlx"
      - "flightcharge add %player% 700"
  180f:
    type: DRAGONS_BREATH
    data: 0
    amount: 18
    name: "&a180分钟"
    lore:
      - " "
      - " &b奖励列表:"
      - " &f ◈ 精灵球 x32 "
      - " &f ◈ 金币 x6000 "
      - " &f ◈ 钻石 x60 "
      - " &f ◈ &6体力药丸&f(大) x1 "
      - " &f ◈ &d补签卡 x1 "
      - " &f ◈ &e飞行能量 x1000 "
      - " "
      - " &a点击领取该奖励 "
      - " "
    slot: 33
    online: 180
    commands:
      - "give %player% PIXELMON_POKE_BALL 32"
      - "money give %player% 6000"
      - "nye give %player% 钻石 60"
      - "givetoken %player% 1"
      - "saveditems get tld"
      - "flightcharge add %player% 1000"

!!! 欢迎各位加入 咸鱼交流群: 895403918 !!!
作者
张杰宁
下载
1,146
查看
22,383
首次发布
最后更新
评分
4.64 星 39 星

来自张杰宁的更多资源

分享资源

最新更新

  1. 更新至 1.7.3-BETA

    (修复) MySQL 模式下每日时长数据无法正常存储 (新增) PlaceholderAPI 变量增加持久化
  2. 更新至 1.7.2-SNAPSHOT

    (更新):修改每日重置逻辑与日期存储格式
  3. 更新至 1.7.1-SNAPSHOT

    (修复) 插件无法正常加载

最新评论

为什么NBTAPI 2.8版本插件领取报错.. 换高版本NBTAPI就没事
张杰宁
张杰宁
插件迭代那么多个版本肯定很多接口代码有改动.. 自然就不兼容
可以更新一个根据权限组设置不同奖励
爹 义父 亲爹 求你了快更新1.21 跪求
张杰宁
张杰宁
已经测试过了吗?理论上 NBTAPI 更新了就可以正常用。
物品类型读取异常
测试过很多物品id都无法读取 哪怕输入的是stone
张杰宁
张杰宁
经过测试没有发现此问题,提示物品读取异常请看准是哪个物品出的问题,再去修改对应的物品。
mohist 1.20.1 更改材质无效 并且报错
物品类型读取异常: SKULL_ITEM
[16:52:14 INFO]: [OnlineReward] 物品类型读取异常: STAINED_GLASS_PANE
[16:52:14 INFO]: [OnlineReward] 物品类型读取异常: SKY_STONE_CHEST
张杰宁
张杰宁
请使用正确的物品类型名,检查 gui.yml 配置文件。
这个是什么问题?org.bukkit.command.CommandException: Unhandled exception executing command 'or' in plugin OnlineReward v1.7.2-SNAPSHOT
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:651) ~[Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1392) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1227) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils$1.run(SourceFile:13) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:748) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:406) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:679) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:577) [Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: de.tr7zw.nbtapi.NbtApiException: [Selfchecked][2.13.2]Error while calling the method 'setTag', loaded: true, Enum: ITEMSTACK_SET_TAG, Passed Class: null Args: [{OnlineReward:150}]
at de.tr7zw.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:399) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setItemStackCompound(NBTReflectionUtil.java:202) ~[?:?]
at de.tr7zw.nbtapi.NBTItem.setCompound(NBTItem.java:175) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setData(NBTReflectionUtil.java:674) ~[?:?]
at de.tr7zw.nbtapi.NBTCompound.setInteger(NBTCompound.java:209) ~[?:?]
at com.blank038.onlinereward.gui.RewardGui.open(RewardGui.java:79) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.open(OnlineRewardCommand.java:84) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.onCommand(OnlineRewardCommand.java:27) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
... 15 more
Caused by: java.lang.NullPointerException
at jdk.internal.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at de.tr7zw.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:396) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setItemStackCompound(NBTReflectionUtil.java:202) ~[?:?]
at de.tr7zw.nbtapi.NBTItem.setCompound(NBTItem.java:175) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setData(NBTReflectionUtil.java:674) ~[?:?]
at de.tr7zw.nbtapi.NBTCompound.setInteger(NBTCompound.java:209) ~[?:?]
at com.blank038.onlinereward.gui.RewardGui.open(RewardGui.java:79) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.open(OnlineRewardCommand.java:84) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.onCommand(OnlineRewardCommand.java:27) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[Spigot-1.12.2.jar:git-Spigot-7754231-94b0980]
... 15 more
arclight-forge-1.20.1-1.0.5服务端
给了玩家open打开权限后玩家还是没有权限领取奖励
张杰宁
张杰宁
打开权限是打开权限,领取权限是领取权限,领取权限配置在界面配置文件(gui.yml)中,具体看注释。
有大神指导一下这个怎么办嘛
org.bukkit.command.CommandException: Unhandled exception executing command 'plugman' in plugin PlugMan v2.1.5
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[PluginCommand.class:?]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:156) ~[SimpleCommandMap.class:?]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:752) ~[CraftServer.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:1590) ~[pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:1429) ~[pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:46) ~[la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(CPacketChatMessage.java:9) ~[la.class:?]
at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:16) ~[hv.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_202]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_202]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:840) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:461) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:778) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:624) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_202]
Caused by: org.bukkit.plugin.UnknownDependencyException: AyCore
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:120) ~[JavaPluginLoader.class:?]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:323) ~[SimplePluginManager.class:?]
at com.rylinaux.plugman.util.PluginUtil.load(PluginUtil.java:356) ~[?:?]
at com.rylinaux.plugman.command.LoadCommand.execute(LoadCommand.java:114) ~[?:?]
at com.rylinaux.plugman.PlugManCommandHandler.onCommand(PlugManCommandHandler.java:95) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:43) ~[PluginCommand.class:?]
... 15 more
张杰宁
张杰宁
前置 AyCore 没装
输入指令 游戏内An internal error occurred uhile attempting to per form this comman


控制台这个
[14:58:36 INFO]: 6493654 issued server command: /or open
[14:58:36 ERROR]: null
org.bukkit.command.CommandException: Unhandled exception executing command 'or' in plugin OnlineReward v1.7.3-BETA
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[1.12.jar:git-Paper-1604]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:151) ~[1.12.jar:git-Paper-1604]
at org.bukkit.craftbukkit.v1_12_R1.CraftServer.dispatchCommand(CraftServer.java:685) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.PlayerConnection.handleCommand(PlayerConnection.java:1478) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.PlayerConnection.a(PlayerConnection.java:1283) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:14) ~[1.12.jar:git-Paper-1604]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_361]
at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_361]
at net.minecraft.server.v1_12_R1.SystemUtils.a(SourceFile:46) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.MinecraftServer.D(MinecraftServer.java:850) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.DedicatedServer.D(DedicatedServer.java:423) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.MinecraftServer.C(MinecraftServer.java:774) ~[1.12.jar:git-Paper-1604]
at net.minecraft.server.v1_12_R1.MinecraftServer.run(MinecraftServer.java:666) ~[1.12.jar:git-Paper-1604]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_361]
Caused by: de.tr7zw.nbtapi.NbtApiException: [Selfchecked][2.13.1]Error while calling the method 'setTag', loaded: true, Enum: ITEMSTACK_SET_TAG, Passed Class: null Args: [{OnlineReward:150}]
at de.tr7zw.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:399) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setItemStackCompound(NBTReflectionUtil.java:202) ~[?:?]
at de.tr7zw.nbtapi.NBTItem.setCompound(NBTItem.java:175) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setData(NBTReflectionUtil.java:674) ~[?:?]
at de.tr7zw.nbtapi.NBTCompound.setInteger(NBTCompound.java:209) ~[?:?]
at com.blank038.onlinereward.gui.RewardGui.open(RewardGui.java:79) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.open(OnlineRewardCommand.java:84) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.onCommand(OnlineRewardCommand.java:27) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[1.12.jar:git-Paper-1604]
... 15 more
Caused by: java.lang.NullPointerException
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) ~[?:?]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_361]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_361]
at de.tr7zw.nbtapi.utils.nmsmappings.ReflectionMethod.run(ReflectionMethod.java:396) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setItemStackCompound(NBTReflectionUtil.java:202) ~[?:?]
at de.tr7zw.nbtapi.NBTItem.setCompound(NBTItem.java:175) ~[?:?]
at de.tr7zw.nbtapi.NBTReflectionUtil.setData(NBTReflectionUtil.java:674) ~[?:?]
at de.tr7zw.nbtapi.NBTCompound.setInteger(NBTCompound.java:209) ~[?:?]
at com.blank038.onlinereward.gui.RewardGui.open(RewardGui.java:79) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.open(OnlineRewardCommand.java:84) ~[?:?]
at com.blank038.onlinereward.command.OnlineRewardCommand.onCommand(OnlineRewardCommand.java:27) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[1.12.jar:git-Paper-1604]
... 15 more
[20:18:47 INFO]: YeXin_ issued server command: /plugin load [O][在线奖励]OnlineReward-1.7.3-BETA
[20:18:47 ERROR]: org.bukkit.plugin.UnknownDependencyException: Unknown dependency AyCore. Please download and install AyCore to run this plugin.

1.20.1墨端 无法加载插件
张杰宁
张杰宁
前置没有安装。