Inactive [ADMN] AdvancedWarning 2.0 - Warn Players + Permissions + AutoBan [1060]

Discussion in 'Inactive/Unsupported Plugins' started by captainawesome7, Jun 5, 2011.

  1. Offline

    captainawesome7

    For CB 1.2.3 RO 1/2 and onward, go here.
    *XenForo's formatting ghost hit the original page, and I'm too lazy to go through and fix it*
     
    daniel95821 and Kozzy68 like this.
  2. Offline

    CeramicTitan

    how do u unban someone?
     
  3. Offline

    captainawesome7

    delete their row in the database using an app like SQLite db browser

    or i think clearing their warnings might work as well xD

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

    CeramicTitan

    when i try clearing warnings it comes up with an internal error?
     
  5. Offline

    captainawesome7

    what does it show in the console?
     
  6. Offline

    CeramicTitan

    how can i put it on the forum?
     
  7. Offline

    captainawesome7

    Um copy+paste inside a code block...
     
  8. Offline

    DrAgonmoray

    @captainawesome7
    Funny, I was planning to make something almost exactly like this for my server, but I guess I don't have to now.
    I was gonna have it a tiny different, so maybe you can implement something like this:
    First warning: tell them a warning message
    Second warning: tell them a warning message again
    Third warning: kick
    Fourth warning: ban for a few hours
    Fifth warning: permaban
     
    CeramicTitan likes this.
  9. Offline

    captainawesome7

    I'm working on adding a small GUI and some extra options.
     
    CeramicTitan likes this.
  10. Offline

    CeramicTitan

    Sorry, i still dont no what to do?
    U cant copy cmd promt
     
  11. Offline

    captainawesome7

    ..? Use the log?
     
  12. Offline

    CeramicTitan

  13. Offline

    Ablac

    Should add a Time limit so you can make warnings Expire after an amount of time.

    Also i would love to be able to see the Database and manually delete Individual Warnings, or have a command to delete individual Warnings.
     
  14. Offline

    captainawesome7

    Just use an app like SQLiteDatabaseBrowser
     
  15. Offline

    dkeulen

    Does this still work with cb1185 etc? :) if not, are you working on that spoutGUI thingy before you release a cb1185 version? (any ETA? :D)
     
  16. Offline

    captainawesome7

    Yes it works and no, no eta as of now.
     
    dkeulen likes this.
  17. Offline

    dkeulen

    I just tested your plugin with cb1185, it does work but it does not show that i got warning when i login (i have set everything to true) and name matching does not work either. Now i can asume that its because it isint actually build for 1185, can you confirm this or does it work as intended for you with 1185?

    and, i dont know if you have got this planned but some suggestions:

    - permission so you cant give a certain group warnings
    - Show: You have recieved (a) warning(s), view your bla bla message when a player logs in.
    - Use a mysql database instead of the one that gets created, or an option to choose between a db from mysql or the one that comes with the plugin.
     
  18. Offline

    captainawesome7

    The plugin works fine, it definitely works on 1185. I'm not adding permission crap, it already shows that message on login, and I'm not adding MySQL.
     
  19. Offline

    VeryInsane

    @captainawesome7

    1. /clearwarns gives an internal error
    2. I can't unban
     
  20. Offline

    captainawesome7

    Use a database editor, and errors?
     
  21. Offline

    mueslo

    So, why no PermissionsBukkit support? How many people have to request it before you'll think about implementing it? Is it somehow more of a hassle to code in than other permission managers?
     
  22. Offline

    captainawesome7

    I don't use PermissionsBukkit, and don't care. It supports bPermissions (Old permissions or superperms).
     
  23. Offline

    ThatBox

    maybe add a different command for ./warnings player since i do want my players to check THIER warnings. But if i give them that permission they can also check other players warnings which i don't want.
     
  24. Offline

    Jobsti

    Heyho @captainawesome7

    super plugin, but 3 requests:
    • WarningsTojail: (Jail Pugin)
    or
    • WarningsToCommand:
    Command: '/Jail %player% 15 name reason......whatever'

    •Option to define Texts and Colors

    • Warnings to sign. Eg. A sign, line 2 [warn] line 3 [username],
    so the sign shows the username and the amount of his warnings.

    Something Possible?

    Edit:
    Or better option for some more commands one after another
    WarningsToCommand:
    Commands:
    - /burn %player%
    - /strike %player%
    - /Jail %player%
    - /whatever..
     
  25. Offline

    captainawesome7

    im not developing this anymore, i think @saul100 has taken it over, but I can't remember
     
  26. Offline

    GunterNova

    How exactly does this plugin ban the player? Does is send the command "/ban [player' through the console?
     
  27. Offline

    captainawesome7

    no it just watches for the join.
     
  28. Offline

    keithlawless

    @captainawesome7

    I'm also getting the exception when running /clearwarns under Bukkit release 1597. Here's the stack trace from the console:

    13:49:41 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'clearwarns' in plugin AdvancedWarning v2.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:723)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:181)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:34)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:94)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:551)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:528)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:458)
    Caused by: java.lang.NullPointerException
    at com.awesomevilleserver.aw.aw.onCommand(aw.java:238)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:165)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378)
    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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180)
    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:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

    Looks like the problem is with this line of code:

    Player clearee = this.getServer().getPlayer(arg);

    If a player is offline, clearee will be 'null' and you shouldn't try to send a msg to the player. Just check for null being returned. That should fix the issue.

    Cheers!

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

    captainawesome7

    I thought I had a check for that but will do
     
  30. Offline

    THESLAYER95

    will this work on the newest bukkit build? (i'm new to plugins and all that jazz, sorry)
     
  31. Offline

    captainawesome7

    [ADMN] AdvancedWarning 2.0 - Warn Players + Permissions + AutoBan [1060]

    That being said, maybe.
     

Share This Page