1. These forums are being retired. Please ask all questions and help threads and any other type of discussions on GitHub. During this time, new threads and user registrations have been disabled.

1.25 (obsolete) Reports 1.0

Allows users to report users

  1. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    Wight submitted a new resource:

    Reports - Allows users to report users

    Read more about this resource...
     
  2. texnik

    texnik Level 2

    Joined:
    Oct 14, 2013
    Messages:
    25
    I gave the group a default Permiss as before, but I was given:
    xet executed: /report texnik privat.
    Command failed, check logs for more details
    Log:
    2015-03-16 17:05:15 - UserManager: ERROR: System.InvalidCastException: Specified cast is not valid.
    at Mono.Data.Sqlite.SqliteDataReader.VerifyType(Int32 i, DbType typ)
    at Mono.Data.Sqlite.SqliteDataReader.GetString(Int32 i)
    at TShockAPI.DB.DbExt.<ReadFuncs>m__1E(IDataReader s, Int32 i)
    at TShockAPI.DB.DbExt.Get[T](IDataReader reader, Int32 column)
    at TShockAPI.DB.QueryResult.Get[T](String column)
    at TShockAPI.DB.UserManager.LoadUserFromResult(User user, QueryResult result)
    at TShockAPI.DB.UserManager.GetUsers()
    2015-03-16 17:05:15 - Command: ERROR: System.ArgumentNullException: Value cannot be null.
    Parameter name: source
    at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
    at Reports.Reports.Report(CommandArgs args)
    at TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)

    Any idea??
    (sorry for my bad Eng.)
     
  3. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    I'm unable to reproduce this. Are you using MySQL or SQLite?
    Working fine on a clean TShock 4.2.9 install with MySQL
     
  4. texnik

    texnik Level 2

    Joined:
    Oct 14, 2013
    Messages:
    25
    I put the old base tshock.sqlite 4.2.4. It is important to me. Im use SQLiteManager.
    This is not to fix? Only a clean installation?
     
    #4 texnik, Mar 17, 2015
    Last edited: Mar 17, 2015
  5. Zaicon

    Zaicon Spam Cleaner 9000
    TShock Mod Plugin Developer

    Joined:
    Feb 15, 2014
    Messages:
    811
    If the problem doesn't exist on a clean installation, then the issue is not caused by this plugin. If the issue is not caused by this plugin, this isn't the right place to ask for help.

    (I'll test this myself when I get home in an hour.)
     
  6. bippity

    Plugin Developer

    Joined:
    Jan 14, 2012
    Messages:
    300
    Since most players might not know who griefed a structure, I think reports should be made where providing a username is optional.
     
    • Like Like x 2
  7. Scoot Pilgrim

    Scoot Pilgrim Level 1

    Joined:
    Jun 23, 2015
    Messages:
    7
    Hey guys I love the plugin so far but I have an issue. When I type /report Superman Testing it says Command fail go check the log for details. What I found in the logs is different from what texnik found in his logs. This is what I found in it.

    2015-06-24 15:37:09 - Utils: INFO: Superman executed: /report Superman Testing.
    2015-06-24 15:37:09 - Command: ERROR: System.MissingMethodException: Method not found: 'System.Collections.Generic.List`1<TShockAPI.DB.User> TShockAPI.DB.UserManager.GetUsersByName(System.String, Boolean)'.
    at Reports.Reports.Report(CommandArgs args)
    at TShockAPI.Command.Run(String msg, Boolean silent, TSPlayer ply, List`1 parms)
     
  8. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    Oh damn. This is my bad - I compiled the plugin with the gen-dev build of TShock recently, and pushed to the master branch.
    The new version works a lot better, but unfortunately requires bleeding edge TShock.

    I'll see if I can find an older version for you
     
  9. Scoot Pilgrim

    Scoot Pilgrim Level 1

    Joined:
    Jun 23, 2015
    Messages:
    7
    Ok sweet, this is a nice plugin that will help my server a lot.
     
  10. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    Scratch what I said earlier- if you update to TShock v4.3 then this plugin will work fine :)
     
  11. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
  12. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
  13. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    Wight updated Reports with a new update entry:

    Reports no longer require a username

    Read the rest of this update entry...
     
  14. XxZenqxX

    XxZenqxX Level 4

    Joined:
    Aug 11, 2015
    Messages:
    53
    Update? (1.22)
     
  15. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599
    done :)
     
  16. XxZenqxX

    XxZenqxX Level 4

    Joined:
    Aug 11, 2015
    Messages:
    53
    Thanks!
     
  17. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,599