WeekThor / AdminProtect

Plugin for PocketMine-MP. Protects the administrator from being banned and kicked
Eclipse Public License 2.0
2 stars 2 forks source link

New #3

Open Danilwsk opened 2 years ago

Danilwsk commented 2 years ago

Create a new plugin on gm /gm 0 - survival /gm 1 - creative /gm 2 - adventures /gm 3 - spectator with permission to use it. with permission to issue gm. And the ability to change the description

Danilwsk commented 2 years ago

I'll be waiting please

WeekThor commented 2 years ago

I had plans to add something like this to AdminProtect (preventing from giving gamemode to other players) but it is not a primary task. Possibly in future updates...

Danilwsk commented 2 years ago

Can you add clearchat? With a message in the chat

WeekThor commented 2 years ago

I'll think about it, but not in the coming 2.0.0 release. Maybe in the next beta-versions after it.

Thanks for the suggestion

Danilwsk commented 2 years ago

So to the AdminProtect plugin. You can add a message to the chat for banned people like "If you do not agree with the punishment, contact the forum." That is , it is not a reason , it is a text that will always appear after the reason for the punishment

WeekThor commented 2 years ago

Messages can be edited in config.yml

TempBannedPlayerKickMessage: "You was banned on this server until %duration%.\n Reason: %reason% (%sender%§r)\n\n If you do not agree with the punishment, contact the forum."
BannedPlayerKickMessage:     "You was banned on this server.\n Reason: %reason% (%sender%§r)\n\n If you do not agree with the punishment, contact the forum."
BannedIPKickMessage:     "Your IP was blocked on this server.\n Reason: %reason% (%sender%§r)\n\n If you do not agree with the punishment, contact the forum."
TempBannedIPKickMessage: "Your IP was blocked on this server until %duration%.\n Reason: %reason% (%sender%§r)\n\n If you do not agree with the punishment, contact the forum."

where \n is new line, %sender% is admin name. But it was broken after updating to pmmp 4.0.0 and I fixed it just now (fixed version was not uploaded in Releases tab)😁😁😁

Danilwsk commented 2 years ago

And the message that I banned someone will be visible to everyone in the global chat?

Danilwsk commented 2 years ago

And will it be possible to add the /mute command to this plugin ?

WeekThor commented 2 years ago

And the message that I banned someone will be visible to everyone in the global chat?

Yes, it will

And will it be possible to add the /mute command to this plugin ?

I will try to add this.

Danilwsk commented 2 years ago

When in config I write text in /n Then the banned player appears text after text of the reason. I thought it would be exactly on the new line , and not on the same line with the reason

WeekThor commented 2 years ago

To break a line you need \n and in config message must be in double quotes: "first line\n second line"

Danilwsk commented 2 years ago

that is, I can place the text /n anywhere in the banned player?

WeekThor commented 2 years ago

I think yes, it should work

Danilwsk commented 2 years ago

And how to make the banned player indicate the name of the one who banned in another place, and not at the end?

Danilwsk commented 2 years ago

And will the /warn command be added to this plugin?

Danilwsk commented 2 years ago

and /n "text" It does not work, it gives an error

WeekThor commented 2 years ago

Give your config.yml, I will see what is wrong

Danilwsk commented 2 years ago

Screenshot_20220131_045517_com alphainventor filemanager

Danilwsk commented 2 years ago

I wrote on a new line, but the console makes the error

WeekThor commented 2 years ago

You added /n If you do not... behind the quotes, but text the must be inside quotes. This caused an error on the server. Also not /n, you need \n for new line

Danilwsk commented 2 years ago

Understood I'll try

XyloFD2 commented 1 year ago

Question can you update to pm5 please this is the best staff plugin out there!

WeekThor commented 1 year ago

Question can you update to pm5 please this is the best staff plugin out there!

Hi @XyloFD2 The latest release 3.0.0 was published 4 days ago in releases section: https://github.com/WeekThor/AdminProtect/releases/tag/v3.0.0-beta-1

This is an update for pmmp5