[MISC/FUN/RPG] Shattered v1.5 - It Hurts Doesnt it? [953][INACTIVE]

Discussion in 'Inactive/Unsupported Plugins' started by Minecraft93, Jun 23, 2011.

  1. Offline

    Minecraft93

    SHATTERED
    Version - 1.5
    Acknowledgements-
    Trc202 - For Helping Me Figure out the Player Damage Issue.
    Yes Ive been Realizing that ive been asking For Alot of help. From Now On, Ill Quit Asking for Help and Figure issues out on my own.
    Description - This Simple Plugin Makes Glass More Realistic By Giving the player damage if the glass is broken by hand.
    Download -
    http://dl.dropbox.com/u/1015938/Shattered.jar Latest CB

    Features -
    • Hurts Player When Glass Is Broken With Player Hands
    • Glass Must Be Broken With Tools Now
    Todo -
    • Try and Make a Config For The Messages/Damage
    Ran Into an Issue? -
    • CB Version
    • The Issue
    • Other Plugins You Are Using
    Changelog:
    • Version 1.0 CB 928
    • Version 1.5 cb 928 fixed Odd Coding Error. Eclipse Showed Correct Code but Jar Didnt.

    BTW- If Message On player Damage is a bit harsh, let me know and ill fix that.

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

    shadrxninga

    missing plugin version from thread title
     
  3. Offline

    Minecraft93

    thanks, its fixed now.
     
  4. Offline

    matter123

    just a thought but
    Code:
     public void onBlockBreak(BlockBreakEvent event)
      {
          Player theplayer = event.getPlayer();
          if(theplayer.getItemInHand().getType() == Material.AIR)
          {
              if(event.getBlock().getType() == Material.GLASS)
              {
                  theplayer.damage(1);
              }
              theplayer.sendMessage("Damn Should Of Used a Tool Instead.");
          }
      }
    should be
    Code:
     public void onBlockBreak(BlockBreakEvent event)
      {
          Player theplayer = event.getPlayer();
          if(theplayer.getItemInHand().getType() == Material.AIR)
          {
              if(event.getBlock().getType() == Material.GLASS)
              {
                  theplayer.damage(1);
                  theplayer.sendMessage("Damn Should Of Used a Tool Instead.");
              }
          }
      }
     
    TerraPlay and Overfiend like this.
  5. Offline

    7rmb7

    Yeah... otherwise you get that message whenever you break something.

    Nice concept, though.
     
  6. Offline

    Minecraft93

    -_- ok whatever ill fix it. i Dont see the issue. The Point is i want the message to show when the player is hurt.

    Wtf this isnt what my code looks like on the eclipse. the *correct* way matters wants it to be is what i have on my pc not on the jar file. hmm odd
     
  7. Offline

    matter123

    i took that code from the source in the jar
     
  8. Offline

    Minecraft93

    wow, damn i must of been tired last night. anyways i uploaded the correct code that is on my eclipse.
     
  9. Offline

    DraZiLoX

    Broken glass, EVERYWHERE. Nice plugin, makes it more realistic!
     
  10. Offline

    marinating

    Why is this marked RPG though?
     
  11. Offline

    Minecraft93

    I guess it makes RPG Servers more realistic. but if its wrong ill happily change it :D
     
    kahlilnc likes this.
  12. Offline

    Operon

    On [MISC-FUN-RPG], instead use [MISC/FUN/RPG].

    I'm not sure if it matters, but just letting you know. :)
     
  13. Offline

    Minecraft93

    oh woops thanks. ill use that instead.
     
  14. Offline

    Operon

    No problem!
     
  15. Offline

    kahlilnc

    I like this, You should add permissions for those who wont take damage from breaking glass with hand. Like servers with VIP/mod+ groups.
     
  16. Offline

    Minecraft93

    sure i could try adding permissions

    EDIT: BTW Permissions are broken. Waiting For RCR to update it.
     
    kahlilnc likes this.
  17. Offline

    Minecraft93

    Updated To 953. Works For Beta 1.7.2
     
  18. Offline

    Pigbear

    LOL PEOPLE ON MY SERVER DIED OF THIS :D
     
  19. Offline

    EpicATrain

    If this is updated to the latest version, then why is this inactive?
     
  20. Offline

    mesones

    Hey,
    i´m sorry im from germany i cant speak english very good :)
    how i can change the text Damn Should Of Used a Tool Instead.?
    must i copy the code in the .jar file ?
     
  21. Offline

    BioRage

    This needs' to be an update :)
     

Share This Page