Cuberite Forum

Full Version: AntiCheat
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
I'm currently working on implementing a AntiCheat System in the MCServer Code.
I have started already but i'm not sure if i should add it to the code or should i make a plugin... What do you think?
I believe Howaner is doing some things already, mainly block interaction speed and distance checks, and maybe some more. Integrating into the code would be good - a plugin needs updating and will likely be buriedTongue
Yes, i know that he is working on them.
But he isn't working on a AntiCheat System. I have contact with him.

A little question: Give it a method to get how many blocks the player is away from the ground?
In Lua you could use this. I'm sure you can translate it somehow to C++
local DistanceFromGround = 0
for Y=Player:GetPosY(), 1, -1
 if World:GetBlock(X, Y, Z) ~= E_BLOCK_AIR then
  DistanceFromGround = Player:GetPosY() - Y -- We found land
 end
end
I know I'm not anyone to say that but, what about enchanting and 1.8 protocol?
1.8 Protocol: paused (many changes. I will work on it but i will wait for the release.)
Enchanting: I don't know how can i calculate which enchantments should i add for the levels.. I will see in the Bukkit Code...
How about, you make it able to be set in ini ?
Like 3 states
enchant-state one: 1-5
enchant-state two: 6-15
enchant-state three: 16-30

it will randomly pick one. and from that you get a low level(single) enchant,
state two, mid level enchant(one or two enchants)
high level(2-3 enchants).
I will try your idea. But before i need to push AntiCheat(the current code) because i can't switch the branch. I will make AntiCheat a little bit better and then i will try enchanting.
Edited:
SendTeleportEntity(*m_Player);

How can i block the moving of a player? I need to teleport it back or? Because "MoveTo" don't move the player back...

Edit: Fail... I forgot *
Okay, now i need help with the WalkSpeed. I need the Walkspeed in float.
But a_Player.GetSpeed() returns me the Vector. How can i get the WalkSpeed?
Pages: 1 2 3