Coder Social home page Coder Social logo

simplefaction's People

Contributors

ayzrixytb avatar max-xoo avatar poggit-bot avatar se7en-dev avatar unenanomas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

simplefaction's Issues

[Enhancement] Add a /f topftxt

image

I think it would be nice to add a floating text for the plugin.

It is not something that everyone is going to need, but it is something that is eye-catching and people like to see without using commands

In the floating text it says:

Top factions with more power
1.- (Name of the faction) with (power) of power and (number of players) players

/f info

Le /f info NomD'uneFac fait crash pour certaines faction. Voici l'erreur:

ErrorException: "Undefined index: Monarchy" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/FactionsAPI" at line 688
[14:48:58] [Server thread/CRITICAL]: #0 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/FactionsAPI(688): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[25] Undefined index: Monarchy, string[89] /home/container/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/Factio, integer 688, array[1])
[14:48:58] [Server thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Commands/Faction(124): Ayzrix\SimpleFaction\API\FactionsAPI::getMoney(string[8] Monarchy)
[14:48:58] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Ayzrix\SimpleFaction\Commands\Faction->execute(object pocketmine\Player, string[1] f, array[2])
[14:48:58] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[15] f info Monarchy)
[14:48:58] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(2346): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[15] f info Monarchy)
[14:48:58] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[16] /f info Monarchy)
[14:48:58] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[14:48:58] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[14:48:58] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[14:48:58] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[14:48:58] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3318): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[14:48:58] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[14:48:58] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 86.75.166.71 53060, object raklib\protocol\EncapsulatedPacket, integer 0)
[14:48:58] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[14:48:58] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[14:48:58] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[14:48:58] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[14:48:58] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617547738.1214)
[14:48:58] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[14:48:58] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[14:48:58] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[14:48:58] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[14:48:58] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Factions not saving after restart.

Hey hello! I am using your simple Faction plugin . For some reason it's not saving factions. I am using SQL lite for saving factions but whenni checked only the one Faction which I created is saved and others aren't and they got removed after restarting the server. Idk if it's a bug or something

[Suggestion] Adding SafeZone

It is hard for admin to create a faction that other players can't break but what about the SafeZone options? I know that it is not simple but just a suggestion.

Leave faction

When a person leave a faction the number of members of the faction does not decrease and if the person is going to join the faction again his nickname will be once too many and so on. I found myself on my server with 7 Digueloulou12 in a factions: /

Plusieurs problèmes URGENT

  • On peut se faire taper dans NOS propres claims.
  • On peut ouvrir et accéder au contenue des fours dans les autres claims
  • On peut ouvrir / fermer les portes et les trappes dans les autres claims
  • Quand quelqu'un rejoind la faction, le power n'augmente pas

Player problem

Hi!
When I was reading your code, I noticed that you were using the nickname of the players,
which can be a problem: if the player changes his nickname.

Proposed solution: Used the Xuid rather than the nicknames of the players :)

UI preview :

