Possibility to get travelling speed (for police radar) #16

Closed
opened 2020-09-01 00:54:23 +00:00 by KleinWunder · 3 comments
KleinWunder commented 2020-09-01 00:54:23 +00:00 (Migrated from github.com)

Is your feature request related to a problem? Please describe.
I own a reallife roleplay server and players keep smashing through downtown (speedlimit of like 50) with 120km/h.
I want the police-faction to be able to punish those in the frame of roleplay. like a traffic ticket or so. In order to do that
a feature like radars or the possibility to get the speed would be appreciated.

Describe the solution you'd like
Maybe even a PlaceholderAPI extention to add like %vp_currentspeed% to get the own speed or something.
Otherwise just the possibility to get the speed through an API or something of that nature.

Describe alternatives you've considered
Using WorldGuard regions to check the speed but they don't get registered as entering the region when they are in a vehicle.

**Is your feature request related to a problem? Please describe.** I own a reallife roleplay server and players keep smashing through downtown (speedlimit of like 50) with 120km/h. I want the police-faction to be able to punish those in the frame of roleplay. like a traffic ticket or so. In order to do that a feature like radars or the possibility to get the speed would be appreciated. **Describe the solution you'd like** Maybe even a PlaceholderAPI extention to add like %vp_currentspeed% to get the own speed or something. Otherwise just the possibility to get the speed through an API or something of that nature. **Describe alternatives you've considered** Using WorldGuard regions to check the speed but they don't get registered as entering the region when they are in a vehicle.
XedricKaes commented 2020-09-30 22:21:31 +00:00 (Migrated from github.com)

If you store the last location, and the new location, you can check if they enter a area, or are moving within. From there on you can use the api to check the speed.

If you store the last location, and the new location, you can check if they enter a area, or are moving within. From there on you can use the api to check the speed.
aCole1 commented 2020-11-03 06:06:56 +00:00 (Migrated from github.com)

Hi there,

I was wanting the same feature added to the plugin. However, my idea is a bit different.

Holding an item regardless what it is with a custom name would give you (in an action bar) the player's speed. Additionally, the plugin would be able to tell you the speed of the car in front of you if you were in say a police car. Would show on an action bar.

Thanks,
Cole

Hi there, I was wanting the same feature added to the plugin. However, my idea is a bit different. Holding an item regardless what it is with a custom name would give you (in an action bar) the player's speed. Additionally, the plugin would be able to tell you the speed of the car in front of you if you were in say a police car. Would show on an action bar. Thanks, Cole
stijnb1234 commented 2020-11-26 21:34:56 +00:00 (Migrated from github.com)

This is possible with the API. You can use the getCurrentSpeedInKm() method for this.

This is possible with the API. You can use the getCurrentSpeedInKm() method for this.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SBDevelopment/VehiclesPlus#16
No description provided.