T2C-OPSecurity | Permission Security - [1.8.x - 1.21] icon

T2C-OPSecurity | Permission Security - [1.8.x - 1.21] -----

Server protection from OP / Permission scam / hacks




If you had entered several permissions in the permissions list, only the first one was checked, this error has been fixed
----------, Oct 10, 2024

In this update, minor bugs have been fixed and the config has been slightly revised.

Config changes:
- check.onJoin -> check.onJoin.enable
- check.onInteract -> check.onInteract.enable
- check.onCommand -> check.onCommand.enable
- check.onChat -> check.onChat.enable
- add check.onCommand.whitelist

A whitelist has been added for commands for which no check is performed.
----------, Mar 31, 2024

[ 052592c] - The notify.allBungeePlayer option did not work as it should, this bug was fixed
----------, Jun 19, 2023

[ f5dfca5]
- API update to Minecraft version 1.20
- T2CodeLib API update to 15.0 (this version is required from now on)
----------, Jun 8, 2023

Fixed a bug where players were incorrectly detected
T2CodeLib 14.4 is required from this version onwards
----------, Apr 23, 2023

Changes:
  • [e14f91c] In opWhitelist.yml the path of an option was corrected: noOpPlayerDeop.enable -> opWhitelist.noOpPlayerDeop.enable
  • [a2bd88a] An API has been added
    Class: T2COpSecAPI
    Code (Text):
    <repositories>
      <repository>
        <id>T2Code</id>
        <url>https://repo.t2code.net/repository/T2Code/</url>
      </repository>
    </repositories>

    <dependencies>
      <dependency>
        <groupId>net.t2code</groupId>
        <artifactId>T2C-OPSecurity</artifactId>
        <version>3.1.0</version>
      </dependency>
    </dependencies>
  • [98fd040] Fixed an error that occurred when loading the plugin, because since paper build 404 the T2CodeLib was loaded only after OPSecurity
  • [dba1e57] minor code changes
----------, Feb 27, 2023

- 'noOpPlayerDeop.enable' was missing in opWhitelist.yml and was read in incorrectly
- 'kick.customCommand.Enable' was corrected to 'kick.customCommand.enable' in config.yml
----------, Dec 12, 2022

Changes:
  • The placeholder [perm] was not replaced in the console when a player was kicked who is not on the permission whitelist
  • The permission whitelist did not work as it should have
  • If you used a UUID with '-' in the permission whitelist, then it was not recognized correctly
  • The kick message (permissionWhitelist.kick) was reset from MiniMessage to legacy color codes, because MiniMessages do not work in kick messages.
----------, Nov 20, 2022

Bugfix:
  • If you used a UUID with '-' in the op whitelist, then it was not recognized correctly
  • In the default opWhitelist.yml the path 'opWhitelist.customCommands.commands' was not created
----------, Nov 19, 2022

Bugfix:
- In Permission Whitelist, the customCommands function did not work as expected.
----------, Nov 17, 2022

Update to T2CodeLib 13.4

Please note the changes of T2CodeLib 13.4
----------, Nov 15, 2022

Important BUGFIX:
- The permissionWhitelist.yml was not created and loaded correctly
----------, Nov 13, 2022

Bugfixes:
- Kick command did not work as expected
- OP check did not work reliably
- Reload did not work reliably

Changes:
- Minor changes in the language files (a new generation of the language files is recommended)
----------, Nov 9, 2022

3.0.0 Full release
Changes:

  • OPSecurity is now called T2C-OPSecurity
  • PermissionWhitelist & OPWhitelist have been split into 2 separate config files
  • Notify is now also available for the bungee / all servers
  • Debug messages were removed

This version requires at least version 13.2 of T2CodeLib!
This version includes a converter from the old config.
If you find any bugs or errors, please report them to me via Discord.
----------, Nov 5, 2022

This is the first version of the complete recode of OPSecurity.

Changes:
  • OPSecurity is now called T2C-OPSecurity
  • PermissionWhitelist & OPWhitelist have been split into 2 separate config files
  • Notify is now also available for the bungee / all servers

This version requires at least version 13.1 of T2CodeLib!
This version includes a converter from the old config.
If you find any bugs or errors, please report them to me via Discord.
----------, Nov 3, 2022

The T2CodeLib has been completely cleaned up and restructured.