[SimpleFaction] (Limite mettre le prefix en titre d'ui)
Bienvenue dans l'interface du plugin faction.

[Information]

  • Sous Bouton
    [Nom] - Ouvre une ui ou on set le nom
    [Description] - Ouvre une ui ou on set la desc

[Banque]

  • Sous bouton
    (quand on clique dans la description il y a Banque : {argent})
    [Ajouter] - on comprend
    [Retirer] - aussi
    [Logs] - qui a retiré etc

[Gestions]

  • Sous bouton
    [Promote]
    [Demote]
    [Invite]
    [Transfer]
    [Relation] - Ally enemy

[Téléportation] - tp au fhome
[Top Faction] - ouvre le f top dans le chat
[Quitter la faction] - pour les membres

Bug

[09:34:31] [Asynchronous Worker #0 thread/CRITICAL]: ErrorException: "SQLite3::query(): UNIQUE constraint failed: player.player" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask" at line 44
[09:34:31] [Asynchronous Worker #0 thread/CRITICAL]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[57] SQLite3::query(): UNIQUE constraint failed: player.player, string[95] /home/container/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Asyn, integer 44, array[2])
[09:34:31] [Asynchronous Worker #0 thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask(44): SQLite3->query(string[86] INSERT INTO player (player, faction, role) VALUES ('Digueloulou12', 'Teste', 'Le)
[09:34:31] [Asynchronous Worker #0 thread/CRITICAL]: #2 pmsrc/src/pocketmine/scheduler/AsyncTask(85): Ayzrix\SimpleFaction\Tasks\Async\QueryTask->onRun()
[09:34:31] [Asynchronous Worker #0 thread/CRITICAL]: #3 (): pocketmine\scheduler\AsyncTask->run()
[09:34:31] [Server thread/CRITICAL]: Could not execute asynchronous task QueryTask: Task crashed

Bug

[15:02:18] [Server thread/CRITICAL]: ErrorException: "Undefined index: MonnaieCiel559" (EXCEPTION) in "plugins/SimpleFaction/src/Ayzrix/SimpleFaction/API/FactionsAPI" at line 645
[15:02:18] [Server thread/CRITICAL]: #0 plugins/SimpleFaction/src/Ayzrix/SimpleFaction/API/FactionsAPI(645): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[31] Undefined index: MonnaieCiel559, string[82] /home/container/plugins/SimpleFaction/src/Ayzrix/SimpleFaction/API/FactionsAPI.p, integer 645, array[2])
[15:02:18] [Server thread/CRITICAL]: #1 plugins/SimpleFaction/src/Ayzrix/SimpleFaction/Events/Listener/EntityListener(32): Ayzrix\SimpleFaction\API\FactionsAPI::areAllies(string[14] MonnaieCiel559, string[5] AfteR)
[15:02:18] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): Ayzrix\SimpleFaction\Events\Listener\EntityListener->EntityDamageByEntity(object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Ayzrix\SimpleFaction\Events\Listener\EntityListener, object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/entity/Entity(932): pocketmine\event\Event->call()
[15:02:18] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/entity/Living(552): pocketmine\entity\Entity->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Player(3941): pocketmine\entity\Living->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Player(2742): pocketmine\Player->attack(object pocketmine\event\entity\EntityDamageByEntityEvent)
[15:02:18] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(149): pocketmine\Player->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:02:18] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(106): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:02:18] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[15:02:18] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\InventoryTransactionPacket)
[15:02:18] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[15:02:18] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/Player(3321): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[15:02:18] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[15:02:18] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[20] 86.202.138.221 49989, object raklib\protocol\EncapsulatedPacket, integer 0)
[15:02:18] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[15:02:18] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[15:02:18] [Server thread/CRITICAL]: #19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe{closure}()
[15:02:18] [Server thread/CRITICAL]: #20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[15:02:18] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1628866938.5505)
[15:02:18] [Server thread/CRITICAL]: #22 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[15:02:18] [Server thread/CRITICAL]: #23 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[15:02:18] [Server thread/CRITICAL]: #24 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[15:02:18] [Server thread/CRITICAL]: #25 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[15:02:18] [Server thread/CRITICAL]: #26 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
[15:02:18] [Server thread/INFO]: Fir3RusH6297[/86.202.138.221:49989] logged out due to Internal server error

'/f leave' bug

Hi. I have a problem when an member in a faction, use '/f leave', this cause a Internal Server Error, an this is a error in console

image

How to solve this bug?.

Undefined Index bug

ErrorException: "Undefined index: Raynul" (EXCEPTION) in "plugins/SimpleFaction.phar/src/Ayzrix/Simple
Faction/API/FactionsAPI" at line 653 

New version

something is wrong its fucking my server and internal error it and i didnt even edited the plugin

Crash dev 76

[10:59:14] [Server thread/CRITICAL]: ErrorException: "Undefined index: players" (EXCEPTION) in "plugins/SimpleFaction_dev-76 (1).phar/src/Ayzrix/SimpleFaction/API/FactionsAPI" at line 434
[10:59:14] [Server thread/CRITICAL]: #0 plugins/SimpleFaction_dev-76 (1).phar/src/Ayzrix/SimpleFaction/API/FactionsAPI(434): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[24] Undefined index: players, string[105] phar:///home/container/plugins/SimpleFaction_dev-76 (1).phar/src/Ayzrix/SimpleFa, integer 434, array[3])
[10:59:14] [Server thread/CRITICAL]: #1 plugins/SimpleFaction_dev-76 (1).phar/src/Ayzrix/SimpleFaction/Commands/Faction(370): Ayzrix\SimpleFaction\API\FactionsAPI::leaveFaction(object pocketmine\Player)
[10:59:14] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Ayzrix\SimpleFaction\Commands\Faction->execute(object pocketmine\Player, string[1] f, array[1])
[10:59:14] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[7] f leave)
[10:59:14] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(2349): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[7] f leave)
[10:59:14] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[8] /f leave)
[10:59:14] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:59:14] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:59:14] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[10:59:14] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[10:59:14] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3321): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:59:14] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[10:59:14] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[18] 46.25.251.22 41345, object raklib\protocol\EncapsulatedPacket, integer 0)
[10:59:14] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[10:59:14] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[10:59:14] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[10:59:14] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[10:59:14] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1628333954.5085)
[10:59:14] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[10:59:14] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[10:59:14] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(311): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[10:59:14] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(341): pocketmine\server()
[10:59:14] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

