[ADMN] iWarning v1.2 - Warn Players / Kick After Certain Amount [803-818]

Discussion in 'Inactive/Unsupported Plugins' started by cronikkk, May 25, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    cronikkk

  2. Offline

    cronikkk

    We got it working
    I finished it faster then i tought i would.
     
    ledhead900 and RTRD like this.
  3. Offline

    RTRD

    When i download i still get this error and it is saying v1.0 still:
    Code:
    2011-06-08 19:18:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'warn' in plugin iWarning v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
    at com.elitecraft.cronikk.iwarning.iWarningFunctions.sendWarning(iWarningFunctions.java:19)
    at com.elitecraft.cronikk.iwarning.iWarningCommand.onCommand(iWarningCommand.java:35)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  4. Offline

    cronikkk

    Hahaha coppied wrong link my bad ;) Changed ;D
     
  5. Offline

    RTRD

    Good! :D
     
  6. Offline

    cronikkk

    Is it working now? :p
     
  7. Offline

    RTRD

    Yeah! Thanks alot, man! :)
     
  8. Offline

    cronikkk

    NP enjoy!
     
  9. Offline

    Missnostalgia

    Is there anyway to view bans? When I type the command nothing appears, and I have both permissions in. Every other command works fine or do I actually have ot ban someone first for the command to show?
     
  10. Offline

    cronikkk

    make sure ur typing the command exactly like this
    /wadmin bans view

    EDIT:
    Oops i had it ban no S at the end in the main post sorry its bans!
     
  11. Offline

    Missnostalgia

    Hmmm, a internal server error occured. Here is my permission list and I can't find the problem.

    Code:
    users:
        Missnostalgia:
            group: Admins
            permissions:
                - "thunderport.teleport"
                - "trainyourlung.lungpower"
                - "iConomy.access"
                - iConomy.admin.grant
                - iConomy.admin.reset
                - iConomy.admin.set
                - iConomy.admin.hide
                - 'iConomyChestShop.admin'
                - 'iConomyChestShop.shop.create'
                - "iWarning.viewbans"
                - "iWarning.removeban"
                - 'lockette.user.create'
                - lockette.admin.create.*
                - lockette.admin.bypass
                - lockette.admin.break
                - 'iConomy.bank.access'
                - 'uQuest.CanReloadQuests'
                - showcase.admin
                - warp.create.*
                - warp.edit.*
                - warp.admin.invite
                - warp.admin.delete
                - warp.admin.to.all
                - warp.admin.warp.others
        Herpina:
            group: Moderator
            info:
                prefix: 'Moo'
                suffix: 'Cow'
            permissions:
                - 'herp.derp'
        Seriphos:
            group: Admins
            permissions:
                 - "thunderport.teleport"
                 - "trainyourlung.lungpower"
                 - "iConomy.access"
                 - 'iConomyChestShop.admin'
                 - iConomy.admin.grant
                 - iConomy.admin.reset
                 - iConomy.admin.set
                 - iConomy.admin.hide
                 - 'iConomyChestShop.shop.create'
                 - "iWarning.viewbans"
                 - 'lockette.user.create'
                 - "iWarning.removeban"
                 - lockette.admin.create.*
                 - lockette.admin.bypass
                 - lockette.admin.break
                 - showcase.admin
                 - warp.create.*
                 - warp.edit.*
                 - warp.admin.invite
                 - warp.admin.delete
                 - warp.admin.to.all
                 - warp.admin.warp.others
        Mister_Bluesky:
            group: Citizen
            default: false
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Haha:
            group: Citizen
            default: false
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        DrWolfen:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Bob:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Batman:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Mark:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Sakura:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Chocolate:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Cheese:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Pocky:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        John:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:
        Sally:
            group: Citizen
            default: true
            info:
                prefix: ''
                suffix: ''
            inheritance:
                  - default
            permissions:

    Something might be wrong with the properties.

    Code:
    #iWarning Config File :)
    
    #Data Type either mysql or sqlite
    datatype:sqlite
    
    #Max Warnings Until Kick
    maxwarningstillkick:2
    
    #Kick message the player will receive when kicked
    kickmessage:You were kicked for having the max amount of warnings
    
    #Wether or not it will broadcast a kicked message
    ingamekickonoff:true
    
    #Max Warnings Till Ban
    maxwarningstillban:3
    
    #Ban message the player will recieve when kicked
    banmessage:You were banned for having way too many warnings
    
    #Allow restricting when warned each time (admin can turn off by command)
    restricting:false
     
  12. Offline

    cronikkk

    You have to post the error in console for me to be able to figure it out. and tell me what u tried to do.
     
  13. Offline

    Missnostalgia

    Code:
    [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'wadmin' in plugin iWarning v1.1
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:128)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:281)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:718)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:684)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:677)
        at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:217)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:401)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:311)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NullPointerException
        at com.elitecraft.cronikk.iwarning.iWarningBanHandler.getAllBans(iWarningBanHandler.java:39)
        at com.elitecraft.cronikk.iwarning.iWarningCommand.onCommand(iWarningCommand.java:188)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    The only thing I changed was the amount of warnings and the Mysql to Sqlite.
     
  14. Offline

    cronikkk

    Alright. That line is where it executes the mysql query. Restart your server when u changed it to sqlite. Tell me if in the directory it created a warnings.file
     
  15. Offline

    Missnostalgia

    There is a warnings file in there.
     
  16. Offline

    cronikkk

    Alright so it is creating the DB. try warning a user.
     
  17. Offline

    Missnostalgia

    I can warn fine, and look at my warnings. The only thing missing is viewing the bans and removing the bans.
     
  18. Offline

    cronikkk

    Do you have skype? Or whtas ur server IP?
     
  19. Offline

    Missnostalgia

    IP is 174.37.218.67:25566

    I would need to know your IGN to whitelist you though.
     
  20. Offline

    cronikkk

    cronikkk tell me when im whitelisted
     
  21. Offline

    Missnostalgia

    Ok you are whitelisted and have admin powers, so you can go test it now.
     
  22. Offline

    cronikkk

    Added important update!
    Fixed the /wadmin bans view error!

    Problem resolved. :) Updated iWarning to fix the issue.

    New twitter account :p I post everything id o to my plugins :D

    twitter.com/MineDevCronikkk
    Follow me please ;)

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

    iFuze

    I got an error. When i try using iWarning i get this error: Could not load iWarning v.12, is up to date?
     
  24. Offline

    cronikkk

    Weird.. I'll need to see the actual error.
     
  25. Offline

    iFuze

    21:53:35 [ALLVARLIG] Error occurred while enabling iWarning v1.2 (Is it up to da
    te?): null
    java.lang.NullPointerException
    at com.alta189.sqlLibrary.MySQL.DatabaseHandler.checkTable(DatabaseHandl
    er.java:134)
    at com.alta189.sqlLibrary.MySQL.mysqlCore.checkTable(mysqlCore.java:72)
    at com.elitecraft.cronikk.iwarning.iWarning.onEnable(iWarning.java:84)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:125)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader
    .java:750)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManage
    r.java:253)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:134)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:112)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:232)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:219)
    at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:146)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  26. Offline

    tremor

    could you make it so that /warn player also sends a message to ALL chat - main reason, to make people see that people get warned, specially other admins.. seem to have a tendancy for players to get 5 warnings at once from 5 different ops and get banned..
     
  27. Offline

    RTRD

    @cronikkk I can't view players warnings while they are offline. You should fix that! ;)
     
  28. Offline

    cronikkk

    I will make taht a configurable option Expect release with that feature next weekish

    exxxxxxxxxxxpect that next week ;)
     
  29. Offline

    RTRD

    @cronikkk Ok, cool!
    But can you change the command? It is a bit long. :p

    Maybe something like this:
    OR...

    And that will show something like this:
    And to show the player warnings:
     
  30. Offline

    cronikkk

    the warning (admins view all warnings) would begin to be too long of a list
     
  31. Offline

    RTRD

    Ok, so..?
     
Thread Status:
Not open for further replies.

Share This Page