Code Monkey home page Code Monkey logo

namechanger's People

Contributors

lukeeey avatar poggit-bot avatar sandertv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

zplayzmcpe

namechanger's Issues

IP is fetched incorrectly

$event->getPlayer()->transfer($this->getServer()->getIp(), $this->getServer()->getPort(), "Username is being changed.");

https://github.com/pmmp/PocketMine-MP/blob/f0b4a33e2e8093081bb9b1fd20947e95422f3df3/src/pocketmine/Server.php#L368

server-ip isn't defined anywhere in server files by default (that in itself isn't an issue with NameChanger)
But when it is defined, it's normally "0.0.0.0" or blank

The correct way to get the IP for players to connect to is Utils::getIP() (blocking, do it asynchronously)

Permission for each name

Can you add a permission, so if you have the example permission "changename.name.Alex" you coud change your name only to alex, and in the default configuration nobody, inclouding OPs can change the name, but when you set the perm "changename" you coud change your name to everythig.

problem

15:48:17 CRITICAL > "Could not pass event 'pocketmine\event\server\DataPacketReceiveEvent' to 'NameChanger v1.0.0': Call to a member function setUserName() on null on BlockHorizons\NameChanger\NameChanger
15:48:17 CRITICAL > Error: "Call to a member function setUserName() on null" (EXCEPTION) in "/plugins/NameChanger-master/src/BlockHorizons/NameChanger/NameChanger" at line 91

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.