Comments (4)
Hi, it looks like you are trying to teleport CommandSender.
Could you please check that the CommandSender is instance of Entity (Player).
NOTE: teleport() method can't be called from the CONSOLE.
from pyplugins.
when i try to instance Player() this is what i get No visible constructors for class (org.bukkit.entity.Player)
i don't know if i'm doing it by the right way
i'm calling it by the command /home in the game chatbox
w= "Location{world=CraftWorld{name=world},x=225.0,y=68.0,z=-146.0,pitch=37.649994,yaw=-22.8}"
player = Player()
player.teleport(w)
from pyplugins.
i've read that jython has a registry file where i had to add python.security.respectJavaAccessibility = false but i had no luck with it i got attribute error on self.plugin.logger.info so i deleted that line on the registry file
and now i tried to instance i'm importing entity as p
player = p.Player()
player.teleport(w)
and i got error
Caused by: org.python.core.PyException: TypeError: teleport(): expected 2-3 args; got 1
from pyplugins.
i leave this closed since i was passing the location as a string so i used teleport using getWorld and floating x y z everything works fine thanks!
from pyplugins.
Related Issues (11)
- *executer* seems to be a typo HOT 1
- My plugin use pyplugins
- add 1.8.x support
- Is this still actively being developed? HOT 3
- Error while using PythonCommandExecutor HOT 3
- Potential GraalVM integration HOT 1
- Is there a way to get actual intellisense for the PyPlugin side? HOT 1
- Load external Python libs HOT 1
- Error on py plugin load - the plugin does not load HOT 5
- Command not working propertly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyplugins.