samerton / nameless-infractions Goto Github PK
View Code? Open in Web Editor NEWInfractions module for Nameless 2
License: MIT License
Infractions module for Nameless 2
License: MIT License
When enabling the module the settings do not show, as I can't edit perms to group 2... I added another group with permissions and that was able to view.
Add support for AdvancedBan
Where should be the database located? On the CPANEL or on the SERVER HOST (for mc)?
In Infraction modules you should add path change for site like /punishments or something.
Change Tags when someone is unbanned. When Staff unbanned someone it says "Expired". You should change that to "Unban/Unbanned" With name who unbanned that person.
Add support for BanManager
It's Open Source and has own WebUI which means it will be easier to integrate
Request for AdminBans.
It's an open-source project: https://github.com/zigazajc007/AdminBans
This is how all tables look like:
CREATE TABLE IF NOT EXISTS adminbans_banned_players(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, uuid_from CHAR(36) NOT NULL, username_from varchar(25) NOT NULL, uuid_to CHAR(36) NOT NULL, username_to varchar(25) NOT NULL, reason VARCHAR(255), until DATETIME NOT NULL, server VARCHAR(30) NOT NULL DEFAULT 'Global', created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP)
CREATE TABLE IF NOT EXISTS adminbans_banned_ips(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, ip varchar(15) NOT NULL, server VARCHAR(30) NOT NULL DEFAULT 'Global')
CREATE TABLE IF NOT EXISTS adminbans_muted_players(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, uuid_from CHAR(36) NOT NULL, username_from varchar(25) NOT NULL, uuid_to CHAR(36) NOT NULL, username_to varchar(25) NOT NULL, reason VARCHAR(255), until DATETIME NOT NULL, server VARCHAR(30) NOT NULL DEFAULT 'Global', created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP)
CREATE TABLE IF NOT EXISTS adminbans_warned_players(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, uuid_from CHAR(36) NOT NULL, username_from varchar(25) NOT NULL, uuid_to CHAR(36) NOT NULL, username_to varchar(25) NOT NULL, reason VARCHAR(255), server VARCHAR(30) NOT NULL DEFAULT 'Global', created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP)
CREATE TABLE IF NOT EXISTS adminbans_kicked_players(id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, uuid_from CHAR(36) NOT NULL, username_from varchar(25) NOT NULL, uuid_to CHAR(36) NOT NULL, username_to varchar(25) NOT NULL, reason VARCHAR(255), server VARCHAR(30) NOT NULL DEFAULT 'Global', created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP)
And here is the API, so you can see what SQL queries are executed for specific action: https://github.com/zigazajc007/AdminBans/blob/master/src/main/java/com/rabbitcompany/adminbans/AdminBansAPI.java
Edit: I just saw that the plugin has already been suggested! I don't know if I should leave or delete my suggestion...
Hello !
The Infractions module looks really good!
However, I would like to make a suggestion to add a plugin which I hope will be possible!
It's a premium plugin at the price of 7.50 euros called Ultra Punishments.
Spigot: https://www.spigotmc.org/resources/ultra-punishments.63511/
I hope it will be added! Huge thanks to the NamelessMC team and all the developers!
You guys are doing an amazing job, thank you. (I hope the format of my suggestion is correct.)
Self-explanatory.
My site is https://pridetopia.net, I am not getting errors and probably 15 20 times now I've double triple quadruple checked, etc. that I put in the info for the database properly and the site will pull up the infractions thing but not show anything. Any idea of what might be causing this? I also noticed the latest comment on the module says that it quit working in the newest version and I believe I use the newest version (not sure if that's true or not lol), I didn't have any versions before it either. Just got it a bit over a month ago. And it's never properly worked as in never displayed warns/mutes/bans. I am unsure if I did something wrong or not.
Had to manually add infractions module into the nl2_modules list
Even after adding to list and trying to enable it says " Error
Unable to enable incompatible module."
Please add Bungee Admin Tools
https://www.spigotmc.org/resources/bungee-admin-tools-basics-edition.444/
When I try to hook a MySql data base up to the site it gives this error:
Error:
SQLSTATE[HY000] [2002] Connection refused
Please check your database connection settings.
The data base is hosted with https://www.freemysqlhosting.net
PunishControl it's a new plugin created by kangarko and I would love to see support for this plugin in the feature, the plugin is really new plugin :)
Hello,
i would suggest if maybe UltraPunishments could be added for the plugin support.
UltraPunishments is a Plugin that costs about 10$ but its realy easy to use and also has a Discord Function.
https://www.spigotmc.org/resources/ultra-punishments.63511/
If you nee the file itself contact me, and i look what i can do.
Would it be possible to add a profile tab to users to list their punishments received in game?
I see that some of the base files (profile_tab.php
and the profile tab template) have been created, however nothing has been placed in these files.
Would really appreciate this feature!
I am requesting support for Staff++ Plugin w/ Nameless Infractions Module :)
https://www.spigotmc.org/resources/staff.83562/
https://github.com/garagepoort/StaffPlusPlus
https://wiki.staffplusplus.org/
Can you please add support for ProfessionalBans?
Spigot: https://www.spigotmc.org/threads/error-professionalbans-reloaded-event-preloginevent.359342/
When users register for the forum they're forced to add their in game name, could punishments sync over where it adds say a banned or muted role which limits their permissions? even if this is linked with the register or sync command built into the forum.
Hello,
recently I have updated to nameless pr10 and all the modules with it.
I ran into a little problem when I use infractions with litebans...
"Uncaught TypeError
Unsupported operand types: string / int
(File: ../modules/Infractions/pages/infractions.php)
"
At Frame#2 it points to line 147 (modules/Infractions/pages/infractions.php):
" $removed_by_date = round($result->removed_by_date / 1000);"
At Frame#1 it points to line 86 (index.php):
"require($path);"
Modules are always replaced as a whole, never by rewriting...
I think this will be very useful because someone sometimes want to list all of their punishments (from whole litebans database).
Simple as that.
I would love to see Litebans not show bans or warns or kicks that are done in silent in game with -s, just like it does to official litebans site.
Uncaught Error
Call to undefined method User::canViewACP()
(File: /zpool/shared/www6651/site13296/public/modules/Infractions/pages/panel/index.php)
Hello,
I got a feature request for the Infractions module.
This has been requested before but i got a idea.
I would like to see the following things added to the module (Or Infractions Pro module for a price)
Below is the default webaddon would like to see those features implemented or in a new payed version of Infractions
Thank you.
Sorry!
Sorry, but something went wrong while loading the page. Error details:
Uncaught --> Smarty: Unable to load template 'file:infractions/infractions.tpl' <--
thrown
in file /home/waterhcf.com/public_html/core/includes/smarty/sysplugins/smarty_internal_template.php
on line 195
Add support for popular bans plugin Ultra Punishments
https://www.spigotmc.org/resources/web-addon-ultrapunishments.66173/
provides sufficient details about how the MySQL functions just incase you don't have access to the plugin.
Admin Bans is a great alternative to LiteBans, it runs on the server better and still offers the webpage and more.
NamelessMC version 2.0.0-pr7
PHP 7.2.24-0ubuntu0.18.04.4
PHP GD 7.2.24-0ubuntu0.18.04.4
PHP mbstring 7.2.24-0ubuntu0.18.04.4
PHP PDO 7.2.24-0ubuntu0.18.04.4
PHP cURL 7.2.24-0ubuntu0.18.04.4
PHP XML 7.2.24-0ubuntu0.18.04.4
PHP EXIF 7.2.24-0ubuntu0.18.04.4
PHP MySQL mysqlnd 5.0.12-dev
infractions module version 1.1.0
advanced ban 2.1.8-release
running on Waterfall-342
MySQL Server version: 10.1.44-MariaDB-0ubuntu0.18.04.1 Ubuntu 18.04
OS is Ubuntu MATE 18.04.3 LTS with Linux kernel 5.2.11 64 bit for the computer that hosts the MC server / mysql server and the one that hosts our website
https://i.imgur.com/wZ9Rsro.png
https://i.imgur.com/FfNof8Z.png
https://i.imgur.com/UWXXHGH.png
https://i.imgur.com/KhWGXXl.png
https://i.imgur.com/Gt65lpV.png
https://i.imgur.com/jWgFi0E.png
If any more information or data is needed, then ill try to provide it!
Edited to add more info as i though of it
Sorry!
Sorry, but something went wrong while loading the page. Error details:
Uncaught --> Smarty: Unable to load template 'file:infractions/infractions.tpl' <--
thrown
The Infractions module isn't integrating with the rest of the Nameless system. I propose a system that integrates with the notification section of the website and can give you notifications when you're banned, kicked or if any of your punishments have expired. Any ideas devs?
.
This error shows when i open infractions settings in staff control panel:
Uncaught --> Smarty: Unable to load template 'file:infractions/index.tpl' <--
thrown
in file /storage/ssd2/961/13712961/public_html/core/includes/smarty/sysplugins/smarty_internal_template.php
on line 195
Followed instructions of installation down to the letter, Have no issue with other issues so it can't be an installation issue. Module isn't loading or appearing when i click "Install modules" Nothing appears or changes. Version 1.1.1 Install date 02/06/2020 | June 2nd 2020
Would be cool
Just to confirm I understand - on the settings screen in NamelessCP where it asks for database info and credentials; that would be the database used by the bans plugin? And I only need a user that can read it, not update I presume.
Thank you for all your work on Nameless. I really find it useful.
can you add networkmanager support?
im using now the punishment list from networkmanger but i want to use infractions for the better layout
It says advanced bans supported. but i only see an option to litebans
Hi, could you please add search button in your module? We switched from our own website and we had there search too, which I think is very useful.
Something like this, search button for searching by player names.
Could be nice also if we could search by specific staff to see what were his punishment on players.
Add support for CMI because you can't use another plugin without generating thousands of aliases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.