Please make sure that all plugins that need T2CodeLib are compatible with version 13.0.

For those plugins from T2Code that have an interface on the Bungee, the plugin files do not need to be on the Bungee anymore, the T2CodeLib is sufficient!

If you need help or have any questions, please contact us on our T2Code Support Discord Server: dc.t2code.net
----------, Nov 1, 2022

All T2Code plugins are 1.19 compatible.

The first tests find to end!
We have tested all our plugins with Spigot 1.19 and found no errors.
If you still encounter errors / bugs, please report them to us via Discord.
----------, Jun 8, 2022

Added the option for hover & clickable messages for players.

To use this new feature you only have to update T2CodeLib!
T2CodeLib 11.9 is required.

You can add a hover and/or clickable feature to all messages sent to players.

Use /*/ to separate the message.
Use [nl] to set a line break in a message or hover.

Hover message: <message >/*/<hover>
Message with hover and click function: <message >/*/<hover>/*/<action>/*/<actionValue>
Message only with click function: <message >/*//*/<action>/*/<actionValue>

- OPEN_URL - Opens a URL under the path specified in ActionValue.
- OPEN_FILE - Opens a file under the path specified by ActionValue.
- RUN_COMMAND - Runs the command specified by ActionValue.
- SUGGEST_COMMAND - Inserts the string specified in ActionValue into the player text box.
- CHANGE_PAGE - Changes to the page number in a book specified by ActionValue.
- COPY_TO_CLIPBOARD - Copies the string specified by ActionValue to the player's clipboard.
----------, May 31, 2022

Bugfix:
- A bug in the permission query was fixed
----------, Jan 21, 2022

If a region was created on the server with WorldGuard where the flag blocked-cmds / allowed-cmds was used, then the commands were executed although WorldGuard should block this. (It may also be that other plugins that have similar functions were affected).

This has been fixed.
----------, Jan 9, 2022

Changes:
  • Code changes and performance improved. T2CodeLib (minimum 10.1) is required from now on!
New:
  • Exact reason (kick, deop) is now displayed in the console
Bugfix:
  • Upper/lower case of player names in config will be ignored from now on to avoid errors.
----------, Jan 7, 2022

This version is a snapshot! If there are any bugs, please let us know via Discord or Issue.

Code changes and performance improved. T2CodeLib Version 10.1 is required from now on!
----------, Jan 6, 2022

This version is a snapshot! If there are any bugs, please let us know via Discord or Issue.

New:
  • Exact reason (kick, deop) is now displayed in the console
Bugfix:
  • Upper/lower case of player names in config will be ignored from now on to avoid errors.
----------, Jan 5, 2022

Bugfix:
- [ 8f19f7e] In the update 2.3.4 I made a mistake and so the version 0.0.1 was detected on the server. This update fixes this error. Thanks to sergio85 for the bug report
----------, Dec 29, 2021

Add 1.8 Support
----------, Dec 28, 2021

Small Bugfix
----------, Dec 28, 2021

Critical bugfix:
Players could completely bypass OPSecurity if they had the permission ' minecraft.command.op' but no op or the permission ' * '! This critical bug has now been fixed. I strongly recommend upgrading to this version!
----------, Aug 24, 2021

Update Discord link for the new support Discord. dc.T2Code.net

New permission:
opsecurity.updatemsg (included in opsecurity.admin)
----------, Aug 19, 2021

In this update 2 bugs were fixed and one small change was made.

Bugfixes:
- [ 4ef93eb] It was indicated that an update is available although the latest version is installed.
- [ 9c905db] When the plugin was reinstalled, an error occurred when loading the plugin.

Changes:
[ edf94d8, c132dab]
The permission 'opsecurity.admin' was split into 3 single permissions. ('opsecurity.admin' is still present and contains all plugin permissions)

Code (YAML):
permissions:
  opsecurity.admin
:
    default
: op
    children
:
      opsecurity.notify
: true
      opsecurity.command.reload
: true
      opsecurity.command.info
: true
      opsecurity.command.help
: true

  opsecurity.notify
:
    default
: op
  opsecurity.command.reload
:
    default
: op
  opsecurity.command.info
:
    default
: op
  opsecurity.command.help
:
    default
: op
----------, Aug 18, 2021

