Inactive [ADMN] IWarnYou v1.5.3 - Simple but advanced warning system! [1.1-R6]

Discussion in 'Inactive/Unsupported Plugins' started by CraigEge, Oct 27, 2011.

?

What should I add next?

  1. Swear Word Blocker

    47.3%
  2. Deleting specific warnings

    18.9%
  3. Warnings time out

    33.7%
  1. IWarnYou v1.5.3
    IWarnYou is a simple warnings plugin designed to alert users of there wrong doings but also so staff can check if a user has previously broke the rules.
    IMPORTANT - CURRENTLY WORKING ON v2
    Thanks to learning more about Java coding and the Bukkit API I am currently working on a complete recode and remake of the plugin that will complete reinvent the way it works, what it can do and how well it works, it will make everyones life easier when handling the warnings and the weight each warning has (because currently a spam warning weighs as much as a grief warning even though they make a big difference).
    I have currently implemented in to the remake:
    • Simple config file (both layout and the way the plugin handles it)
    • MCBans Support
    • A version update detector with auto downloading
    • Any normal startup code has been cleaned up to be more efficient
    • Permissions
    • Swear detector
    • Warning check signs
    • Freeze warn (Freeze a player when they are warned)
    NOTE: Sorry about the delays in the update, my computer went crazy and I could not use it properly to get coding again until now, I have started development on the update again and am making good progress :)
    Commands/Permission
    CommandShortcutPermissionDescription
    /warn (username) (reason)N/Aiwarnyou.warnWarn a user
    /warnings [username]N/Aiwarnyou.checkCheck yours or another users warnings (must be op or have node to view others)
    /clearwarns (username) [id]/cwarnsiwarnyou.clearClears the warns set to a user, add a ID to the end to remove a specific warning
    /modifywarn/mwarniwarnyou.editModify a already created warning
    /twarnsN/Aiwarnyou.twarnsToggle the ability for users to view there warnings without accessing the config file
    /iwyreloadN/Aiwarnyou.reloadReload IWarnYou
    /iwyN/AN/AView available commands
    To create a warnings sign you need the permission node iwarnyou.sign if you have it create a sign with [Warnings] on the top line to view the users own warnings or add a username on the second line so when you right clicked it will tell you that users warnings!​
    Configuration
    By default the configuration file shows this:

    Code:
    # IWarnYou config file
    WarningsToBan: 5
    BanMsg: You have been banned for reaching &4%num&f out of &4%total&f allowed warnings!
    ShowAllOnLogin: false
    ShowOnLogin: true
    AutoBan: false
    viewOwnWarnings: false
    announceWarnings: true
    Here is a rundown of all the settings:
    WarningsToBan
    How many warnings a user can have at any one time before they are auto-banned (AutoBan must be set to true)
    BanMsg
    The message a user gets when they are banned
    ShowAllOnLogin
    Should the user see all there warnings when they sign in
    ShowOnLogin
    Should the user see a warning count when they sign in
    AutoBan
    Should users be auto banned when they reach the WarningsToBan limit
    viewOwnWarnings
    Should the user be able to view their own warnings without having the permission node or being a op
    announceWarnings
    Should every user in the warned users world see that they where warned​
    Currently added in next version
    • Only OPs and people with the iwarnyou.sign permission node can destroy [Warnings] signs
    ToDo
    • Cursing blocker that automatically warns the user and blocks the fowl language
    • Ability to add location to warning with extra argument (e.g. -loc)
    • Warnings time out (edit time in config file)
    • Plugin will tell you when a update is available
    Contact Me
    If you have any problems, bugs or ideas then please contact me at [email protected] or leave a comment!
    Changelog
    31/10/2011 - v1.5.2
    - Fixed error that stopped a ingame user warn a offline user
    - Added colours to the [Warnings] signs​
    - Happy Halloween!​
    30/10/2011 - v1.5.1
    - Fixed database update error
    30/10/2011 - v1.5
    - Warnings have there own unique ID which is stated after the # when you type /warnings [username]
    - Automatically updates the old databases to support the new ID's
    - The ability to delete a warning by ID
    - The ability to edit a warning by ID
    - A warning sign that when you right click tells you information
    29/10/2011 - v1.4
    - Removed some debugging I forgot to remove (when it says the server didnt reload ignore it)
    - Added the ability to announce the warning to everyone in that world (change in config)
    - OPs can see version number in /iwy
    - Fixed the /clearwarns bug when typed in game and the user is offline
    - Case insensitivity if the player is online, otherwise warns case sensitive offline user
    27/10/2011 - v1.3
    - Fixed a bug where clearing a offline users warnings would create a error
    - Added /twarns so you can toggle if users can view there own warnings without accessing the config
    - Updated HelpMe support to work with the new Maven system
    - Added /twarns to HelpMe
    27/10/2011 - v1.2
    - Added HelpMe Support
    27/10/2011 - v1.1
    - Adding console support (commands now work in the console)
    26/10/201 - v1.0
    - Initial Release
     
  2. @phrstbrn I understand what you mean now :p Sorry for all this, still new and you helped me notice a bug I had aswell somewhere else in the code as I looked through it ;) Fixed it and it will be added in v1.6 :)
     
  3. Offline

    Revenger

    Runs well got this message testing removing and viewing warnings.

    I think its because I tried to remove #1 as a test instead of 1

    Code:
    02:43:15 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'cwarns' in plugin IWarnYou v1.5.2
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:163)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:355)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
            at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:92)
            at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:501)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:471)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.NumberFormatException: For input string: "#1"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
            at java.lang.Integer.parseInt(Integer.java:470)
            at java.lang.Integer.parseInt(Integer.java:514)
            at me.craigege.IWarnYou.iwy.onCommand(iwy.java:504)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
            ... 13 more
    
     
  4. @Revenger exactly what you thought, I forgot to make it remove anything other than number (because im stupid), fixed for 1.6
     
  5. Offline

    Spadow

    @CraigEge
    If I ban a user, do IWarnYou works with mcbans?
    And can you add a function that ops or users with permissions can give warnings with rates.
    like a warning with rate 3 is not that bad then a warning with rate 7.
    if the user got a final rate of 10 the user get banned.
     
  6. Offline

    hawianguy1189

    Ok im having a problem. When a person reches a the ban amount the player is still able to get onto the server. Please help me out.

    Ok sitting here playing with it more iv noticed if I give the player the last warn or all the warns from console it will ban them. If a player does all of them or last one it will just kick them and not ban them.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  7. I have not yet added MCBans functionality but I will soon, I may add this rating feature to toggle in the future!


    Thank you for reporting this, I think I have fixed this in the next update ;)
     
  8. Offline

    LITTLESCUD

    I typed in the permissions but i get the message
    06:31 PM [INFO] [IWarnYou] No permissions found, defaulting to OP
    06:31 PM [INFO] [IWarnYou] SQL test success (TestUser has 3 warning(s)!
    06:31 PM [INFO] [IWarnYou] Version 1.5.2 has been enabled!
    Please help me, I really want to use it but can't!
     
  9. Offline

    LITTLESCUD

    The ones that are in the Commands/Permissions table, I copied the words in the tsble in the permissions column. :D
     
  10. Offline

    ace223

    Is it confinable so that after 3warns you get a kick? then 4 a tempban (confinable time-limit) THEN a 5 warning ban?

    i am not sure if someone else has asked this but i couldnt be bothered reading it all :p
     
  11. Offline

    spikewess

    The permission nodes are not working for my Member/Mod group, not sure what's going on. Would you mind helping?


    Code:
        Member:
            permissions:
            - iwarnyou.check
     
  12. Offline

    xeNium

    /mwarn will be error if we just type /mwarn (Not +username +reason)

    But it correct man, your plugins is full of bugs, Better you re-make your plugins but with same command

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 20, 2016
  13. I'm working on a v2 which is a complete remake with more features, cleaner code and a better/easier way to handle warnings!
     
  14. Offline

    GunterNova

    How exactly does this plugin ban the player? Does is send the command "/ban [player' through the console?
     
  15. Currently it find's the player and just uses the player.isBanned(true); supplied by bukkit, I'm working on a full rework where I will probably add custom commands that run through console when a warning level is triggered so you can customise what happens ;)
     
  16. Offline

    schatty

    Hey,

    It would be possible to capture the user instead of a jail to use plugin. That the user will probably ban but not so eligible for a certain time to Jail?

    Google Translated sry ;/
     
  17. Are you meaning do something like jail them when they get a certain amount of warnings? If that's what you mean then my answer is with v2 that I'm making you will be able to run custom commands when they reach a certain amount of warnings so yes you will be able to in the next version ^_^
     
  18. Offline

    GunterNova

    Alright sound fair, so far as it sends a console command as it will also put them on mcban list. I may get one of our Developers to do it, do you have an ETA of when you are going to work on it? If you do.
     
  19. Offline

    schatty

    Hey,

    exactly what I meant. Then I wait for V2.
    Then I wait for V2!

    Thank You!
     
  20. Offline

    DarklightPvP

    Checking users warnings isn't working, it just says ''username' has no warnings!' I did /warnings [username]
    Does it use SQLlite? Because that would suck, I don't know anything about it.
     
  21. If the user is offline it is case sensitive!
     
  22. Offline

    DarklightPvP

    But the user wasn't offline.... And I made sure I typed the exact spelling of the name.
     
  23. Full remake on the way so till then sorry :/ Due to making it I don't have time for bug fixing and once the new one is here there will be no bugs (hopefully)
     
  24. Offline

    denomeitor

    Aprovado
     
  25. Offline

    TheMaa

    Can you add customizable text/messages in the config?
     
  26. Offline

    Jespers

    I have problem with IWarnYou :
    it doesn't work with permissionbukkit?
     
  27. Offline

    ChildOfWar

    Any chance you could give an aprox. time v2 will be out? I really want to make use of this plugin, it's perfect for lowering the amount of people we ban.
     
  28. Offline

    MinecraftKing91

    When I Do Clearwarns [username] it says its cleared them but when i type /warnings it shows my warnings and same with login. ?
     
  29. Offline

    Buckethead

    1.2 update?
     
  30. Offline

    Kocacola97

    This plugin seems to be the same as this but it is always a nice plugin :)
     

Share This Page