-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added initial support for discrete movement #81
Conversation
if (minecraftServer != null) { | ||
GameProfile gameProfile = player.getGameProfile(); | ||
OperatorEntry operatorEntry = new OperatorEntry(gameProfile, 4, true); | ||
minecraftServer.getPlayerManager().getOpList().add(operatorEntry); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should limit this operation only for bots, maybe here https://github.com/trueagi-io/Vereya/blob/2cbae3a084b2187bd0abe9fdd2438477bd6278d4/src/main/java/io/singularitynet/Server/ServerStateMachine.java#L773C52-L773C58
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I should just put this code in the section you linked to. Is that correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
Test failure is due to your local master branch not being up-to-date with origin/master. Please synchronise your branch. |
Done |
pr corresponding to trueagi-io/minecraft-demo#180
Discrete movement implemented via teleporting agent one block towards given direction.
Also, since I started working with Vereya, I've been encountering issues in commands where agent is supposed to execute commands within the game: i believe the problem is that agent does not have permissions to execute commands when it joins the server. I tried to solve this problem by oping an agent when they join the world by registering the corresponding event. Is it okay to use?
@noskill
@CICS-Oleg