@LMS You mean to call the getshiftsettings in the Main? Yes I tried it but the main won't be called, means the Shift_stopp variable doesn't change. Please correct me, if I understood it wrong. Anyways, thanks for trying to help me ^^
EDIT: It works now, thanks for your help. Unfortunately I didn't understand what you meant but now it works. So thank you very much!
If anyone has the same problem in the future and finds this post: (In the unlikely event)
Change:
Shift_Stop = 48 ;seconds
to:
Shift_Stop = 48
Because the plugin reads the entire "48 ;seconds" as a number even if it is displayed differently in Visual Studio.