Search found 6 matches

by 00pol
October 9th, 2012, 6:16 am
Forum: Resolved Bugs and Requests
Topic: [FIXED]Canceling PlayerMovingEvent results in 0,0,0 position
Replies: 0
Views: 6073

[FIXED]Canceling PlayerMovingEvent results in 0,0,0 position

Cancelling PlayerMovingEvent results in a 0, 0, 0 position is a player has not got Permission.UseSpeedHack. lastValidPosition is not set unless UseSpeedHack is disabled for that player. This results in the player going to a blank position (0, 0, 0).
by 00pol
October 8th, 2012, 8:58 am
Forum: Resolved Bugs and Requests
Topic: [FIXED] MCForge level loading not functioning correctly
Replies: 6
Views: 8182

Re: MCForge level loading not functioning correctly

Fixed it. MCForge 5.5.x.x Spawns are saved as X Y Z instead of X Z Y. To fix change line 85 of MapMCSharp.cs to this: // Read in the spawn location map.Spawn = new Position { X = (short)(bs.ReadInt16() * 32), Y = (short)(bs.ReadInt16() * 32), Z = (short)(bs.ReadInt16() * 32), R = bs.ReadByte(), L = ...
by 00pol
October 7th, 2012, 6:23 am
Forum: Resolved Bugs and Requests
Topic: [FIXED] MCForge level loading not functioning correctly
Replies: 6
Views: 8182

[FIXED] MCForge level loading not functioning correctly

MCSharp level loading gives a incorrect spawn. Here is an example level: http://www.mediafire.com/?5lmpc9dsno0syuj You should spawn at 40, 199, 40 in FCraft, however the correct spawn is 2, 159, 38 (you can see this using a MCForge 5.5.0.3 server). I tried fixing it but I don't know what the problem...
by 00pol
October 2nd, 2012, 10:13 pm
Forum: Modding
Topic: How to respawn a player
Replies: 4
Views: 7383

Re: How to respawn a player

Works perfectly! Thanks heaps :)
by 00pol
October 2nd, 2012, 1:08 pm
Forum: Modding
Topic: How to respawn a player
Replies: 4
Views: 7383

How to respawn a player

Hello! I'm creating a mod for my own personal server in fCraft, and I want people to have changeable names (in the player list). However, this means I need to respawn players. I'm used to doing it in MCForge, but respawning players in fCraft seems to be more of a challenge. Here is my code to change...