Hello,
I have a custom plugin made for me but the plugin author isn't available, I can provide the code as needed in PM's if you need to overview it.
The error looked like a definition change so I was hoping it was simple enough that someone could PLEASE tell me how to fix it.
[DOUBLEPOST=1456425662][/DOUBLEPOST]Okay so I changed.
BasePlayer.IsActive to BasePlayer.IsConnected and it compiled, but I don't know if It's the best method?
@Wulf any ideas?Code:timer.Once(10, () => { foreach (BasePlayer player in BasePlayer.activePlayerList) { if (player != null && player.IsConnected()) { if (g_config.DebugMode && !player.IsAdmin()) continue; CommunityEntity.ServerInstance.ClientRPCEx(new Network.SendInfo() { connection = player.net.connection }, null, "DestroyUI", new Facepunch.ObjectList("TimedMsg", null, null, null, null)); } } });
Help with custom plugin.
Discussion in 'Rust Development' started by Evano, Feb 25, 2016.
-
It should be fine even without the null and connected check if you don't have a plugin messing up the activePlayerList. Anyways, it should work.
-
Yeah, it worked just fine.
