it has to be
Fixed version of VoteBan:
__title__ = 'VoteBan'
__author__ = 'Jakkee'
__version__ = '1.1.2'
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import System
PluginSettings = {}
class VoteBan:
#Storing these here so if the player disconnects it doesn't...
[IronPython] Error in plugin ChangeOwner:
Traceback (most recent call last):
File "<string>", line 88, in On_Command
TypeError: Cannot cast from source type to destination type.
Same for me when I use /changeowner
The server definitely crashs when you use Disconnect function with threadings. It seems to be a design problem of Unity that you cannot use the Unity API in threads.
It is crashing even more often with the new Fougerite version.
http://answers.unity3d.com/questions/180243/threading-in-unity.html
I decided to move the Player.Disconnect function out of the thread and to work with thread.join()
Currently testing the module.. I very hope this will finally fix...
Does it not have to be:
def isBannable(self, Player):
try:
if Player.Admin:
if DataStore.Get("VoteBan", "AdminBannable") == "true":
return True
else:
return False
elif...
Maybe this is happening when the players rust client crashes and he did not timeout from the server yet and you try to kick / disconnect him?
I set: server.clienttimeout 5
Hey,
is there any way or solution to fix this problem except restarting the server?
https://msdn.microsoft.com/en-us/library/system.environment.tickcount%28v=vs.110%29.aspx
Crashlog see attachments.
Sourcecode:
namespace WhiteListCountry
{
using Fougerite;
using Fougerite.Events;
using System;
using System.Globalization;
using System.IO;
using System.Threading;
using System.Collections.Generic;
using UnityEngine;
using GeoIP...
Name: NoSuicide
Description: Prevents that user can kill themselves with F1 + suicide command.
Commands: /suicide on , /suicide off (Disabling and activating suicide)
Well so far all is working, except for some unknown reason the plugin might crash the server, but its very rare, once per day. I wanna release this plugin when this bug has been fixed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.