View Issue Details

IDProjectCategoryView StatusLast Update
0000077ServerGeneralpublic2019-03-07 15:08
ReporterRhytz Assigned ToVortrex  
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version1.1.0 
Summary0000077: Resource start, stop, restart commands can be executed by anyone
Description

Resource start, stop and restart commands (and possibly other commands that affect the serverside, haven't tested) can be executed by anyone in the server.

While it can be partially prevented using event.PreventDefault() with an onResourceStart and onResourceStop eventhandler, that causes issues when scripts are being started or stopped by the server (e.g. when starting or stopping the server executable).

Furthermore, even with a global addEventHandler with event.PreventDefault() in place for the onResourceStart and onResourceStop events, if a script has a bindEventHandler for onResourceStart and onResourceStop, they are still being triggered.


Preferred solution: Including a script to handle these functions, instead of hardcoding them. Or allowing the default commands to be overwritten through scripting. The Replace variable in addCommandHandler currently doesnt seem to have any effect on the built-in commands.

TagsNo tags attached.
Game

Activities

Vortrex

2019-03-07 15:08

administrator   ~0000035

Use the boolean client.administrator property to enable/disable the ability to run this per-client

Issue History

Date Modified Username Field Change
2019-01-15 11:10 Rhytz New Issue
2019-03-07 15:08 Vortrex Assigned To => Vortrex
2019-03-07 15:08 Vortrex Status new => resolved
2019-03-07 15:08 Vortrex Resolution open => fixed
2019-03-07 15:08 Vortrex Note Added: 0000035