This occurs when the player has the name of the faction he is in replaced with his own player name and tries to use / f leave

str generators

Added a kind of power generator which can be damaged by enemy factions and recover everything is contained and which can be repaired for the generator I propose to put it in place of the ender crystal

Bug de update

Bonjour je voudrais vous dire que y’a un bug quand je crée ma faction sur purechat bah la faction s’affiche pas mais quand je déco reco bah il s’affiche
41CE7B97-1A46-4393-A100-0B0659145E68
0E2965C9-8AA6-41CD-9BE8-ACA050DE4D62
0F85C665-CEC1-42D6-9E8D-DFEBB95FC800

Server Restart/Reload Kicked every Player out of their Faction

Plugin worked fine for about 2-3 weeks until i changed the power_gain_per_kill to 50 for a DOUBLE PVP REWARD WEEKEND.
When it changed it back to 25 power per kill and did a server restart, every player was removed from their faction.

Only the 'faction' table in the SimpleFaction.db remained, but the 'players', 'home', and 'lang' tables were all deleted.
My players worked a long time for their power, only to have it reset and kick them out losing their home warps. No errors or anything, just empty factions upon a server restart.

I don't know what it is, but there is something critically wrong with this plugin for it to reset the entire player factions database. Very disappointing.

Enforcement of new Poggit rule against SQL injection

Dear plugin developer,

We have updated the Poggit plugin rules, and your plugin SimpleFaction appears to be affected.

The new rule is as follows:

B8: SQL parameters must be escaped

Data must NEVER be interpolated into SQL strings using interpolation, unless they are explicitly escaped using the mysqli::escape_string/SQLite3::escapeString function. No exceptions even if you are sure they are integers, player names or validated otherwise. Using libasynql or using bind_param()/bindValue() would be even better.

We detected the following line of code (and probably others) from your plugin that seems to breach the rule:

$db->query("INSERT INTO faction (faction, players, power, money, allies, claims) VALUES ('$faction', '$players', '$power', '$money', '$allies', '$claims')");

You are required to update the code to conform to the rules in 14 days. Otherwise, your plugin may be removed from Poggit and a security advisory will be issued to recommend users to remove your plugin.