[​IMG]
With this update, security and performance have been improved.

Version 2.2 was skipped because I accidentally forgot to release it and it also contained bugs that were fixed in this version.

Changes:
- Language files are no longer generated with abbreviations, but written out (e.g. en_EN_Messages.yml -> english_messages.yml)
- Players that are in the whitelist must now also be specified with the UUID
- The function Timer is now included in the tab Check
- Code changes that provide improvement

New features:
- New function: PlayerMustBeOnlineToOp (default: true)
With this option you can specify that the player you want to give OP to must also be on the server.
- The kick command is now adjustable in the config.yml (default: minecraft:kick [player] [reason])

Bugfixes:
- [ 5841019] The bug that with the option Check.OnChat the chat did not work on some servers or on some servers caused that if the chat event was disabled by another plugin (e.g. for chat input for plugin options) the message was still written to the chat was fixed.

Note:
This plugin has a config converter to convert the configs to config version 2, this includes:

- File renaming:
- Config.yml -> config.yml
- de_DE_Messages.yml -> german_messages.yml
- en_EN_Messages.yml -> english_messages.yml
- no_NO_Messages.yml -> norwegian_messages.yml

- config.yml:
- ALL SETTINGS REMAIN!
- Plugin.language is adjusted accordingly
- Timer.Enable -> Check.Timer.Enable
- Timer.RefreshTime_inSec -> Check.Timer.RefreshTime_inSec
- In the Player Withelist, the UUID is automatically added for all players.
----------, Aug 17, 2021

Hi everyone, I am currently improving my plugins and implementing new features. I'm also in the process of developing a new plugin that will soon enter the testing phase.
For this reason I am currently looking for beta testers for my plugins, if you are interested feel free to contact me on my Discord via ticket.
With kind regards JaTiTV.

Discord
----------, Aug 17, 2021

I recommend you to disable the function "Check -> onChat", because this can currently lead to errors. This will be fixed in the next version
----------, Jul 14, 2021

In this update, new features have been added and the code has been improved. From now on, the plugin checks the players not only when they join or via the timer, but also when they want to write in the chat, execute commands or interact with items / build blocks.

These new features can be activated / deactivated individually.
In addition, you can now set an individual kick command (default: minecraft:kick).

The update message has been redesigned.
----------, Jul 1, 2021

[​IMG]
With this update a new era of OPWhitelist starts.
OPWhitelist is now called OP Security!

With this update some bugs have been fixed and the performance has been improved.

Changes:
Permissions:
- opwhitelist.admin
-> opsecurity.admin
- opwhitelist.notify -> opsecurity.notify
Commands:
- /opwhitelist -> /opsecurity
- /opwl -> /opsec

Note: Because the plugin name has changed a new config folder will be created too!
Either you rename the old folder (OpWhitelist -> OPSecurity) or you copy the old config into the new folder.


The Configs are 100% compatible with each other!

-------------------------------------------------------------------------------------------------

Mit diesem Update startet eine neue Ära von OPWhitelist.
OPWhitelist heißt ab sofort OP Security!

Mit diesem Update wurden einige Bugs gefixt und die Performance wurde verbessert.

Änderungen:
Permissions:

- opwhitelist.admin -> opsecurity.admin
- opwhitelist.notify -> opsecurity.notify
Commands:
- /opwhitelist -> /opsecurity
- /opwl -> /opsec

Hinweis: Da sich der Plugin Name geändert hat wird auch ein neuer Config Ordner erstellt!
Entweder du nennst den alten Ordner um (OpWhitelist -> OPSecurity) oder du kopierst die alte Config in den neuen Ordner.


Die Configs sind zu 100% miteinander Kompatibel!
----------, Jun 27, 2021

1.17 is supported!
----------, Jun 21, 2021

Small bugfix

Fixed
[WARN]: Legacy plugin OpWhitelist v1.2.1 does not specify an api-version.
----------, Apr 12, 2021

English
Several minor bugs have been fixed in this update.

Fixes:
- When running ingame /opwhitelist reload it could happen that an error occurs.

- If OP_Whitelist and Permission_Whitelist were both set to true, the right message was not displayed ingame with the permission opwhitelist.notify

- If OP_Whitelist was set to noOpPlayerDeop and noOpPlayerKick the player op was not removed

