Code Monkey home page Code Monkey logo

prisons's Introduction

prisons's People

Contributors

ept8tpe avatar poggit-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

prisons's Issues

Error!!!!!

Api:4.2.0
Aparece isso no console:

Could not load plugin '/plugins/Prisons.phar': Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately.

#crash #error #19

Crashed

Code:
[41] }
[42] }
[43] }
[44]
[45] /**
[46] * @param BlockPlaceEvent $event
[47] * @return void
[48] */
[49] public function onPlace(BlockPlaceEvent $event) : void {
[50] if($event->getPlayer()->getWorld()->getFolderName() === Utils::getPlotWorld()->getFolderName() || $event->getPlayer()->hasPermission("prisons.nomine.bypass")) {
[51] return;
[52] } else {
[53] $event->cancel();
[54] if(!is_null(Utils::getMessage("no-placing-here"))) {
[55] $event->getPlayer()->sendMessage(Utils::getMessage("no-placing-here"));
[56] } else {
[57] $event->getPlayer()->sendMessage(TextFormat::RED . "Configuration error detected!");
[58] }
[59] }
[60] }

Giving rank to aplayer when /rankup

Hello, how can I give another rank to a player when he does /rankup so like if you are in mine A and you rank up you will be in mine B and when you talk in chan it will say Mine B instead of A

Hey TPE Can you take a look in to this

Am Having A issue that someone else did on here sometime back
hopefully you can help me becuase i really like using this plugin
plugin is from the website as normal Not a dev build.

Console Error

Warning: SQLite3::prepare(): Unable to prepare statement: 1, near "prisonrank": syntax error in phar://C:/Users/xtrmt/OneDrive/Desktop/Server/plugins/Prisons (4).phar/src/TPE/Prisons/libs/poggit/libasynql/sqlite3/Sqlite3Thread.php on line 79
[21:38:19] [Server thread/ERROR]: [Prisons] SQL PREPARE error: near "prisonrank": syntax error, for query UPDATE prisons_players
SET username='MegaCraft6994'
prisonrank='b',
prestige=0
WHERE uuid = '257de885-30b2-326d-9e44-f5d0ba5bca7d'; | []

Plugin Update

Can you please update this for the latest pocketmine versions, and also a way to support BedrockEconomy plugin. i really need a rankup system.

Rebirth

I suggest adding a rebirth option for when they ascend to the max so that they can restart from Mine A all over again

Enforcement of new Poggit rule against SQL injection

Dear plugin developer,

We have updated the Poggit plugin rules, and your plugin Prisons 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:

$query = $this->db->query("SELECT * FROM players WHERE username ='{$player}';");

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

Erro de permissões.

Api:4.2.0
Aparece isso no console:

Could not load plugin '/plugins/Prisons.phar': Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately.

Update to PM4.

I am currently rather busy, if anyone would like to update this plugin to PM4, that would be heavily appreciated, if it's not done, I will eventually get round to doing it, open a pull request if you choose to do so, thank you!

Add new things

I just wanna suggest you something if you add the new option to add command into it
So Its like:
price: 900000
rankName: "L"
added-permissions: []
removed-permissions: []
command: []
So you can add command there like: /give {player} 64 diamonds
Thank you for seeing this
Btw if you can, can you add a addon for sell mulitpliers for scorehud

read me

Hello Is there anyway you can add an sell system to this if i need to i can pay for it if you do the sell part private
i work with paypal if you need to know

please give me a shout on discord at IcyEndymion004#3547

error

Invalid plugin manifest: Invalid Plugin "permissions": Nested permission declarations are no longer supported. Declare each permission separately.

update

please update it does not work

Issue with warp permissions.

Im currently having issues with warp permissions. I am using the WarpsPro plugin and in the added permissions section I put the warp permission and its warpspro.command.warp.a and so on for the rest of my mines but its not working and the warp is still locked. Im using pureperms as my rank manager not sure if I have to do something with pureperms or if im doing something wrong in the code but please help lol.

Hey TPE i though to update you on this as my console throwing out errors

ScoreHud just messed with plugin again and they have just Removed the Depends which is in your plugin for PrisonScore. In plugin.yml

just though to let you know just in case.
My Console was throwing out errors so this might need fixing

i have fixed mine anyway now but if this is any help to you feel free to use

name: PrisonScore
version: 1.0.0
api: 3.0.0
main: TPE\PrisonScore\PrisonScore
author: TPE
description: Prison Plugin For Scores.
extensions:
Core: '>=7.4'
virions:

  • ScoreHub

"/rankup" not doing anything

Hi there. I'm having an issue with /rankup working. When I type /rankup, nothing happens. no errors in the logs, just nothing happening. Also the {PRISON_RANK} won't display. it just shuffles through a bunch of characters. {PRISON_PRESTIGE} displays fine. This plugin sounds amazing! Any help getting it running right would be extremely appreciated.

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.