A simple fix is to use SQLite3::escapeString or mysqli::real_escape_string to escape your data, but we recommend that you use SQLite3::prepare() and bindValue or mysqli::prepare() and bind_param instead. Even better, we recommend that you migrate to libasynql, although this is not a strict requirement. (But async database access may become a strict requirement in the future).

Shall you have any enquiries, please post your question on the #poggit channel on the PMMP Community Discord.

Best regards,
SOFe
Poggit Team

Crash

[23:19:23] [Server thread/CRITICAL]: ErrorException: "Undefined index: Tempest" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/FactionsAPI" at line 498
[23:19:23] [Server thread/CRITICAL]: #0 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/FactionsAPI(498): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[24] Undefined index: Tempest, string[89] /home/container/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/API/Factio, integer 498, array[3])
[23:19:23] [Server thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Commands/Faction(447): Ayzrix\SimpleFaction\API\FactionsAPI::acceptInvitation(object pocketmine\Player)
[23:19:23] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/command/SimpleCommandMap(248): Ayzrix\SimpleFaction\Commands\Faction->execute(object pocketmine\Player, string[1] f, array[1])
[23:19:23] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\Player, string[9] f accept )
[23:19:23] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(2353): pocketmine\Server->dispatchCommand(object pocketmine\Player, string[9] f accept )
[23:19:23] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string[10] /f accept )
[23:19:23] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[23:19:23] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[23:19:23] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/network/mcpe/protocol/BatchPacket(130): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[23:19:23] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(object pocketmine\network\mcpe\PlayerNetworkSessionAdapter)
[23:19:23] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Player(3325): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[23:19:23] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(object pocketmine\network\mcpe\protocol\BatchPacket)
[23:19:23] [Server thread/CRITICAL]: #12 pmsrc/vendor/pocketmine/raklib/src/server/ServerHandler(95): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string[21] 187.233.168.155 46744, object raklib\protocol\EncapsulatedPacket, integer 0)
[23:19:23] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
[23:19:23] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
[23:19:23] [Server thread/CRITICAL]: #15 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[23:19:23] [Server thread/CRITICAL]: #16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()
[23:19:23] [Server thread/CRITICAL]: #17 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1626650363.2661)
[23:19:23] [Server thread/CRITICAL]: #18 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor()
[23:19:23] [Server thread/CRITICAL]: #19 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start()
[23:19:23] [Server thread/CRITICAL]: #20 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
[23:19:23] [Server thread/CRITICAL]: #21 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
[23:19:23] [Server thread/CRITICAL]: #22 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Version 1.6.3

Crash

