// If there's still no targetPlayer at this point, use previously-set target
// If there's still no targetPlayer at this point, use previously-set target
if(targetPlayer==null){
if(targetPlayer==null){
if(targetPlayerIds.containsKey(playerId)){
if(this.targetPlayerIds.containsKey(playerId)){
targetPlayer=Grasscutter.getGameServer().getPlayerByUid(targetPlayerIds.get(playerId),true);// We check every time in case the target is deleted after being targeted
targetPlayer=Grasscutter.getGameServer().getPlayerByUid(this.targetPlayerIds.get(playerId),true);// We check every time in case the target is deleted after being targeted
"usage":"Usage: weather [weatherId] [climateType]\nWeather IDs can be found in WeatherExcelConfigData.json.\nClimate types: sunny, cloudy, rain, thunderstorm, snow, mist",
"success":"Changed climate type to %s with weather type %s.",
"success":"Set weather ID to %s with climate type %s.",
"invalid_id":"Invalid ID.",
"status":"Current weather ID is %s with climate type %s.",
"description":"Changes the weather"
"description":"Changes weather ID and climate type. Weather IDs can be found in WeatherExcelConfigData.json.\nClimate types: sunny, cloudy, rain, thunderstorm, snow, mist"
},
},
"ban":{
"ban":{
"description":"Ban a player",
"command_usage":"Usage: ban <playerId> [timestamp] [reason]",
"success":"Successful.",
"success":"Successful.",
"failure":"Failed, player not found.",
"failure":"Failed, player not found.",
"invalid_time":"Unable to parse timestamp.",
"invalid_time":"Unable to parse timestamp.",
"invalid_player_id":"Unable to parse player ID.",
"invalid_player_id":"Unable to parse player ID.",
"command_usage":"Usage: ban <playerId> [timestamp] [reason]"
"description":"Change la météo. Weather IDs can be found in WeatherExcelConfigData.json.\nClimate types: sunny, cloudy, rain, thunderstorm, snow, mist.",
"success":"Le type de climat a été changé à %s avec le type de météo %s.",
"usage":"Utilisation: weather [weatherId] [climateType]\nWeather IDs can be found in WeatherExcelConfigData.json.\nClimate types: sunny, cloudy, rain, thunderstorm, snow, mist.",
"invalid_id":"ID invalide.",
"success":"Set weather ID to %s with climate type %s.",
"description":"Change la météo"
"status":"Current weather ID is %s with climate type %s."