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

    JSMinecraft

    Are you going to implement an effect when /warn is used? Such as a freezing effect? I would love that it would help me a lot... It will kill two birds with one stone...
     
  3. Offline

    captainawesome7

    I could probably do that when I finally get around to updating plugins :/
     
  4. Offline

    JSMinecraft

    Awesome, thanks :D
     
  5. Offline

    Sekonda

    Is it possible to get a "/warnings list" command to list all the warnings, or "/warnings [username]" to get the list of warnings for that username?
     
    Kozzy68 likes this.
  6. Offline

    captainawesome7

    Not currently
     
  7. Offline

    Kozzy68

    Hi, nice plugin but I miss command to check warnings to make it usable.
    /warnings [username] would be really usefull for OPs and should to be easy to make.
     
  8. Offline

    Bomberman852

    Maybe it would be nice to make a Admin function: to see warnings from a player.
    like /warnings bomberman852

    lol NVM
    Kozzy68 was first with the same thing :O
     
  9. Offline

    captainawesome7

    I can add that
     
  10. Offline

    Bomberman852

    That would be really nice !
    If you would do that.. i ( and my staff ) would really appreciate that :)
     
  11. Offline

    Eliteabix

    When I restart the server with the new plugin added to the plugins folder, the folder AdvancedWarning is created but no files are generated inside it. Did I do something wrong or is this a bug?
     
  12. Offline

    captainawesome7

    Well it definitely isn't a bug. Did you try to /warn anybody?

    Done in 1.3

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

    Eliteabix

    I tried /warn but it appears the plugin never actually loads. Heres the error I got when I first ran it:

    Code:
    2011-07-07 23:57:27 [INFO] DataSourcePool [AdvancedWarning] autoCommit[false] transIsolation[SERIALIZABLE] min[2] max[20]
    2011-07-07 23:57:27 [SEVERE] FATAL: DataSourcePool [AdvancedWarning] is down!!!
    2011-07-07 23:57:27 [INFO] Reseting DataSourcePool [AdvancedWarning] min:2 max:20 free:0 busy:0 waiting:0 highWaterMark:0 waitCount:0 hitCount:0
    2011-07-07 23:57:27 [INFO] Busy Connections:
    
    2011-07-07 23:57:27 [SEVERE] Could not load 'plugins/AdvancedWarning.jar' in folder 'plugins':
    com.avaje.ebeaninternal.server.lib.sql.DataSourceException: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'ps'
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.<init>(DataSourcePool.java:210)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourceManager.getDataSource(DataSourceManager.java:210)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourceGlobalManager.getDataSource(DataSourceGlobalManager.java:63)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.getDataSourceFromConfig(DefaultServerFactory.java:427)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.setDataSource(DefaultServerFactory.java:388)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:168)
        at com.avaje.ebeaninternal.server.core.DefaultServerFactory.createServer(DefaultServerFactory.java:64)
        at com.avaje.ebean.EbeanServerFactory.create(EbeanServerFactory.java:78)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:176)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:175)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:199)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:122)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:118)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:89)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:51)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'ps'
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
        at com.mysql.jdbc.Util.getInstance(Util.java:382)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3593)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:931)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4031)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1296)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2338)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2371)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2163)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:794)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:378)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
        at java.sql.DriverManager.getConnection(DriverManager.java:582)
        at java.sql.DriverManager.getConnection(DriverManager.java:154)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createUnpooledConnection(DataSourcePool.java:401)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.createConnectionForQueue(DataSourcePool.java:607)
        at com.avaje.ebeaninternal.server.lib.sql.PooledConnectionQueue.ensureMinimumConnections(PooledConnectionQueue.java:205)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.initialise(DataSourcePool.java:248)
        at com.avaje.ebeaninternal.server.lib.sql.DataSourcePool.<init>(DataSourcePool.java:208)
        ... 17 more
    
     
  14. Offline

    Bomberman852

    I also got an problem..
    When i warn a player 3 times ( thats my setting. ) it gets an auto-ban.
    Also, i cant remove his warnings ( internal error ...... )
    also i can't warn players when they aren't online. ( same internal error )

    Do you know what im doing wrong?
    Or is it a bug?
     
  15. Offline

    captainawesome7

    Removing warnings and warning offline players definitely works.
     
  16. Offline

    Bomberman852

    Already fixed, thats for your comment ;)
     
  17. Offline

    Duncan2808

    I'll get this error when i typ a command:
    An internal error occurred while attempting to perform this command.
    What is the problem? Please help me!?
     
  18. I get that too if the player has not been online since the plugin was installed, no idea why it would require that, but it does.
     
  19. Offline

    thernztrom

    I get internal error message when I try warn someone. Im on build 1000. I can do /warnings and it shows me i got no warnings, but when i try warn someone else it just gives me the internal error message. :s Is anyone else having these issues on 1000, or is it just me?
     
  20. Offline

    Raul

    I have this error when I start the server
    Code:
    2011-07-19 20:44:13 [INFO] [AdvancedWarning] Error with SQL connection! Post this error on the forum post:
    2011-07-19 20:44:13 [SEVERE] java.sql.SQLException: No suitable driver found for jdbc:sqlite:D:\Minecraft server project\sv final\Minecraft server project\plugins\AdvancedWarning/warnings.db
    2011-07-19 20:44:13 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-07-19 20:44:13 [SEVERE]     at java.sql.DriverManager.getConnection(Unknown Source)
    2011-07-19 20:44:13 [SEVERE]     at com.awesomevilleserver.aw.aw.onEnable(aw.java:270)
    2011-07-19 20:44:13 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-07-19 20:44:13 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    2011-07-19 20:44:13 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    2011-07-19 20:44:13 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    2011-07-19 20:44:13 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    2011-07-19 20:44:13 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-07-19 20:44:13 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-07-19 20:44:13 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-07-19 20:44:13 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-07-19 20:44:13 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    I think, the plugin can't create/generate the warnings.db file.

    Some help? :D
     
  21. Offline

    captainawesome7

    Did you install SQLite? And what operating system do you use?
     
  22. Offline

    Raul

    I don't have SQLite installed and I have Windows 7 Ultimate (SP1)
     
  23. Offline

    captainawesome7

    You need to install SQLite 3
     
  24. Offline

    iSushi

    I got a feature request, look into the API of the Jail plugin and add some support to it. :)
    It's the little extra I need to the jail plugin as well as this plugin before installing either of them. I've used both before but since I started 8 months ago with servers, there have been pretty many resets of both plugins and worlds. Now I've started to be more picky on both (worlds and plugins), so yeah for me; combining those plugins would make an excellent penalty system. Here's a list over what I'd like to have:
    • Use the same concept as before, but instead of intant ban on the limit of warnings, put em in jail. (Add to config file)
    • Specify the jail their being put into and if there is going to be any time before release or forever.
    • On the limit of times put in prison / jail the player is banned them (Add this to config file as well)
    • If you're really going in for the idea, it might be another idea; On the limit of times put in prison / jail the player would be transfered into another prison as specified in the config file. Making the server admin or whoever is controlling the server able to send the bad player to a permanent, unescapable prison / jail. I am pretty sure I would never do this as it would use my resources and bandwidth on players that is only there to bug me or annoy me about getting released. But anyways, there might be people with mercy that would use their resources and bandwidth on such a thing.
    • I don't know, just an idea buzzing in my head, that would be to add MCBans support. Would probably be a lot more work than the Jail plugin but anyway. Might be people that would use it?
    (is now falling off track) I am not demanding anything. I am just suggesting as there have been incidents earlier where people got mad because I requested some features. I don't claim you to be a mindless zombie plugin developer that is supposed to do whatever I want as an elder admin god... creature. And excuse me for all my blabber and off-topic talk. I like to think that I am funny and that my off-topic talk and blabber will give you an experience from message as joy-full and good as possible. Or something like that. And FYI; In my mind all those requests make sense, so be sure to ask if there was something confusing or something you'd like to have explained.

    PS: If you decide to add this to your plugin could you please reply to one of the mails on this webpage (http://rskaze.jrnetwork.net/wiki/contact). I can't provide the e-mail adress directly in a thread here as I am unsure if the e-mails are protected from spam-bots to detect or not. Thank you.

    Sincerely,
    - iSushi
     
  25. Offline

    thernztrom

    Can you give me a link to where to download the right Sqlite files. Im running on linux. I have hard to tell what exact files I should download..
     
  26. Offline

    captainawesome7

    I have no idea what files you need to install for Linux, just use google.
     
  27. Offline

    thernztrom

    What are the file ending of the file i should look for? .jar, .c, .d, .dll....
    And where to put it, in the plugin/advancedwarning/ folder?
     
  28. Offline

    captainawesome7

    http://www.sqlite.org/download.html
    Scroll down to Precompiled Binaries for Linux
     
    thernztrom likes this.
  29. Offline

    thernztrom

  30. Offline

    soulreaver797

    The annoying thing is, it's CaSE sensitive...

    We were testing it out on my server just now and it wasn't working, we soon realised you have to type the player name in with uppercase/lowercase lettering.

    /warn soulreaver797 (doesn't work)
    /warn SoulReaver797 (does)

    it's a great plugin, if you could make it so that uppercase doesn't matter I will donate a small fee.
    thanks
     
  31. Offline

    captainawesome7

    Not going to happen. I can't magically know what letters you want to be lowercase/uppercase when I perform SQL queries. You're just going to have to deal with it.
     

Share This Page