German
In diesem Update wurden mehrere kleine Bugs behoben.

Fixes:
- Wenn man ingame /opwhitelist reload ausführte konnte es passieren, dass ein Error auftritt

- Wenn OP_Whitelist und Permission_Whitelist beide auf true eingestellt waren, wurde ingame mit der Permission opwhitelist.notify nicht die richtige Message angezeigt

- Wenn bei OP_Whitelist die Einstellungen noOpPlayerDeop und noOpPlayerKick aktiviert waren wurde dem Spieler op nicht entfernt
----------, Apr 9, 2021

English
New option:
A warning sound has been added to Notify

Fixed a small bug that occurred when running commands on Paper via the console.

German
Neue Option:
Es wurde bei Notify ein Warn Sound hinzugefügt

Es wurde ein kleiner Bug behoben der entstand wenn man Commands bei Paper über die Console ausgeführt hat.
----------, Apr 5, 2021

English
In this update 2 new features were added and 2 small bugs were fixed.
The code has been partially rewritten, so please notify me via Discord if you find any bugs.

New features:

- Option Notify JoinWarn
With this option you can set that players with the permission opwhitelist.notify get a notification if a player with OP or a permission joins the server without being on the whitelist.

- Timer
With the timer you can set if and every how many seconds it should be checked if a player has OP or a permission on the server without having the permission.

Bugfixes:

Fixed a bug that if Permission_Whitelist, customCommands Enable and PlayerWhithPermission_kick was set to true PlayerWhithPermission_kick was not executed.

The config structure has changed a bit:
Code (YAML):
OP_Whitelist:
  noOpPlayerKick
:
    Enable
: true
    customCommands
:
      Enable
: true
    customKickCommands
:
     Commands:
Replaced by:
Code (YAML):
OP_Whitelist:
  noOpPlayerKick
:
    Enable
: true
    customCommands
:
      Enable
: true
      Commands:

German
In diesem Update wurden 2 Neue Funktionen hinzugefügt und 2 kleine Fehler behoben.
Der Code wurde teilweise Neu geschrieben, deswegen bitte ich darum mich über Discord zu benachrichtigen, wenn Fehler auftreten sollten.

Neuerungen:

- Option Notify JoinWarn
Mit dieser Option kann eingestellt werden, dass Spieler mit der Permission opwhitelist.notify eine Benachrichtigung bekommen, wenn ein Spieler mit OP oder einer Permission den Server betritt ohne, dass er auf der Whitelist steht

- Timer
Mit dem Timer könnt ihr einstellen ob und aller wie viel Sekunden geprüft werden soll ob eines Spielers auf dem Server OP oder eine Permission besitzt ohne, dass er die Berechtigung besitzt.

Bugfixes:

Es wurde ein Bug behoben der dafür sorgte, dass wenn bei Permission_Whitelist, customCommands Enable und PlayerWhithPermission_kick auf true gesetzt war wurde PlayerWhithPermission_kick nicht ausgeführt.

Die Config Struktur hat sich ein wenig geändert:
Code (YAML):
OP_Whitelist:
  noOpPlayerKick
:
    Enable
: true
    customCommands
:
      Enable
: true
    customKickCommands
:
     Commands:
Ersetzt durch:
Code (YAML):
OP_Whitelist:
  noOpPlayerKick
:
    Enable
: true
    customCommands
:
      Enable
: true
      Commands:
----------, Mar 31, 2021

Fixed a bug where an error occurred when running '/opwhitelist reload' from the console when using Paper.

Ein Fehler wurde behoben, bei dem ein Fehler auftrat, wenn '/opwhitelist reload' von der Konsole aus ausgeführt wurde, wenn Paper verwendet wurde.
----------, Mar 30, 2021

English
Fixed a bug that occurred when you were not on the OP_Whitelist and on the Permission_Whitelist at the same time.

German
Es wurde ein Bug behoben der entstand wenn man nicht auf der OP_Whitelist und gleichzeitig auf der Permission_Whitelist stand.
----------, Mar 30, 2021

Update Checker added
----------, Mar 30, 2021

Resource Information
Author:
----------
Total Downloads: 9,785
First Release: Mar 30, 2021
Last Update: Oct 10, 2024
Category: ---------------
All-Time Rating:
10 ratings
Find more info at git.t2code.net...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings