Spigot [Minigame] Tnt Tag 2.2

Tag minigame

  1. Justinian6 submitted a new resource:

    Tnt Tag - Tag minigame

    Read more about this resource...
  2. Great beginning, but here some(a lot) TODO-list-improvements :
    Add some config options like: minPlayers:[amount],
    tntCount:[number] (how many players can be tagged when game starts),
    roundTimer:[number] (when timer ends, player with tnt will eliminated and next round starting with random tnt from tntcount option), ingameEffect: [effect] (applied effect for all players in game), winnerAction: /command, looserAction: /command, special currency and player top with stats...

    Now about really hard ideas, but it allows to stand out per others:
    New inventory items for LEAVE and VOTING and SHOP and ingame POWERS
    - TNT-player abilities, which can be used in game:
    New config file like "powers.yml" and needs to inventory change on game join.
    {start file}
    durationTime: 0 |...
    timerCondition: 7.10 |...
    price: 100 (in custom/default $ currency)
    upgradeLvls: [number] (limit for upgrading in format - price: 100 | 200 | 500 or other option, if upgradeLvls: 3, for 2lvl upgrade price 200, for 3lvl 300, but purchase price is 100... if upgradeLvls: 6 - 4,5,6 lvl has no changes in price).
    specialAction: /[command]
    icon: FIREWORK
    name: "boomer jump"
    - "special explosion will "
    - "send you in the sky"
    slot: 7
    durationTime: -1 (if -1, power duration never ends(until round end), and if 0 - instant use)
    timerCondition: [number] (decreasing [number] seconds of roundTimer per use)
    # upgradeLvls: []
    # specialAction: []
    icon: NETHER_STAR
    # name: []
    - "give all players"
    - "glowing effect"
    slot: 8
    -data about each player unlocked and enabled below...
    {end file}
    - Events: written in arena configuration like:
    {start file}
    enable: true
    slot: 0
    icon: MELON
    name: "name"
    - "lore"
    - "lore again"
    - "etc..."
    chance: 40% (or simple number to launch at specific round like (chance: 2 - will activate event only for round 2, chance: 2-4 - will activate event from 2 to 4 rounds))
    message: "some text when event selected"
    - tntCount [number] (event option value: if +[number] - increase parameter on [number], else if -[number] - decrease on [number])
    - roundTimer [number]
    chance: 20%
    # message:
    # voting:
    # - roundTimer +25.10 (floating numbers getting tick quantity(1-20) and 25.10 = 25.5 second, also 25.21> will be restored to default)
    - ingameEffect BLINDNESS
    {end file}
    etc... Event had multiple options and each is selected with chance of normal round start.
    Also players can vote for accept or prevent some events to happening before game start.

    This server is running CraftBukkit version git-Spigot-9de398a-9c887d4 (MC: 1.14.4) (Implementing API version 1.14.4-R0.1-SNAPSHOT)
    When i trying to setspawn before setspectator
    PLAYER issued server command: /tnt setspawn
    org.bukkit.command.CommandException: Unhandled exception executing command 'tnt' in plugin TntTag v0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:47) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:149) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.craftbukkit.v1_14_R1.CraftServer.dispatchCommand(CraftServer.java:710) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.handleCommand(PlayerConnection.java:1641) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnection.a(PlayerConnection.java:1481) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.PlayerConnectionUtils.lambda$0(PlayerConnectionUtils.java:19) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.TickTask.run(SourceFile:18) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeTask(SourceFile:144) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeNext(SourceFile:118) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.aX(MinecraftServer.java:910) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.executeNext(MinecraftServer.java:903) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.IAsyncTaskHandler.executeAll(SourceFile:103) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.sleepForTick(MinecraftServer.java:886) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:820) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
    Caused by: java.lang.NoSuchMethodError: org.bukkit.configuration.file.YamlConfiguration.getLocation(Ljava/lang/String; )Lorg/bukkit/Location;
    at com.justinian6.tnt.game.GameManager.init(GameManager.java:64) ~[?:?]
    at com.justinian6.tnt.game.GameManager.setSpawn(GameManager.java:206) ~[?:?]
    at com.justinian6.tnt.Cmd.onCommand(Cmd.java:49) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:45) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    ... 17 more
    [0;33;22m[[0;32;1mTNT Tag[0;33;22m] [m[0;31;1mOnly players can use this command![m
    When tnt-timer ending
    [TntTag] Task #834 for TntTag v0.1 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.World.createExplosion(Lorg/bukkit/Location;FZZ)Z
    at com.justinian6.tnt.game.GameExecutor.run(GameExecutor.java:125) ~[?:?]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:81) ~[spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:394) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.b(MinecraftServer.java:1023) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.DedicatedServer.b(DedicatedServer.java:396) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.a(MinecraftServer.java:971) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at net.minecraft.server.v1_14_R1.MinecraftServer.run(MinecraftServer.java:816) [spigot-1.14.4.jar:git-Spigot-9de398a-9c887d4]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]

    And good luck)
  3. @Dixizer thank you for taking the time to test out my new plugin!

    I really appreciate the time and effort you took to try it out on 1.14 as well as for all the recommendations and new feature ideas.

    I will be adding many of the things you have listed immediately to my development board as well as getting to work on those bugs (In the future I intend to fix compatibility for versions 1.8.x through 1.15.2).

    I will probably add a token system that gives customizable rewards for events such as:
    Tag another player
    Win game
    (Maybe even time in round spent un-tagged)
  4. ***
    [TNT players-placeholder]; [non-TNT players-placeholder](not working on spectators); [All ingame players-placeholder](not working on spectators); [player-placeholder]; [spectator players-placeholder]; [all players-placeholder](for spectators too);

    If you return pvp knockback, new abilities will be adapted here:
    {start file}
    durationTime: 10 | 12.5 | 15 | 20.15
    # timerCondition: 5.10 | 4 | | 2.15
    upgradeLvls: 4
    specialAction: "/effect give [player-placeholder] slowness" "/broadcast &f&n [player-placeholder] &7 had uses &a&l TITAN EQUIPMENT"
    actionChance: 30 | 100 (set command run chance in 30% for upgradeLvls:1, if combineActions: true - they commands links with run chance from upgradeLvls)
    # combineActions: []
    name: "Titan equipment"
    - "completely disable"
    - "damage knockback effect"
    (visual info: changes tnt armor to chainmail set)
    slot: 7
    durationTime: 20 | 35
    timerCondition: 2 | 1 | 0
    upgradeLvls: 3
    specialAction: | "/broadcast &f&n [player-placeholder] &7 had uses &a&l BLOCK CAMOUFLAGE" | "/effect give [non-TNT players-placeholder] blindness 10 10"
    combineActions: false (if you upgradeLvls = 3: when true, you run second and third command per use, if false - only third command, if upgradeLvls = 2: only second command)
    # actionChance: []
    icon: ARMOR_STAND
    name: "Block Masking"
    - "disguise in block like"
    - "camouflage which you standing"
    (visual info: remove all sounds/effects from tnt, change tnt head to block and set armor color from value of BlockOnMapColor).
    slot: 6
    {end file}
    Also new config option: returnPlayers: [number](when ingame players count(no spectators) less than [number], all players will be teleported to arena spawn)
    Have fun) )
  5. Justinian6 updated Tnt Tag with a new update entry:

    Knockback, Bug Fixes, and more!

    Read the rest of this update entry...
  6. Now... Most important features for all: :
    - Messages.yml
    - More info for spigot plugin page (sign setup, events config(i really don't know where events implemented))
    - I mean to enable pvp-knockback(players can kick tnt-player for defence too), but not to add new knockback system XD
    - Multiple arenas and multiple spawns for them.
    I see ingame tnt-item, new feature for this written here:
    №0 slot only for tnt-item, but when you change hotbar empty slot, item will be moved to changed slot (i'm holding item in slot0 and i change hotbar slot to 4, tnt also moved to slot4 if that slot is empty!)

    Of course, minigame can be mentioned as finished and i will use it...
  7. This project is still very much a work in progress and I am tinkering and adding features to it daily. Thank you for your feedback. I like your idea with allowing players to hit taggers back for defense. As a side-note, the events are on the back end but it was still a change made to the plugin and anyone who looks at the source will know that they can expect to find it there. I'll probably add a messages file in an upcoming update. Multiple arenas will happen but I have been putting it off until I have a better foundation for the code.

    Next big step is token and stats system!
  8. That's my favorite minigame :)
  9. Thank you! If you have any feature requests please let me know :cool:
  10. Testing on CraftBukkit version git-Spigot-518206a-a5b9c7b (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT):
    Could not pass event EntityDamageByEntityEvent to TntTag v1.2
    org.bukkit.event.EventException: null
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:309) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:500) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:485) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callEvent(CraftEventFactory.java:101) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.callEntityDamageEvent(CraftEventFactory.java:757) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.handleEntityDamageEvent(CraftEventFactory.java:656) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at org.bukkit.craftbukkit.v1_13_R2.event.CraftEventFactory.handleLivingEntityDamageEvent(CraftEventFactory.java:789) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityLiving.damageEntity0(EntityLiving.java:1445) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityHuman.damageEntity0(EntityHuman.java:879) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityLiving.damageEntity(EntityLiving.java:967) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityHuman.damageEntity(EntityHuman.java:792) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityPlayer.damageEntity(EntityPlayer.java:625) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityHuman.attack(EntityHuman.java:1044) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.EntityPlayer.attack(EntityPlayer.java:1336) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:1860) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.PacketPlayInUseEntity.a(SourceFile:69) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.PacketPlayInUseEntity.a(SourceFile:13) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.a(SourceFile:10) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_191]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_191]
    at net.minecraft.server.v1_13_R2.SystemUtils.a(SourceFile:199) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:895) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:417) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:830) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:728) [spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_191]
    Caused by: java.lang.NoSuchFieldError: PLING
    at com.justinian6.tnt.game.GameExecutor.makeNotIt(GameExecutor.java:384) ~[?:?]
    at com.justinian6.tnt.game.GameExecutor.onHit(GameExecutor.java:260) ~[?:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_191]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_191]
    at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) ~[spigot-1.13.2.jar:git-Spigot-518206a-a5b9c7b]
    ... 26 more
    Pvp spam result: <image#1> ... Pass result(maxtaggers:2): <image#2>

    Some features/reports:
    Remove current knockback and just enable pvp with regeneration or resistance effect..
    Signs setup is very unstable after server restart of reload..
    Move spectator-fly option in config..
    [IT] prefix when player joined looks strange, also bit useless..
    lobby completely missing..
    hardcoremode item dupe with second hand..
    Hardmode with speed decrease - original idea, but for now looks better another tnt-player power xd :
    {start file}
    durationTime: -1 (-1 = until current round end, -2 = all game time)
    timerCondition: 6.10 | 3 |
    upgradeLvls: 4
    specialAction: "/enchant [player-placeholder] fire_aspect 2" | "/broadcast &f&n [player-placeholder] &7 had uses &a&l BLOCK CAMOUFLAGE" | "/enchant [player-placeholder] fire_aspect 5" | "/burn [non-TNT players-placeholder] 20"
    combineActions: true
    actionChance: 100 | | | 25
    icon: MAGMA_CREAM
    name: "Blaze Touch"
    - "your hits mixing"
    - "with fire powers"
    (visual info: enchant tnt-tag armor).
    slot: 5
    {end file}

    I still helping you to finish it!)

    Attached Files:

  11. @Dixizer Ah I see we decided to mix things up and move to 1.13R2 now :LOL:. I will releasing an update very soon allowing for multiple games to run simultaneously, the creation of multiple arenas, and better Player handling. This update will also fix a lot of the issues currently faced when reloading from what I can tell.

    I'm gonna hold off on adding 1.13Rx support until after this update, however then I will make it a priority.

    Also as a note, the spectator fly setting cannot be moved to the config because: Without the server.properties setting being set the API will not allow you to toggle it, what I'll probably do is update the message stating "player flight couldn't be enabled because of.."

    Bugs I will look into right away:
    Thanks for pointing out hardcore mode duping, that's an easy fix
    [IT] not being removed when made not it <- This is caused because of the NSM error you're getting, I think the code that is supposed to reset it is right after that line.

    Thank you for all the ideas and help debugging, it is very appreciated.
  12. Justinian6 updated [Minigame] Tnt Tag with a new update entry:

    Version 2.1.1

    Read the rest of this update entry...
  13. org.bukkit.command.CommandException: Cannot execute command 'tnt' in plugin TntTag v2.1.1 - plugin is disabled.
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37) ~[server.jar:git-Paper-209]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:159) ~[server.jar:git-Paper-209]
    at org.bukkit.craftbukkit.v1_15_R1.CraftServer.dispatchCommand(CraftServer.java:752) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.PlayerConnection.handleCommand(PlayerConnection.java:1826) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.PlayerConnection.a(PlayerConnection.java:1634) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:47) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.PacketPlayInChat.a(PacketPlayInChat.java:5) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:23) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.TickTask.run(SourceFile:18) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeTask(IAsyncTaskHandler.java:136) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandlerReentrant.executeTask(SourceFile:23) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.executeNext(IAsyncTaskHandler.java:109) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.MinecraftServer.ba(MinecraftServer.java:1077) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.MinecraftServer.executeNext(MinecraftServer.java:1070) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.IAsyncTaskHandler.awaitTasks(IAsyncTaskHandler.java:119) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.MinecraftServer.sleepForTick(MinecraftServer.java:1034) ~[server.jar:git-Paper-209]
    at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:950) ~[server.jar:git-Paper-209]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_242]
  14. When exactly does this error occur? It looks like a player is using the /tnt command after the plugin has been disabled... Is there an earlier error causing the plugin to disable? If you could send the whole log I would have a better idea!

  15. This error occurs every time I restart the server and then enter the / tnt command