I did notice that the DeathEvent.cs has an attacker, maybe just duplicate that code since it gets the attacker from the same HitInfo as the other events:we didn't added the attacker, I was thinking about two different solutions for that and then I totally forgot about it... I'll find out something for that soon
I did notice that the DeathEvent.cs has an attacker, maybe just duplicate that code since it gets the attacker from the same HitInfo as the other events:
public BaseEntity Attacker {
get {
return _info.Initiator;
}
I made is a Player type because I wasn't sure how to get Player from BaseEntity once I was in Python though![]()
baseplayer = baseEntity.ToPlayer()
if basePlayer is not None:
player = Server.FindPlayer(basePlayer.displayName)
It should work but I made it to save in INI file... @mikec helped meQuestion 2:
I also made a pluggin to sethome/gohome by setting DataStore.Add("homelocation", Player.SteamID, ploc) (ploc = vector) which works great but when I "quit" and start the server again, the locations are gone.. do I have to save the locations or should Datastore save its arrays auto?
It is safer to save locations on INIThat's what a Vector3.ToString() looks like. To convert the string back to a Vector3, strip the parentheses and commas, and parse each number to a float. Then use them as arguments to instance a new Vector3. This is exactly what DataStore does when someone saves a Vector3 to it, and recalls it later.
Well saving it in a INI file will keep the data in there until you delete the file.It is safer to save locations on INI
https://github.com/Notulp/Pluton/issues/11Could we get MySQL or even let us import MySQLdb if we have python installed on the server we are running pluton on.
I don't think there are atmCould i get list avaible commands In atm pluton
Not in the current version MC6 or earlier, it's not. I've fixed several issues in IniParser that were leading to data loss and/or plugin crashing that haven't published yet.It should work but I made it to save in INI file... @mikec helped me
It is safer to save locations on INI
I recommend this for most peopleAt the moment i guess its impossible anyway to have plugins that acctualy works with no errors , experimental way .....u do they update so no... i wait for a stable rust with all the stuff![]()
great stuff, still early days but progress is coming along really fast.
I have a personal server, and its doing well so far. Adding stable plugins one by one. Keep it up boys.great stuff, still early days but progress is coming along really fast.