[17.04 16:57:25 [Server] Server thread/CRITICAL TypeError: "Argument 2 passed to pocketmine\entity\Entity::createEntity() must be an instance of pocketmine\level\Level, null given, called in /plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Main.php on line 118" (EXCEPTION) in "pmsrc/src/pocketmine/entity/Entity" at line 377
17.04 16:57:25 [Server] Server thread/CRITICAL #0 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Main(118): pocketmine\entity\Entity::createEntity(string[18] FloatingTextEntity, NULL , object pocketmine\nbt\tag\CompoundTag)
17.04 16:57:25 [Server] Server thread/CRITICAL #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Main(70): Ayzrix\SimpleFaction\Main->initFloatingText()
17.04 16:57:25 [Server] Server thread/CRITICAL #2 pmsrc/src/pocketmine/plugin/PluginBase(116): Ayzrix\SimpleFaction\Main->onEnable()
17.04 16:57:25 [Server] Server thread/CRITICAL #3 pmsrc/src/pocketmine/plugin/PluginManager(552): pocketmine\plugin\PluginBase->setEnabled(boolean 1)
17.04 16:57:25 [Server] Server thread/CRITICAL #4 pmsrc/src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin(object Ayzrix\SimpleFaction\Main)
17.04 16:57:25 [Server] Server thread/CRITICAL #5 pmsrc/src/pocketmine/Server(1771): pocketmine\Server->enablePlugin(object Ayzrix\SimpleFaction\Main)
17.04 16:57:25 [Server] Server thread/CRITICAL #6 pmsrc/src/pocketmine/Server(1584): pocketmine\Server->enablePlugins(integer 1)
17.04 16:57:25 [Server] Server thread/CRITICAL #7 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[48] /, string[56] /plugins/)
17.04 16:57:25 [Server] Server thread/CRITICAL #8 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()
17.04 16:57:25 [Server] Server thread/CRITICAL #9 pmsrc(11): require(string[103] phar:///custom-php7.4.phar/src/po)
17.04 16:57:25 [Server] Server thread/INFO Disabling SimpleFaction v1.5.0

Lats vers of all

A very big problem that has not been fixed for 3 months.

When you invite a player to a faction and he accepts the invitation, everything is fine. After restarting the server, all participants (except the leader) become phantom. Their clan tag becomes the player's nickname. They are phantom because if you hit them, the player (who tried to hit) kicks because of Internal Server error (undefined index: {player name}).
This is corrected by deleting the fractions database.

ErrorException: "Undefined index: Zipov" (EXCEPTION) in "plugins/SimpleFaction/src/Ayzrix/Simple
Faction/API/FactionsAPI" at line 653 

Bug

Quand une faction est créé, elle a le power par default, si une personne dans la faction meurt, au prochain redémarage la faction aura 0 de power - le power que la personne a perdu quand elle est morte. Et les autre factions qui elle n'ont pas perdu de power, le power devient 0.

Suggestion Add

Rajouter le message quand on rentre dans une zone où on sort sa met le message en popup avec config on/off pour moin polluer le tchat

GUI [Enhancement]

Chest Inventory UI || Form UI support would be a cherry on top ;)

p.s: could be an extension plugin.

RIP Ayzrix

TU nous as quitter apres avoir fais ce magnifique plugin . on t'oubliera pas <3

Unknown errors while inviting to faction.

[Asynchronous Worker #0 thread/CRITICAL]: ErrorException: "SQLite3::query(): no such table: faction" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask" at line 45§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[40] SQLite3::query(): no such table: faction, string[88] /home/ew/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/Query, integer 45, array[2])§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask(45): SQLite3->query(string[39] DELETE FROM faction WHERE faction='CCC')§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #2 pmsrc/src/pocketmine/scheduler/AsyncTask(85): Ayzrix\SimpleFaction\Tasks\Async\QueryTask->onRun()§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #3 (): pocketmine\scheduler\AsyncTask->run()§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #1 thread/CRITICAL]: ErrorException: "SQLite3::query(): no such table: home" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask" at line 45§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #1 thread/CRITICAL]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[37] SQLite3::query(): no such table: home, string[88] /home/ew/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/Query, integer 45, array[2])§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #1 thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask(45): SQLite3->query(string[36] DELETE FROM home WHERE faction='CCC')§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #1 thread/CRITICAL]: #2 pmsrc/src/pocketmine/scheduler/AsyncTask(85): Ayzrix\SimpleFaction\Tasks\Async\QueryTask->onRun()§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #1 thread/CRITICAL]: #3 (): pocketmine\scheduler\AsyncTask->run()§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: ErrorException: "SQLite3::query(): no such table: player" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask" at line 45§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #0 (): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string[39] SQLite3::query(): no such table: player, string[88] /home/ew/plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/Query, integer 45, array[2])§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #1 plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Tasks/Async/QueryTask(45): SQLite3->query(string[55] DELETE FROM player WHERE lower(player)='imaginedchalk1')§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #2 pmsrc/src/pocketmine/scheduler/AsyncTask(85): Ayzrix\SimpleFaction\Tasks\Async\QueryTask->onRun()§r
2021-08-04 §b[19:48:24] §r§c[Asynchronous Worker #0 thread/CRITICAL]: #3 (): pocketmine\scheduler\AsyncTask->run()§r
2021-08-04 §b[19:48:24] §r§c[Server thread/CRITICAL]: Could not execute asynchronous task QueryTask: Task crashed§r
2021-08-04 §b[19:48:24] §r§c[Server thread/CRITICAL]: Could not execute asynchronous task QueryTask: Task crashed§r
2021-08-04 §b[19:48:24] §r§c[Server thread/CRITICAL]: Could not execute asynchronous task QueryTask: Task crashed§r

Modif claim

Ajoute dans la config une option:
power-pour-tous-les-claims: true
power : 100

Sa veut dire que si c'est ton premier claim ou ton 100e sa te couteras quand même 100 de powers car là tu es obligé de noté 100 fois. Si c'est sur false alors c'est encore le système actuel (ducoup le power sert à rien).

Rajoute aussi, si possible, un système qui fait que les claim doivent forcément être collé (configurable bien évidemment)
Voilà !

Problem with factions

Many of my players can not delete, invite and do many things with the factions, and even I try to delete the factions with / f admin delete name does not let me do it, it says that they do not exist.

Please look at the plugin code because I already have several complaining

Even a player every time I restart the server his faction changes from "LakeCountry" to "Mar" out of nowhere, he always puts Mar

Suggestions

Pls Add Scoreboard like saicopvp factions
images

Factions keep renaming to player names Dev 76

For some strange reason, some players get the faction name renamed to their name and then not let them leave or do anything.
(Crash in version 76-> #46 )

I deleted the database of the factions and I am using the last one generated with dev 76, that is, it is a code error of the plugin not from an old database

Pls fix it
Database.zip

Amilioration

Ayzrix svp met une config ou on des joueur qui ne sont pas dans la même faction puissent posé des tnt dans les claim enemy

[Question] ScoreHudX

Is ScoreHUD V6 Addon compatible with the latest version of ScoreHUD?

If the answer is yes, I would like to know which {tags} are the ones to put

If the answer is no, could you make a version for it?

Thx

/f unclaim

Le /f unclaim ne fonctionne pas. Le message d'unclaim est bien envoyé mais le chunk reste claim !

Moving out of the claimed land causing crash

[12:51:25] [Server thread/CRITICAL]: Error: "Access to undeclared static property: Ayzrix\SimpleFaction\API\FactionsAPI::$moving" (EXCEPTION) in "plugins/SimpleFaction-master/src/Ayzrix/SimpleFaction/Events/PlayerMove" at line 54 [12:51:25] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): Ayzrix\SimpleFaction\Events\PlayerMove->PlayerMove(object pocketmine\event\player\PlayerMoveEvent) [12:51:25] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object Ayzrix\SimpleFaction\Events\PlayerMove, object pocketmine\event\player\PlayerMoveEvent) [12:51:25] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerMoveEvent) [12:51:25] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/Player(1660): pocketmine\event\Event->call() [12:51:25] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/Player(1773): pocketmine\Player->processMostRecentMovements() [12:51:25] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/level/Level(854): pocketmine\Player->onUpdate(integer 158) [12:51:25] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/level/Level(787): pocketmine\level\Level->actuallyDoTick(integer 158) [12:51:25] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(2265): pocketmine\level\Level->doTick(integer 158) [12:51:25] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Server(2396): pocketmine\Server->checkTickUpdates(integer 158, double 1616651485.3025) [12:51:25] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/Server(2152): pocketmine\Server->tick() [12:51:25] [Server thread/CRITICAL]: #10 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() [12:51:25] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() [12:51:25] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[29] D:\server backup\Skyblock 12\, string[37] D:\server backup\Skyblock 12\plugins\) [12:51:25] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() [12:51:25] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [12:51:25] [Server thread/EMERGENCY]: Please upload the "D:\server backup\Skyblock 12\crashdumps/Thu_Mar_25-12.51.25-WIB_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.

When moving out of the claimed land it will crash the server and send this error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.