[INACTIVE][FUN] YoureIt v0.4 - A Game of Tag [670-677]

Discussion in 'Inactive/Unsupported Plugins' started by ninwa, Apr 12, 2011.

  1. Offline

    ninwa

    YoureIt - A Game of Tag
    Supports Permissions Plugin!
    Version: v0.4

    Click here to download YoureIt v0.4.

    Hey all! YoureIt is my very first plugin for Bukkit. It adds the functionality of a game of schoolyard Tag to Minecraft. I am anxious to hear your thoughts. It's a learning experience for me and I'm happy to be a part of this community. Hopefully you find my plugin to be good fun!

    So here's how it works:
    • If you are the first player to log on, you become "it."
    • To tag somebody else, just hit them! Note, this only works if the swing causes damage. Currently not compatible with GodMode or non-PvP severs. This is something I hope to add in the future.
    • If the person who is "it" logs off then any player may type /tagme to tag themselves.
    • Any Op may tag anybody by typing /tag [player_name]. This also works from the console.
    Commands (open)

    Commands (/command [args] - permissions.node):
    • /tag [playername] - youreit.tag
      • Tag a player from the command-line. Useful to stop players from ruining the fun by refusing to play after they've been tagged.
    • /tagme - youreit.tagme
      • Tag yourself if nobody is currently tagged. Useful if the person who was tagged /tagout's or leaves the server.
    • /tagout - youreit.tagout
      • If you don't wish to play, simply /tagout. This will stop you from being it.
    • /tagin - youreit.tagin
      • If you're tagged out but wish to now play, use /tagin.
    • /tagwolf - youreit.tagwolf
      • /tagwolf toggles wolve's behaviors. By default wolves will not retaliate to attacks by players playing tag. To turn on retaliation toggle once. To turn it back off, toggle again!
    What's Planned (open)

    What's planned:

    • Ability to opt out of the game!
    • Ability to find who's "it" with compass if you want.
    • Turn off wolf-retaliation when players take damage from players playing Tag.
    • Configuration files are planned, including settings for: Tag cooldown, no Tagbacks, toggling damage, and changing [YoureIt] broadcast message color.
    • Compatibility with Permission mod, although my mod doesn't give users permission to do anything they couldn't already do on the server.
    • Score-tracking and different game-modes.
      • decided against doing this, will take up too much of my time, and after this I want to work on other projects. not off the table in the long run, but if somebody else wants to do this, feel free! Although my code is realllyy bad! Might be better off just rewriting :):)
    Changelog (open)


    Changelog:

    Version 0.4 [download]
    • NPCs from the Citizens mod are no longer taggable.
    • Removed excessive debug spam coming from YoureIt.
    Version 0.3 [download]
    • Wolves no longer retaliate to players who are playing tag by default.
      • Special thank you to Mixcoatl and Cartan12 for helping me figure out how to do this!
    • To re-enable wolf-retaliation you can type /tagwolf
      • Permissions node: youreit.tagwolf
    • Note: Players who are tagged-out will still be treated normally by wolves. So if you aren't playing tag, they will attack you if you attack other players.
    Version 0.2 [download]
    • Permission plugin support added
      • youreit.tag - Allows player to tag anyone from commandline
      • youreit.tagme - Allows player to tag themselves when noone else is tagged
      • youreit.tagout - Allows a player to opt-out of tag
      • youreit.tagin - Allows a player to opt-in from tag
    • Added the abiltiy to opt out (/tagout) and in (/tagin). Who's "it" is handled accordingly.
    • Attempted to fix wolf retaliation with no luck, any help here would be appreciated.
    Version 0.1 [download]
    • Initial release
     
    kahlilnc likes this.
  2. Offline

    lahwran

    Very nice!

    Also: I'm "theborad" :​o
    I feel mildly special.
     
  3. Offline

    ninwa

    Thank you for testing it. It's something that just adds a little bit of hilarity to a server. I'd love to see how it gets used on bigger servers where people can /tp, hehe.
     
  4. Offline

    Nipper

    Good idea. If only it had cookies to replace the lost health. Might have to give it a full try on mcdominion.net later tomorrow.
     
  5. Offline

    ninwa

    Going to bed, I promise I will add this tomorrow! If not this, then it will auto-heal you after being punched by someone who was "it." I will investigate though!

    For now, sleep! zzz :)
     
  6. Offline

    Juze

  7. Offline

    gsand

    Ahhh YEAH!
    Love this plugin
     
  8. Offline

    ninwa

  9. Offline

    Plague

    The RB version has to be in the titled, fixed it.
     
  10. Offline

    meh

    Not too useful if you have wolves... as the player becoming 'it' will become dead too... If it didn't rely on damage it might be better. Good idea for an in-game game though really. :)
     
  11. Offline

    ninwa

    Do wolves automatically try to attack anything thats near them or something? You will have to forgive me I haven't had time to check them out and see how they work yet. This plugin doesn't make the player a target of anything explicitly, it just announces when the person who is "it" hits somebody else, then making them "it." Damage by/to creatures is explicitly ignored by the plugin.
     
  12. Offline

    City Builder

    ninwa, if you have a wolf tamed by you and somebody hits you, then your wolf will go and attack that person (or creature) that hit you.
     
  13. Offline

    ninwa

    I will see what I can do to make wolves ignore attacks from individuals who are "it" or were "recently it" if this is something that people would be interested in. Currently at work but I will check into it when I get home. :)
     
  14. Offline

    Iaconic

    you should add a way to opt out of the game or maybe make compasses point to the nearest person...
     
  15. Offline

    comz123

    I would make a way to like not be in the game like laconic said but do not include a compass that would be cheating :p. Also add a way to stop being "it".
     
  16. Offline

    ninwa

    Right now if you log off while it you are no longer it. I will make it so that when you opt-out of the game and are it you will no longer be it, but otherwise if you're playing, you can't just decide yourself not to be it! :)
     
  17. Offline

    2Bucks

    if there's a way to make it non-damage based, that would be awesome
    in my server there's several towns that are no PVP, yet the tag game would be fun inside of the towns

    And definitely no tag backs is needed
    But I'm definitely installing this once the Config file is out

    I actually did suggest a "Hide&Seek" mod 2 days ago :D
     
  18. Offline

    ninwa

    Updated to v0.2 - Download it here

    Changelog:
    • Permission plugin support added
      • youreit.tag - Allows player to tag anyone from commandline
      • youreit.tagme - Allows player to tag themselves when noone else is tagged
      • youreit.tagout - Allows a player to opt-out of tag
      • youreit.tagin - Allows a player to opt-in from tag
    • Added the abiltiy to opt out (/tagout) and in (/tagin). Who's "it" is handled accordingly.
    • Attempted to fix wolf retaliation with no luck, any help here would be appreciated.
     
  19. Offline

    CaptainArcain

    I am ALL about this plugin. I'm half tempted to say leave the wolves in ;) it adds an element of danger to the game which means you'd have to be pretty determined to tag someone. A sacrifice I'd be willing to make in the name of fun, hehehe.
     
  20. Offline

    Raith945

    What if the one who has the Wolves is "it" and wants to pass it to someone without wolves?
    Won't his wolves chase down the new "it" then ?

    (Dunno if player transformation works in minecraft, but maybe "it" can be a sheep ...
    so wolves would be naturally aggro to them, protecting their master from anyone who
    tries to tag them or hunt down their old master in case the were tagged :p)
     
    CaptainArcain likes this.
  21. Offline

    CaptainArcain

    I don't know how you folks play on your server, but on mine, that would just be an added bonus for LOLs. Obviously one shouldn't do it too often or to the same person over and over again, but every once in a great while it would be pure comedy.
     
  22. Offline

    ninwa

    Just for you, I'll make the wolves retaliating to damage optional. I don't think it should be on by default, though. :)

    Updated to v0.3 - Download it here.

    Changelog:
    • Wolves no longer retaliate to players who are playing tag by default.
    • To re-enable wolf-retaliation you can type /tagwolf
      • Permissions node: youreit.tagwolf
    • Note: Players who are tagged-out will still be treated normally by wolves. So if you aren't playing tag, they will attack you if you attack other players.
    Special thank you to Mixcoatl and Cartan12 for helping me figure out how to do this!

    Next (and probably final release will be tomorrow night), including: Allow players to find whos it by compass (toggleable) and config files to control various things, including "no tag backs."

    Any other suggestions are welcomed, but I have limited free time in the evenings and want to start working on something more interesting than this. Had fun with it for my first project. :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
    CaptainArcain likes this.
  23. Offline

    CaptainArcain

    You, Sir. Rock.
     
  24. Offline

    woodzy

    umm my players can "tag" NPC's and the nps is "it" :/
     
  25. Offline

    ninwa

    What mod are you using to create NPCs? I should be able to fix this.
     
  26. Offline

    woodzy

    it was nice to see u :D
     
  27. Offline

    ninwa

    :)

    Updated to Version 0.4
    Download it here.

    Changelog:
    • NPCs from the "Citizens" mod should no-longer be taggable. This will not affect servers who do not use this mod.
    • Removed debug spam from your consoles, sorry!
    Please let me know if anyone else is using an NPC mod that YoureIt doesn't play nicely with. It seems like Citizens is the Big Kahuna though. Kudos to the devs for making it really easy to work tie into.
     
  28. Offline

    woodzy

    err ur going to kill me found anouother error. its in regard to this plugin
    http://forums.bukkit.org/threads/me...ction-redefined-permissions-support-677.3505/
    Code:
    2011-04-15 07:57:35 [SEVERE] Could not pass event ENTITY_DAMAGE to YoureIt
    java.lang.NoClassDefFoundError: com/fullwall/Citizens/NPCs/NPCManager
        at ninwa.youreit.YoureItEntityListener.onEntityDamage(YoureItEntityListener.java:66)
        at org.bukkit.plugin.java.JavaPluginLoader$41.execute(JavaPluginLoader.java:452)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.EntityHuman.d(EntityHuman.java:504)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:722)
        at net.minecraft.server.Packet7UseEntity.a(SourceFile:33)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
    Code:
    2011-04-15 07:55:57 [SEVERE] Could not pass event PLAYER_QUIT to YoureIt
    java.lang.NullPointerException
        at ninwa.youreit.YoureItPlayerListener.onPlayerQuit(YoureItPlayerListener.java:37)
        at org.bukkit.plugin.java.JavaPluginLoader$2.execute(JavaPluginLoader.java:210)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:255)
        at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:119)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:96)
        at org.bukkit.craftbukkit.entity.CraftPlayer.kickPlayer(CraftPlayer.java:124)
        at com.bukkit.fabe.AuthMe.AuthMe.onCommand(AuthMe.java:339)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:80)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:254)
        at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:596)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:559)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:553)
        at net.minecraft.server.Packet3Chat.a(SourceFile:24)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:198)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:72)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:368)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:283)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)
     
  29. Offline

    ninwa

    No worries :) Going to bed will have to check into it in the morning! I have a feeling I will be programming this forever if I try to make it compatible with every plugin that exists. I'll see what I can do to fix this error but unfortunately at some point I think you just have to go "ok thats it! all done here!" hehe.
     
  30. Offline

    woodzy

Share This Page